Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaServicePOJO.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaServicePOJO.java,v diff -u -r1.121 -r1.122 --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaServicePOJO.java 21 May 2015 23:43:13 -0000 1.121 +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaServicePOJO.java 22 May 2015 23:03:21 -0000 1.122 @@ -1049,20 +1049,10 @@ public boolean isCommentsEnabled(Long toolContentId) { return ratingService.isCommentsEnabled(toolContentId); } - - @Override - public ItemRatingDTO getRatingCriteriaDtos(Long contentId, Long itemId, Long userId) { - LinkedList itemIds = new LinkedList(); - itemIds.add(itemId); - ItemRatingDTO ratingCriteria = getRatingCriteriaDtos(contentId, itemIds, false, userId).get(0); - - return ratingCriteria; - } - @Override - public List getRatingCriteriaDtos(Long contentId, Collection itemIds, boolean isAllItemResultsRequested, Long userId) { - return ratingService.getRatingCriteriaDtos(contentId, itemIds, isAllItemResultsRequested, userId); + public List getRatingCriteriaDtos(Long contentId, Collection itemIds, boolean isCommentsByOtherUsersRequired, Long userId) { + return ratingService.getRatingCriteriaDtos(contentId, itemIds, isCommentsByOtherUsersRequired, userId); } @Override Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningAction.java,v diff -u -r1.62 -r1.63 --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningAction.java 21 May 2015 23:43:12 -0000 1.62 +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningAction.java 22 May 2015 23:03:21 -0000 1.63 @@ -1006,7 +1006,9 @@ itemIds.add(response.getResponseId()); } - itemRatingDtos = qaService.getRatingCriteriaDtos(qaContentId, itemIds, false, userId); + //all comments required only for monitoring + boolean isCommentsByOtherUsersRequired = isMonitoring; + itemRatingDtos = qaService.getRatingCriteriaDtos(qaContentId, itemIds, isCommentsByOtherUsersRequired, userId); // store how many items are rated int countRatedQuestions = qaService.getCountItemsRatedByUser(qaContentId, userId.intValue()); Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningStarterAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningStarterAction.java,v diff -u -r1.90 -r1.91 --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningStarterAction.java 21 May 2015 23:43:12 -0000 1.90 +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningStarterAction.java 22 May 2015 23:03:21 -0000 1.91 @@ -175,7 +175,8 @@ qaService.getLearnerContentFolder(new Long(toolSessionID), user.getQueUsrId())); } String sessionMapId = sessionMap.getSessionID(); - sessionMap.put(IS_DISABLED, qaContent.isLockWhenFinished() && user.isLearnerFinished()); + sessionMap.put(IS_DISABLED, qaContent.isLockWhenFinished() && user.isLearnerFinished() || (mode != null) + && mode.equals(ToolAccessMode.TEACHER.toString())); sessionMap.put(ATTR_GROUP_LEADER, groupLeader); boolean isUserLeader = qaService.isUserGroupLeader(user, new Long(toolSessionID)); Index: lams_tool_laqa/web/WEB-INF/tags/AuthoringRatingCriteria.tag =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/WEB-INF/tags/AuthoringRatingCriteria.tag,v diff -u -r1.1 -r1.2 --- lams_tool_laqa/web/WEB-INF/tags/AuthoringRatingCriteria.tag 21 May 2015 23:43:13 -0000 1.1 +++ lams_tool_laqa/web/WEB-INF/tags/AuthoringRatingCriteria.tag 22 May 2015 23:03:21 -0000 1.2 @@ -36,7 +36,7 @@ - ${formContentPrefix}. + @@ -72,7 +72,7 @@ - + Index: lams_tool_laqa/web/WEB-INF/tags/Rating.tag =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/WEB-INF/tags/Rating.tag,v diff -u -r1.1 -r1.2 --- lams_tool_laqa/web/WEB-INF/tags/Rating.tag 21 May 2015 23:43:13 -0000 1.1 +++ lams_tool_laqa/web/WEB-INF/tags/Rating.tag 22 May 2015 23:03:21 -0000 1.2 @@ -19,13 +19,10 @@ <%@ attribute name="disabled" required="false" rtexprvalue="true" %> <%@ attribute name="isItemAuthoredByUser" required="false" rtexprvalue="true" %> <%@ attribute name="maxRates" required="false" rtexprvalue="true" %> -<%@ attribute name="minRates" required="false" rtexprvalue="true" %> <%@ attribute name="countRatedItems" required="false" rtexprvalue="true" %> <%@ attribute name="yourRatingLabel" required="false" rtexprvalue="true" %> <%@ attribute name="averageRatingLabel" required="false" rtexprvalue="true" %> -<%@ attribute name="warnCommentIsBlankLabel" required="false" rtexprvalue="true" %> <%@ attribute name="minNumberWordsLabel" required="false" rtexprvalue="true" %> -<%@ attribute name="warnMinNumberWordsLabel" required="false" rtexprvalue="true" %> <%-- Default value for message key --%> @@ -37,9 +34,6 @@ - - - @@ -49,33 +43,11 @@ - - - - - - - - - <%--Rating stars area---------------------------------------%>
@@ -154,7 +126,7 @@
<%--Comments area---------------------------------------%> - +
@@ -192,9 +164,8 @@
- +
Index: lams_tool_laqa/web/learning/LearnerRep.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/learning/LearnerRep.jsp,v diff -u -r1.60 -r1.61 --- lams_tool_laqa/web/learning/LearnerRep.jsp 21 May 2015 23:43:12 -0000 1.60 +++ lams_tool_laqa/web/learning/LearnerRep.jsp 22 May 2015 23:03:21 -0000 1.61 @@ -26,7 +26,21 @@ - + + @@ -36,9 +50,7 @@ @@ -46,6 +49,10 @@ @@ -48,6 +51,11 @@ @@ -49,6 +52,10 @@