Index: lams_tool_survey/conf/language/lams/ApplicationResources.properties
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_survey/conf/language/lams/ApplicationResources.properties,v
diff -u -r1.33 -r1.34
--- lams_tool_survey/conf/language/lams/ApplicationResources.properties 29 Mar 2015 10:53:43 -0000 1.33
+++ lams_tool_survey/conf/language/lams/ApplicationResources.properties 9 Feb 2016 11:37:50 -0000 1.34
@@ -186,6 +186,6 @@
label.other.answers =Answers from other Learners
label.total.responses =Total responses so far: {0}
message.no.reflection.available =No notebook entry has been added.
+label.search=Search...
-
#======= End labels: Exported 180 labels for en AU =====
Index: lams_tool_survey/conf/xdoclet/struts-actions.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_survey/conf/xdoclet/struts-actions.xml,v
diff -u -r1.17 -r1.18
--- lams_tool_survey/conf/xdoclet/struts-actions.xml 28 Oct 2014 23:23:27 -0000 1.17
+++ lams_tool_survey/conf/xdoclet/struts-actions.xml 9 Feb 2016 11:37:50 -0000 1.18
@@ -261,7 +261,16 @@
parameter="listAnswers" >
+
+
+
+
+
Index: lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/SurveyConstants.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/SurveyConstants.java,v
diff -u -r1.22 -r1.23
--- lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/SurveyConstants.java 28 Oct 2014 23:23:27 -0000 1.22
+++ lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/SurveyConstants.java 9 Feb 2016 11:37:49 -0000 1.23
@@ -65,6 +65,8 @@
public static final String ATTR_USER = "user";
+ public static final String ATTR_USER_NAME = "userName";
+
// error message keys
public static final String ERROR_MSG_TITLE_BLANK = "error.survey.item.title.blank";
@@ -118,8 +120,6 @@
public static final String ATTR_QUESTION_LIST = "questionList";
- public static final String ATTR_ANSWER_LIST = "answerList";
-
public static final String ATTR_QUESTION = "question";
public static final String ATTR_DELETED_QUESTION_LIST = "deletedQuestionList";
@@ -169,10 +169,12 @@
public static final String ATTR_IS_GROUPED_ACTIVITY = "isGroupedActivity";
public static final String ATTR_COUNT_FINISHED_USERS = "countFinishedUser";
-
+
public static final int SORT_BY_DEAFAULT = 0;
public static final int SORT_BY_ANSWER_ASC = 1;
public static final int SORT_BY_ANSWER_DESC = 2;
+ public static final int SORT_BY_NAME_ASC = 3;
+ public static final int SORT_BY_NAME_DESC = 4;
// POSITION
public static int POSITION_INSIDE = 0;
Index: lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/dao/SurveyAnswerDAO.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/dao/SurveyAnswerDAO.java,v
diff -u -r1.7 -r1.8
--- lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/dao/SurveyAnswerDAO.java 28 Oct 2014 23:23:27 -0000 1.7
+++ lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/dao/SurveyAnswerDAO.java 9 Feb 2016 11:37:49 -0000 1.8
@@ -24,7 +24,6 @@
import java.util.List;
-import org.lamsfoundation.lams.tool.survey.SurveyConstants;
import org.lamsfoundation.lams.tool.survey.model.SurveyAnswer;
public interface SurveyAnswerDAO extends DAO {
@@ -39,7 +38,11 @@
* @return
*/
List getSessionAnswer(Long sessionId, Long questionUid);
+
+ /** Get a count of the number of times this particular choice has been selected for this question. */
+ Integer getAnswerCount(Long sessionId, Long questionUid, String choice);
+
List getByToolContentIdAndUserId(Long toolContentId, Long userId);
List getOpenResponsesForTablesorter(final Long sessionId, final Long questionUid, int page, int size,
Index: lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/dao/SurveyUserDAO.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/dao/SurveyUserDAO.java,v
diff -u -r1.3 -r1.4
--- lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/dao/SurveyUserDAO.java 28 Oct 2014 23:23:27 -0000 1.3
+++ lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/dao/SurveyUserDAO.java 9 Feb 2016 11:37:49 -0000 1.4
@@ -36,4 +36,8 @@
List getBySessionID(Long sessionId);
int getCountFinishedUsers(Long sessionId);
+
+ List