Skip to content

Commit

Permalink
SAM-3115 Tags and search in Samigo (sakaiproject#4090)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelblanco authored and ottenhoff committed Mar 26, 2017
1 parent ed54555 commit 809632b
Show file tree
Hide file tree
Showing 184 changed files with 11,985 additions and 599 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4767,3 +4767,35 @@

# The email address that will receive the confirmation mails from the import jobs (by default uses the defined in portal.error.email)
#[email protected]

#SAMIGO


#show the search question option in the question creation page (default is false)
#This needs elasticsearch service working
#samigo.question.show.showSearchQuestion=false

#Limit the max number of search results to appear in the search question (50 by default)
#samigo.search.maxResults=50


#Allow the use of tags in samigo in the authoring part(default is false)
#samigo.author.usetags=false

#Allows the instructors to delete tags from a question. (default is true)
#samigo.author.allowDeleteTags=false

#Allow the display of tags in the grading part (default is false)
#samigo.evaluation.usetags=false


#MULTI-TAGS PROPERTIES
#If true, the tags will be updated in all the questions identical to the one edited (same hash). (default is false)
#If this is enabled, it has preference over the value in samigo.author.multitag.singlequestion.check, so no check will appear to the user and the tags will be updated in any case. (Note: The admin user will always view the check)
#samigo.author.multitag.singlequestion=false

#If true, the tags will be updated in all the questions identical to the one edited (same hash) based on a check in the interface. (default is false)
#If samigo.author.multitag.singlequestion is true it has preference over this one, so the check won't appear to the user and the saving in all the same hash questions will happen always.
#If both samigo.author.multitag.singlequestion and samigo.author.multitag.singlequestion.check are false,
# the tags will be independent in every question and saving one question won’t affect any other question.
#samigo.author.multitag.singlequestion.check=false
10 changes: 9 additions & 1 deletion library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,15 @@
<version>2.3.2</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<!-- https://mvnrepository.com/artifact/org.webjars/select2 -->
<dependency>
<groupId>org.webjars</groupId>
<artifactId>select2</artifactId>
<version>4.0.3</version>
<scope>runtime</scope>
</dependency>

</dependencies>
<profiles>
<profile>
<id>with-jsmath</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
package org.sakaiproject.tool.assessment.data.ifc.assessment;

import java.util.Date;
import java.util.Map;
import java.util.Set;
import java.util.List;

Expand Down Expand Up @@ -129,10 +130,18 @@ public interface ItemDataIfc extends Comparable<ItemDataIfc>, java.io.Serializab

void setItemMetaDataSet(Set<ItemMetaDataIfc> itemMetaDataSet);

Set<ItemTagIfc> getItemTagSet();

void setItemTagSet(Set<ItemTagIfc> itemTagSet);

Set<ItemFeedbackIfc> getItemFeedbackSet();

void setItemFeedbackSet(Set<ItemFeedbackIfc> itemFeedbackSet);

String getHash();

void setHash(String hash);

String getItemMetaDataByLabel(String label);

void addItemMetaData(String label, String entry);
Expand Down Expand Up @@ -174,6 +183,10 @@ public interface ItemDataIfc extends Comparable<ItemDataIfc>, java.io.Serializab
void setItemAttachmentSet(Set<ItemAttachmentIfc> itemAttachmentSet);

List<ItemAttachmentIfc> getItemAttachmentList();
void addItemAttachment(ItemAttachmentIfc attachment);
void removeItemAttachmentById(Long attachmentId);
void removeItemAttachment(ItemAttachmentIfc attachment);
Map<Long, ItemAttachmentIfc> getItemAttachmentMap();

String getLeadInText();
String getThemeText();
Expand Down Expand Up @@ -202,4 +215,6 @@ public interface ItemDataIfc extends Comparable<ItemDataIfc>, java.io.Serializab
String getImageMapSrc();
Boolean getScoreDisplayFlag();
void setScoreDisplayFlag(Boolean scoreDisplayFlag);
public String getTagListToJsonString();
public void setTagListToJsonString(String tagListToJsonString);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/**********************************************************************************
* $URL$
* $Id$
***********************************************************************************
*
* Copyright (c) 2004, 2005, 2006, 2008 The Sakai Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ECL-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
**********************************************************************************/

package org.sakaiproject.tool.assessment.data.ifc.assessment;

import java.io.Serializable;

public interface ItemTagIfc extends Serializable {

Long getId();

void setId(Long id);

ItemDataIfc getItem();

void setItem(ItemDataIfc item);

String getTagId();

void setTagId(String tagId);

String getTagLabel();

void setTagLabel(String tagLabel);

String getTagCollectionId();

void setTagCollectionId(String tagCollectionId);

String getTagCollectionName();

void setTagCollectionName(String tagCollectionName);

}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

import java.util.List;
import java.util.Set;
import java.util.Map;

public interface ItemTextIfc
extends Comparable<ItemTextIfc>, java.io.Serializable
Expand Down Expand Up @@ -68,6 +69,14 @@ public interface ItemTextIfc
* @return
* @since 2.10
*/

void addItemTextAttachment(ItemTextAttachmentIfc attachment);
void addNewItemTextAttachment(ItemTextAttachmentIfc attachment);
void removeItemTextAttachmentById(Long attachmentId);
void removeItemTextAttachment(ItemTextAttachmentIfc attachment);
Map<Long, ItemTextAttachmentIfc> getItemTextAttachmentMap();


public boolean isEmiQuestionItemText();

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package org.sakaiproject.tool.assessment.entity.api;

import org.sakaiproject.entitybroker.entityprovider.EntityProvider;

/**
* Entity Provider for samigo Item
*
* @author Unicon
*
*/
public interface ItemEntityProvider extends EntityProvider {

public final static String ENTITY_PREFIX = "sam_item";

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package org.sakaiproject.tool.assessment.entity.api;

import org.sakaiproject.entitybroker.entityprovider.EntityProvider;

/**
* Entity Provider for samigo Item
*
* @author Unicon
*
*/
public interface PublishedItemEntityProvider extends EntityProvider {

public final static String ENTITY_PREFIX = "sam_publisheditem";

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<fieldlabel>ITEM_RUBRIC</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ITEM_TAGS</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ATTACHMENT</fieldlabel>
<fieldentry/>
Expand Down Expand Up @@ -77,4 +81,4 @@
</material>
</flow_mat>
</itemfeedback>
</item>
</item>
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
<fieldlabel>ITEM_RUBRIC</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ITEM_TAGS</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ATTACHMENT</fieldlabel>
<fieldentry/>
Expand Down
4 changes: 4 additions & 0 deletions samigo/samigo-api/src/java/xml/author/v1p2/emiTemplate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<fieldlabel>ITEM_RUBRIC</fieldlabel>
<fieldentry />
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ITEM_TAGS</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ATTACHMENT</fieldlabel>
<fieldentry />
Expand Down
4 changes: 4 additions & 0 deletions samigo/samigo-api/src/java/xml/author/v1p2/essayTemplate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
<fieldlabel>ITEM_RUBRIC</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ITEM_TAGS</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ATTACHMENT</fieldlabel>
<fieldentry/>
Expand Down
4 changes: 4 additions & 0 deletions samigo/samigo-api/src/java/xml/author/v1p2/fibTemplate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
<qtimetadatafield>
<fieldlabel>ITEM_RUBRIC</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ITEM_TAGS</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ATTACHMENT</fieldlabel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<fieldlabel>ITEM_RUBRIC</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ITEM_TAGS</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ATTACHMENT</fieldlabel>
<fieldentry/>
Expand Down Expand Up @@ -71,4 +75,4 @@
</material>
</flow_mat>
</itemfeedback>
</item>
</item>
4 changes: 4 additions & 0 deletions samigo/samigo-api/src/java/xml/author/v1p2/finTemplate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<fieldlabel>ITEM_RUBRIC</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ITEM_TAGS</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ATTACHMENT</fieldlabel>
<fieldentry/>
Expand Down
4 changes: 4 additions & 0 deletions samigo/samigo-api/src/java/xml/author/v1p2/matchTemplate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
<fieldlabel>ITEM_RUBRIC</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ITEM_TAGS</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ATTACHMENT</fieldlabel>
<fieldentry/>
Expand Down
4 changes: 4 additions & 0 deletions samigo/samigo-api/src/java/xml/author/v1p2/mcMCSSTemplate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
<fieldlabel>ITEM_RUBRIC</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ITEM_TAGS</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ATTACHMENT</fieldlabel>
<fieldentry/>
Expand Down
4 changes: 4 additions & 0 deletions samigo/samigo-api/src/java/xml/author/v1p2/mcMCTemplate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
<fieldlabel>ITEM_RUBRIC</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ITEM_TAGS</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ATTACHMENT</fieldlabel>
<fieldentry/>
Expand Down
4 changes: 4 additions & 0 deletions samigo/samigo-api/src/java/xml/author/v1p2/mcSCTemplate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<fieldlabel>ITEM_RUBRIC</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ITEM_TAGS</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ATTACHMENT</fieldlabel>
<fieldentry/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
<fieldlabel>ITEM_RUBRIC</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ITEM_TAGS</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ATTACHMENT</fieldlabel>
<fieldentry/>
Expand All @@ -53,4 +57,4 @@
</material>
</flow_mat>
</itemfeedback>
</item>
</item>
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
<fieldlabel>ITEM_RUBRIC</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ITEM_TAGS</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ATTACHMENT</fieldlabel>
<fieldentry/>
Expand Down
4 changes: 4 additions & 0 deletions samigo/samigo-api/src/java/xml/author/v1p2/survey/10.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
<fieldlabel>ITEM_RUBRIC</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ITEM_TAGS</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ATTACHMENT</fieldlabel>
<fieldentry/>
Expand Down
4 changes: 4 additions & 0 deletions samigo/samigo-api/src/java/xml/author/v1p2/survey/5.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
<fieldlabel>ITEM_RUBRIC</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ITEM_TAGS</fieldlabel>
<fieldentry/>
</qtimetadatafield>
<qtimetadatafield>
<fieldlabel>ATTACHMENT</fieldlabel>
<fieldentry/>
Expand Down
Loading

0 comments on commit 809632b

Please sign in to comment.