Index: lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/controller/MonitoringController.java =================================================================== diff -u -ra1044423d025101e48d3c1fc42716eb0661c18b5 -r0f007d6cdf27dc2764f3e9daa33c2814015534f9 --- lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/controller/MonitoringController.java (.../MonitoringController.java) (revision a1044423d025101e48d3c1fc42716eb0661c18b5) +++ lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/controller/MonitoringController.java (.../MonitoringController.java) (revision 0f007d6cdf27dc2764f3e9daa33c2814015534f9) @@ -224,7 +224,7 @@ displayStudentChoices = false; } - if (question.getType() == QbQuestion.TYPE_VERY_SHORT_ANSWERS) { + if (question.getType().equals(QbQuestion.TYPE_VERY_SHORT_ANSWERS)) { vsaPresent = true; } } Index: lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/controller/TblMonitoringController.java =================================================================== diff -u -ra1044423d025101e48d3c1fc42716eb0661c18b5 -r0f007d6cdf27dc2764f3e9daa33c2814015534f9 --- lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/controller/TblMonitoringController.java (.../TblMonitoringController.java) (revision a1044423d025101e48d3c1fc42716eb0661c18b5) +++ lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/controller/TblMonitoringController.java (.../TblMonitoringController.java) (revision 0f007d6cdf27dc2764f3e9daa33c2814015534f9) @@ -71,6 +71,13 @@ request.setAttribute("groupsInAnsweredQuestionsChart", assessment.isUseSelectLeaderToolOuput()); request.setAttribute("assessment", assessment); + for (AssessmentQuestion question : assessment.getQuestions()) { + if (question.getType().equals(QbQuestion.TYPE_VERY_SHORT_ANSWERS)) { + request.setAttribute("vsaPresent", true); + break; + } + } + return "pages/tblmonitoring/iraAssessmentStudentChoices"; } @@ -211,8 +218,8 @@ @RequestMapping("aesStudentChoicesTable") public String aesStudentChoicesTable(HttpServletRequest request) { Long toolContentId = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID); - List tblQuestionDtos = TblMonitoringController - .getTblAssessmentQuestionDtos(toolContentId, false, assessmentService); + List tblQuestionDtos = TblMonitoringController.getTblAssessmentQuestionDtos( + toolContentId, false, assessmentService); Assessment assessment = assessmentService.getAssessmentByContentId(toolContentId); SortedSet sessions = new TreeSet<>(new AssessmentSessionComparator()); @@ -235,8 +242,8 @@ TblAssessmentQuestionDTO tblQuestionDto = new TblAssessmentQuestionDTO(); tblQuestionDto.setTitle(questionDto.getTitle()); - tblQuestionDto - .setQuestionTypeLabel(AssessmentServiceImpl.getQuestionTypeLanguageLabel(questionDto.getType())); + tblQuestionDto.setQuestionTypeLabel( + AssessmentServiceImpl.getQuestionTypeLanguageLabel(questionDto.getType())); tblQuestionDto.setCorrectAnswer(TblMonitoringController.getAssessmentCorrectAnswer(questionDto)); tblQuestionDtos.add(tblQuestionDto); @@ -267,8 +274,7 @@ } List sessionQuestionResults = new ArrayList<>(); - for (List questionResultsPerSession : questionSummary - .getQuestionResultsPerSession()) { + for (List questionResultsPerSession : questionSummary.getQuestionResultsPerSession()) { TblAssessmentQuestionResultDTO tblQuestionResultDto = new TblAssessmentQuestionResultDTO(); String answer = ""; @@ -303,8 +309,8 @@ } } } else { - correct = questionResult.getPenalty() + questionResult.getMark() + 0.1 >= questionResult - .getMaxMark(); + correct = questionResult.getPenalty() + questionResult.getMark() + 0.1 + >= questionResult.getMaxMark(); } } @@ -401,4 +407,4 @@ return "pages/tblmonitoring/teams"; } -} +} \ No newline at end of file Index: lams_tool_assessment/web/pages/tblmonitoring/iraAssessmentStudentChoices.jsp =================================================================== diff -u -rf0d9e9587649ab1a2c5ed4cd182a05daaf124fa6 -r0f007d6cdf27dc2764f3e9daa33c2814015534f9 --- lams_tool_assessment/web/pages/tblmonitoring/iraAssessmentStudentChoices.jsp (.../iraAssessmentStudentChoices.jsp) (revision f0d9e9587649ab1a2c5ed4cd182a05daaf124fa6) +++ lams_tool_assessment/web/pages/tblmonitoring/iraAssessmentStudentChoices.jsp (.../iraAssessmentStudentChoices.jsp) (revision 0f007d6cdf27dc2764f3e9daa33c2814015534f9) @@ -13,45 +13,45 @@ - + -
- +
- +

@@ -128,16 +130,16 @@

- + <%-- Include student's choices part --%>
<%@ include file="/pages/monitoring/parts/mcqStudentChoices5.jsp" %>
- +
-
+ \ No newline at end of file