Index: lams_tool_assessment/conf/language/lams/ApplicationResources.properties =================================================================== diff -u -rb812eb010aa5c6d01ef10b19d6325900b7ae5963 -r6cd828445d4549e4d114c5333628d812233f0f7a --- lams_tool_assessment/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision b812eb010aa5c6d01ef10b19d6325900b7ae5963) +++ lams_tool_assessment/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 6cd828445d4549e4d114c5333628d812233f0f7a) @@ -80,6 +80,7 @@ label.authoring.advance.questions.per.page = Questions per page label.authoring.advance.all.in.one.page = All in one page label.authoring.advance.shuffle.questions = Shuffle questions +label.authoring.advance.shuffle.answers = Shuffle answers label.authoring.advance.attempts.allowed = Attempts allowed label.authoring.advance.unlimited = Unlimited label.authoring.advance.allow.students.question.feedback = Allow learners to see question feedback after each question @@ -115,6 +116,7 @@ label.learning.penalty = This submission attracted a penalty of {0}. label.learning.finish.test = Finish label.learning.submit.all = Complete activity +label.learning.submit.all.confirm = Are you sure you want to submit your answers? You will not be able to change them after you submit. label.learning.resubmit = Resubmit label.learning.summary.started.on = Started on label.learning.summary.completed.on = Completed on @@ -202,7 +204,7 @@ label.authoring.basic.allow.learners.rich.editor = Allow learners to use rich text editor label.authoring.advance.allow.students.right.answers = Indicate choice(s) that have been answered correctly. label.authoring.advance.allow.students.wrong.answers = Indicate choice(s) that have been answered incorrectly. -monitor.summary.date.restriction = Deadline +monitor.summary.date.restriction = Assessment availability monitor.summary.when.date.restriction.is.set = Learners will not be able to take this assessment after the set date and time. monitor.summary.after.date = Date/time: monitor.summary.set.restriction = Set restriction @@ -254,7 +256,7 @@ label.authoring.basic.export.qti = Export IMS QTI label.monitoring.heading = Assessment Monitoring label.maximum.number.words = Maximum number of words -label.minimum.number.words = Minimum number of words in a comment {0} +label.minimum.number.words = Minimum number of words label.info.maximum.number.words = This answer must have a maximum of {0} words. label.info.minimum.number.words = This answer must have a minimum of {0} words. label.info.max.and.min.number.words = This answer must have a minimal of {0} and maximum of {1} words. @@ -458,7 +460,7 @@ label.monitoring.user.summary.marker.comment = Comment label.monitoring.user.summary.marker = Marker label.activity.monitoring = Activity details -# Accessibility labels. Might not be shown in the screen but it is to be read by screen readers. +# Accessibility labels. Might not be shown in the screen but it is to be read by screen readers. label.stars.rate = Select stars to rate # Accessibility labels. Might not be shown in the screen but it is to be read by screen readers. button.post.comment = Post comment @@ -481,4 +483,4 @@ label.support.activity = Support activity label.completed.activity = Activity completed label.current.activity = Current activity -label.not.started.activity = Activity not reached yet +label.not.started.activity = Activity not reached yet \ No newline at end of file Index: lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/controller/LearningController.java =================================================================== diff -u -r067e828d94163bebff1b41b13e9503f1e6039dc4 -r6cd828445d4549e4d114c5333628d812233f0f7a --- lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/controller/LearningController.java (.../LearningController.java) (revision 067e828d94163bebff1b41b13e9503f1e6039dc4) +++ lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/controller/LearningController.java (.../LearningController.java) (revision 6cd828445d4549e4d114c5333628d812233f0f7a) @@ -23,33 +23,9 @@ package org.lamsfoundation.lams.tool.assessment.web.controller; -import java.io.IOException; -import java.lang.reflect.InvocationTargetException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.Comparator; -import java.util.Date; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.LinkedHashSet; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; -import java.util.Random; -import java.util.Set; -import java.util.SortedSet; -import java.util.TimeZone; -import java.util.TreeSet; -import java.util.function.Function; -import java.util.stream.Collectors; - -import javax.servlet.ServletException; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.servlet.http.HttpSession; - +import com.fasterxml.jackson.databind.node.ArrayNode; +import com.fasterxml.jackson.databind.node.JsonNodeFactory; +import com.fasterxml.jackson.databind.node.ObjectNode; import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; import org.lamsfoundation.lams.flux.FluxRegistry; @@ -108,9 +84,31 @@ import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseStatus; -import com.fasterxml.jackson.databind.node.ArrayNode; -import com.fasterxml.jackson.databind.node.JsonNodeFactory; -import com.fasterxml.jackson.databind.node.ObjectNode; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.lang.reflect.InvocationTargetException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.Comparator; +import java.util.Date; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.LinkedHashSet; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.Random; +import java.util.Set; +import java.util.SortedSet; +import java.util.TimeZone; +import java.util.TreeSet; +import java.util.function.Function; +import java.util.stream.Collectors; /** * @author Andrey Balan @@ -375,7 +373,8 @@ questionDtos = new LinkedList<>(shuffledList); } for (QuestionDTO questionDto : questionDtos) { - if (questionDto.isShuffle() || (questionDto.getType() == QbQuestion.TYPE_ORDERING)) { + if (assessment.isShuffledAnswers() || questionDto.isShuffle() || (questionDto.getType() + == QbQuestion.TYPE_ORDERING)) { ArrayList shuffledList = new ArrayList<>(questionDto.getOptionDtos()); Collections.shuffle(shuffledList); questionDto.setOptionDtos(new LinkedHashSet<>(shuffledList)); Index: lams_tool_assessment/web/pages/learning/learning.jsp =================================================================== diff -u -r358c00c5ad71e03c7b22e30b8bcd883375ff6e1e -r6cd828445d4549e4d114c5333628d812233f0f7a --- lams_tool_assessment/web/pages/learning/learning.jsp (.../learning.jsp) (revision 358c00c5ad71e03c7b22e30b8bcd883375ff6e1e) +++ lams_tool_assessment/web/pages/learning/learning.jsp (.../learning.jsp) (revision 6cd828445d4549e4d114c5333628d812233f0f7a) @@ -67,7 +67,8 @@