Index: lams_tool_survey/conf/language/lams/ApplicationResources.properties
===================================================================
diff -u -r73dcdda0fa796b4314929e175d161f7d0c400c94 -rb7ba7cccd2f8027169900a05b8799d3287429c4e
--- lams_tool_survey/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 73dcdda0fa796b4314929e175d161f7d0c400c94)
+++ lams_tool_survey/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision b7ba7cccd2f8027169900a05b8799d3287429c4e)
@@ -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
===================================================================
diff -u -r19c53ce28433c0e4d47c5f303be3e658c808329c -rb7ba7cccd2f8027169900a05b8799d3287429c4e
--- lams_tool_survey/conf/xdoclet/struts-actions.xml (.../struts-actions.xml) (revision 19c53ce28433c0e4d47c5f303be3e658c808329c)
+++ lams_tool_survey/conf/xdoclet/struts-actions.xml (.../struts-actions.xml) (revision b7ba7cccd2f8027169900a05b8799d3287429c4e)
@@ -261,7 +261,16 @@
parameter="listAnswers" >
+
+
+
+
+
Index: lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/SurveyConstants.java
===================================================================
diff -u -r19c53ce28433c0e4d47c5f303be3e658c808329c -rb7ba7cccd2f8027169900a05b8799d3287429c4e
--- lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/SurveyConstants.java (.../SurveyConstants.java) (revision 19c53ce28433c0e4d47c5f303be3e658c808329c)
+++ lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/SurveyConstants.java (.../SurveyConstants.java) (revision b7ba7cccd2f8027169900a05b8799d3287429c4e)
@@ -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
===================================================================
diff -u -r19c53ce28433c0e4d47c5f303be3e658c808329c -rb7ba7cccd2f8027169900a05b8799d3287429c4e
--- lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/dao/SurveyAnswerDAO.java (.../SurveyAnswerDAO.java) (revision 19c53ce28433c0e4d47c5f303be3e658c808329c)
+++ lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/dao/SurveyAnswerDAO.java (.../SurveyAnswerDAO.java) (revision b7ba7cccd2f8027169900a05b8799d3287429c4e)
@@ -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
===================================================================
diff -u -r19c53ce28433c0e4d47c5f303be3e658c808329c -rb7ba7cccd2f8027169900a05b8799d3287429c4e
--- lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/dao/SurveyUserDAO.java (.../SurveyUserDAO.java) (revision 19c53ce28433c0e4d47c5f303be3e658c808329c)
+++ lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/dao/SurveyUserDAO.java (.../SurveyUserDAO.java) (revision b7ba7cccd2f8027169900a05b8799d3287429c4e)
@@ -36,4 +36,8 @@
List getBySessionID(Long sessionId);
int getCountFinishedUsers(Long sessionId);
+
+ List