Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/dbupdates/patch20180729.sql =================================================================== diff -u -r95793dfa0f05d3568c66c2718a88c73cf9141ae3 -r7ea9b852e5fe8dc5688f983f162064d862f147de --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/dbupdates/patch20180729.sql (.../patch20180729.sql) (revision 95793dfa0f05d3568c66c2718a88c73cf9141ae3) +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/dbupdates/patch20180729.sql (.../patch20180729.sql) (revision 7ea9b852e5fe8dc5688f983f162064d862f147de) @@ -10,7 +10,8 @@ learner_preview_url = 'tool/laqa11/learning/learning.do?mode=author', learner_progress_url = 'tool/laqa11/learning/learning.do?mode=teacher', monitor_url = 'tool/laqa11/monitoring/monitoring.do', - pedagogical_planner_url = 'tool/laqa11/pedagogicalPlanner/initPedagogicalPlannerForm.do' + pedagogical_planner_url = 'tool/laqa11/pedagogicalPlanner/initPedagogicalPlannerForm.do', + admin_url= 'tool/laqa11/admin/admin.do' WHERE tool_signature = 'laqa11'; ----------------------Put all sql statements above here------------------------- Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/controller/QaAdminController.java =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r7ea9b852e5fe8dc5688f983f162064d862f147de --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/controller/QaAdminController.java (.../QaAdminController.java) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/controller/QaAdminController.java (.../QaAdminController.java) (revision 7ea9b852e5fe8dc5688f983f162064d862f147de) @@ -65,7 +65,7 @@ * */ @Controller -@RequestMapping("/laqa11admin") +@RequestMapping("/admin") public class QaAdminController { private static Logger logger = Logger.getLogger(QaAdminController.class.getName()); @@ -85,7 +85,7 @@ /** * Sets up the admin page */ - @RequestMapping("/") + @RequestMapping("/admin") public String unspecified(QaAdminForm adminForm, HttpServletRequest request) { QaConfigItem enableQaWizard = qaService.getConfigItem(QaConfigItem.KEY_ENABLE_QAWIZARD); Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/controller/QaMonitoringController.java =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r7ea9b852e5fe8dc5688f983f162064d862f147de --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/controller/QaMonitoringController.java (.../QaMonitoringController.java) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/controller/QaMonitoringController.java (.../QaMonitoringController.java) (revision 7ea9b852e5fe8dc5688f983f162064d862f147de) @@ -68,6 +68,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.context.WebApplicationContext; @@ -98,8 +99,8 @@ } @RequestMapping("/monitoring") - private String execute(QaMonitoringForm qaMonitoringForm, HttpServletRequest request) - throws IOException, ServletException, QaApplicationException { + private String execute(@ModelAttribute("qaMonitoringForm") QaMonitoringForm qaMonitoringForm, + HttpServletRequest request) throws IOException, ServletException, QaApplicationException { QaUtils.cleanUpSessionAbsolute(request); String contentFolderID = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); @@ -220,8 +221,8 @@ * @return ActionForward * @throws ServletException */ - protected String validateParameters(HttpServletRequest request, QaMonitoringForm qaMonitoringForm) - throws ServletException { + protected String validateParameters(HttpServletRequest request, + @ModelAttribute("qaMonitoringForm") QaMonitoringForm qaMonitoringForm) throws ServletException { String strToolContentId = request.getParameter(AttributeNames.PARAM_TOOL_CONTENT_ID); Index: lams_tool_laqa/web/authoring/AdvancedContent.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r7ea9b852e5fe8dc5688f983f162064d862f147de --- lams_tool_laqa/web/authoring/AdvancedContent.jsp (.../AdvancedContent.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_tool_laqa/web/authoring/AdvancedContent.jsp (.../AdvancedContent.jsp) (revision 7ea9b852e5fe8dc5688f983f162064d862f147de) @@ -7,16 +7,16 @@ $(document).ready(function() { $("#useSelectLeaderToolOuput").click(function() { - if (document.forms.QaAuthoringForm.useSelectLeaderToolOuput.checked) { + if (document.forms.authoringForm.useSelectLeaderToolOuput.checked) { //uncheck checkboxes - document.forms.QaAuthoringForm.showOtherAnswers.checked = false; + document.forms.authoringForm.showOtherAnswers.checked = false; //disable checkboxes - document.forms.QaAuthoringForm.showOtherAnswers.disabled = true; + document.forms.authoringForm.showOtherAnswers.disabled = true; $("#show-other-answers-options").hide('slow'); } else { //enable checkboxes - document.forms.QaAuthoringForm.showOtherAnswers.disabled = false; + document.forms.authoringForm.showOtherAnswers.disabled = false; } }); Index: lams_tool_laqa/web/authoring/AuthoringTabsHolder.jsp =================================================================== diff -u -r95793dfa0f05d3568c66c2718a88c73cf9141ae3 -r7ea9b852e5fe8dc5688f983f162064d862f147de --- lams_tool_laqa/web/authoring/AuthoringTabsHolder.jsp (.../AuthoringTabsHolder.jsp) (revision 95793dfa0f05d3568c66c2718a88c73cf9141ae3) +++ lams_tool_laqa/web/authoring/AuthoringTabsHolder.jsp (.../AuthoringTabsHolder.jsp) (revision 7ea9b852e5fe8dc5688f983f162064d862f147de) @@ -24,10 +24,7 @@ - + @@ -123,14 +123,14 @@
- - @@ -139,7 +139,7 @@
- Index: lams_tool_laqa/web/learning/LearnerRep.jsp =================================================================== diff -u -r95793dfa0f05d3568c66c2718a88c73cf9141ae3 -r7ea9b852e5fe8dc5688f983f162064d862f147de --- lams_tool_laqa/web/learning/LearnerRep.jsp (.../LearnerRep.jsp) (revision 95793dfa0f05d3568c66c2718a88c73cf9141ae3) +++ lams_tool_laqa/web/learning/LearnerRep.jsp (.../LearnerRep.jsp) (revision 7ea9b852e5fe8dc5688f983f162064d862f147de) @@ -48,7 +48,7 @@ - + @@ -83,7 +83,7 @@ // {sortList:col} adds the sortList to the url into a "col" array, and {filterList:fcol} adds // the filterList to the url into an "fcol" array. // So a sortList = [[2,0],[3,0]] becomes "&col[2]=0&col[3]=0" in the url - ajaxUrl : "?method=getResponses&page={page}&size={size}&{sortList:column}&isAllowRateAnswers=${qaContent.allowRateAnswers}&isAllowRichEditor=${qaContent.allowRichEditor}&qaContentId=${qaContent.qaContentId}&qaSessionId=" + $("#toolSessionID").val() + "&questionUid=" + $(this).attr('data-question-uid') + "&userId=" + $("#userID").val() + "&reqID=" + (new Date()).getTime(), + ajaxUrl : "?page={page}&size={size}&{sortList:column}&isAllowRateAnswers=${qaContent.allowRateAnswers}&isAllowRichEditor=${qaContent.allowRichEditor}&qaContentId=${qaContent.qaContentId}&qaSessionId=" + $("#toolSessionID").val() + "&questionUid=" + $(this).attr('data-question-uid') + "&userId=" + $("#userID").val() + "&reqID=" + (new Date()).getTime(), ajaxProcessing: function (data) { if (data && data.hasOwnProperty('rows')) { var rows = [], @@ -240,252 +240,236 @@ function submitMethod(actionMethod) { $('.btn').prop('disabled', true); - document.forms.QaLearningForm.method.value=actionMethod; - document.forms.QaLearningForm.submit(); + document.forms.qaLearningForm.action=actionMethod+".do"; + document.forms.qaLearningForm.submit(); } - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - -
-
- - - - - - -

- -

- - - -
-
-
-
- - ${status.count}: -
-
-
- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + + + +

+ +

+ + + +
+
+
+
+ + ${status.count}:
- -
- - - - - -
-
-
-
- -
+
+
+ +
+ +
+ + + + + +
+
+
+
+ +
+
+
+ +
-
- -
+
- + <%--Rating area---------------------------------------%> + +
+

+ +

+ +
+
- <%--Rating area---------------------------------------%> - -
-

- -

- -
-
-
- - - - - - -

- -

- - -

- ${status.count}: - - -

- - - - - : ${sessionMap.commentsMinWordsLimit} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - - - - - + + + + + +

+ +

+ + +

+ ${status.count}: + + +

+ + + + + : ${sessionMap.commentsMinWordsLimit} + + + + - - + + + + + - + -
- - - - -
- - - - -
- - - - - - - - - - - - - - -
+ + + + + + + + + + + + + +
+ - + + + + - - - - Index: lams_tool_laqa/web/learning/Notebook.jsp =================================================================== diff -u -r658034e7f07579dd682db62112b9353b3a0d3f65 -r7ea9b852e5fe8dc5688f983f162064d862f147de --- lams_tool_laqa/web/learning/Notebook.jsp (.../Notebook.jsp) (revision 658034e7f07579dd682db62112b9353b3a0d3f65) +++ lams_tool_laqa/web/learning/Notebook.jsp (.../Notebook.jsp) (revision 7ea9b852e5fe8dc5688f983f162064d862f147de) @@ -17,11 +17,10 @@ - + - @@ -34,7 +33,7 @@ - @@ -427,14 +427,14 @@
- +
- +
- @@ -465,8 +465,7 @@
- - + Index: lams_tool_laqa/web/learning/SequentialAnswersContent.jsp =================================================================== diff -u -r658034e7f07579dd682db62112b9353b3a0d3f65 -r7ea9b852e5fe8dc5688f983f162064d862f147de --- lams_tool_laqa/web/learning/SequentialAnswersContent.jsp (.../SequentialAnswersContent.jsp) (revision 658034e7f07579dd682db62112b9353b3a0d3f65) +++ lams_tool_laqa/web/learning/SequentialAnswersContent.jsp (.../SequentialAnswersContent.jsp) (revision 7ea9b852e5fe8dc5688f983f162064d862f147de) @@ -65,14 +65,14 @@ test="${(generalLearnerFlowDTO.currentQuestionIndex == generalLearnerFlowDTO.totalQuestionCount) && (generalLearnerFlowDTO.totalQuestionCount != 1) }"> -
- @@ -84,7 +84,7 @@ test="${(generalLearnerFlowDTO.currentQuestionIndex == generalLearnerFlowDTO.totalQuestionCount) && (generalLearnerFlowDTO.totalQuestionCount == 1) }">
- @@ -96,12 +96,12 @@ test="${generalLearnerFlowDTO.currentQuestionIndex != generalLearnerFlowDTO.totalQuestionCount && generalLearnerFlowDTO.currentQuestionIndex > 1}"> - - Index: lams_tool_laqa/web/monitoring/Edit.jsp =================================================================== diff -u -r658034e7f07579dd682db62112b9353b3a0d3f65 -r7ea9b852e5fe8dc5688f983f162064d862f147de --- lams_tool_laqa/web/monitoring/Edit.jsp (.../Edit.jsp) (revision 658034e7f07579dd682db62112b9353b3a0d3f65) +++ lams_tool_laqa/web/monitoring/Edit.jsp (.../Edit.jsp) (revision 7ea9b852e5fe8dc5688f983f162064d862f147de) @@ -23,8 +23,8 @@ - - + + Index: lams_tool_laqa/web/monitoring/MonitoringMaincontent.jsp =================================================================== diff -u -r95793dfa0f05d3568c66c2718a88c73cf9141ae3 -r7ea9b852e5fe8dc5688f983f162064d862f147de --- lams_tool_laqa/web/monitoring/MonitoringMaincontent.jsp (.../MonitoringMaincontent.jsp) (revision 95793dfa0f05d3568c66c2718a88c73cf9141ae3) +++ lams_tool_laqa/web/monitoring/MonitoringMaincontent.jsp (.../MonitoringMaincontent.jsp) (revision 7ea9b852e5fe8dc5688f983f162064d862f147de) @@ -11,7 +11,7 @@ - + @@ -48,7 +48,7 @@ lams: '${lams}', submissionDeadline: '${submissionDeadline}', submissionDateString: '${submissionDateString}', - setSubmissionDeadlineUrl: '', + setSubmissionDeadlineUrl: '', toolContentID: '${content.qaContentId}', messageNotification: '', messageRestrictionSet: '', @@ -117,7 +117,7 @@ cssPageDisplay: '.pagedisplay', cssPageSize: '.pagesize', cssDisabled: 'disabled', - ajaxUrl : "?method=getResponses&page={page}&size={size}&{sortList:column}&{filterList:fcol}&isMonitoring=true&isAllowRateAnswers=${qaContent.allowRateAnswers}&isAllowRichEditor=${qaContent.allowRichEditor}&isOnlyLeadersIncluded=${qaContent.useSelectLeaderToolOuput}&qaContentId=${qaContent.qaContentId}&qaSessionId=" + $(this).attr('data-session-id') + "&questionUid=" + $(this).attr('data-question-uid') + "&userId=" + $("#userID").val() + "&reqID=" + (new Date()).getTime(), + ajaxUrl : "?getResponses&page={page}&size={size}&{sortList:column}&{filterList:fcol}&isMonitoring=true&isAllowRateAnswers=${qaContent.allowRateAnswers}&isAllowRichEditor=${qaContent.allowRichEditor}&isOnlyLeadersIncluded=${qaContent.useSelectLeaderToolOuput}&qaContentId=${qaContent.qaContentId}&qaSessionId=" + $(this).attr('data-session-id') + "&questionUid=" + $(this).attr('data-question-uid') + "&userId=" + $("#userID").val() + "&reqID=" + (new Date()).getTime(), ajaxProcessing: function (data) { if (data && data.hasOwnProperty('rows')) { var rows = [], @@ -268,9 +268,8 @@ $.ajax({ async: false, - url: '', + url: '', data: { - dispatch: "updateResponse", responseUid: responseUid, updatedResponse: updatedResponse }, @@ -291,8 +290,7 @@ function changeResponseVisibility(linkObject, responseUid, isHideItem) { $.ajax({ - url: '', - data: 'dispatch=updateResponseVisibility&responseUid=' + responseUid + '&isHideItem=' + isHideItem, + url: '?updateResponseVisibility&responseUid=' + responseUid + '&isHideItem=' + isHideItem, dataType: 'json', type: 'post', success: function (json) { @@ -327,16 +325,16 @@ } function submitMonitoringMethod(actionMethod) { - document.QaMonitoringForm.dispatch.value=actionMethod; - document.QaMonitoringForm.submit(); + document.forms.qaMonitoringForm.action=actionMethod+".do"; + document.forms.qaMonitoringForm.submit(); } function submitMethod(actionMethod) { submitMonitoringMethod(actionMethod); } function submitModifyMonitoringQuestion(questionIndexValue, actionMethod) { - document.QaMonitoringForm.questionIndex.value=questionIndexValue; + document.forms.qaMonitoringForm.questionIndex.value=questionIndexValue; submitMethod(actionMethod); } @@ -349,7 +347,7 @@ - + Index: lams_tool_laqa/web/monitoring/Reflections.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r7ea9b852e5fe8dc5688f983f162064d862f147de --- lams_tool_laqa/web/monitoring/Reflections.jsp (.../Reflections.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_tool_laqa/web/monitoring/Reflections.jsp (.../Reflections.jsp) (revision 7ea9b852e5fe8dc5688f983f162064d862f147de) @@ -56,7 +56,7 @@ cssPageDisplay: '.pagedisplay', cssPageSize: '.pagesize', cssDisabled: 'disabled', - ajaxUrl : "monitoring.do?dispatch=getReflectionsJSON&page={page}&size={size}&{sortList:column}&{filterList:fcol}&toolSessionID=" + $(this).attr('data-session-id'), + ajaxUrl : "monitoring/getReflectionsJSON.do?page={page}&size={size}&{sortList:column}&{filterList:fcol}&toolSessionID=" + $(this).attr('data-session-id'), ajaxProcessing: function (data, table) { if (data && data.hasOwnProperty('rows')) { var rows = [], Index: lams_tool_laqa/web/monitoring/dateRestriction.jsp =================================================================== diff -u -r658034e7f07579dd682db62112b9353b3a0d3f65 -r7ea9b852e5fe8dc5688f983f162064d862f147de --- lams_tool_laqa/web/monitoring/dateRestriction.jsp (.../dateRestriction.jsp) (revision 658034e7f07579dd682db62112b9353b3a0d3f65) +++ lams_tool_laqa/web/monitoring/dateRestriction.jsp (.../dateRestriction.jsp) (revision 7ea9b852e5fe8dc5688f983f162064d862f147de) @@ -25,7 +25,7 @@ } $.ajax({ - url : '', + url : '', async: false, data: { toolContentID:'${content.qaContentId}',