Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/MonitoringUtil.java =================================================================== diff -u -ra209f8ccd31fae9a3d1ecce40c02ad0ebb6a3190 -r34394364c9017ea473d58b5b8d0ee3819fc83828 --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/MonitoringUtil.java (.../MonitoringUtil.java) (revision a209f8ccd31fae9a3d1ecce40c02ad0ebb6a3190) +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/MonitoringUtil.java (.../MonitoringUtil.java) (revision 34394364c9017ea473d58b5b8d0ee3819fc83828) @@ -678,15 +678,23 @@ logger.debug("potentialUserCount: " + potentialUserCount); voteMonitoringForm.setSessionUserCount(Integer.toString(potentialUserCount)); voteMonitoringForm.setCompletedSessionUserCount(new Integer(completedSessionUserCount).toString()); + + if (potentialUserCount != 0) + { + double completedPercent=(completedSessionUserCount*100) / potentialUserCount; + logger.debug("completed percent: " + completedPercent); + voteMonitoringForm.setCompletedSessionUserPercent(new Double(completedPercent).toString()); + } + else + { + voteMonitoringForm.setCompletedSessionUserPercent("Not Available"); + } } } else { sessionLevelCharting=false; logger.debug("process for content: "); - //entriesCount=voteService.getAllEntriesCount(); - //userEntries=voteService.getUserEntries(); - //entriesCount=voteService.getContentEntriesCount(voteContent.getUid()); userEntries=voteService.getContentEntries(voteContent.getUid()); entriesCount=userEntries.size(); } @@ -772,80 +780,6 @@ mapStandardRatesContent.put(mapIndex.toString(), new Double(share).toString()); mapStandardUserCount.put(mapIndex.toString(), new Integer(userEnteredVotesCount).toString()); - /* - - double totalUserRate=0d; - while (itListQuestions.hasNext()) - { - String userEntry =(String)itListQuestions.next(); - logger.debug("userEntry:..." + userEntry); - - if ((userEntry != null) && (userEntry.length() > 0)) - { - int userEntryRate=0; - if (sessionLevelCharting == true) - { - logger.debug("getting total for userEntryRate based on session: " + toolSessionUid); - userEntryRate=voteService.getSessionUserRecordsEntryCount(userEntry, toolSessionUid,voteService); - } - else - { - logger.debug("getting total for userEntryRate based on content: "); - userEntryRate=voteService.getUserRecordsEntryCount(userEntry); - } - - logger.debug("userEntryRate: " + userEntryRate); - totalUserRate=totalUserRate + userEntryRate; - } - } - logger.debug("totalUserRate: " + totalUserRate); - - - itListQuestions = userEntries.iterator(); - while (itListQuestions.hasNext()) - { - String userEntry =(String)itListQuestions.next(); - logger.debug("userEntry:..." + userEntry); - logger.debug("mapIndex: " + mapIndex); - - if ((userEntry != null) && (userEntry.length() > 0)) - { - - int userEntryRate=0; - if (sessionLevelCharting == true) - { - logger.debug("getting userEntryRate based on session: " + toolSessionUid); - userEntryRate=voteService.getSessionUserRecordsEntryCount(userEntry, toolSessionUid,voteService); - } - else - { - logger.debug("getting userEntryRate based on session: " + toolSessionUid); - userEntryRate=voteService.getUserRecordsEntryCount(userEntry); - } - logger.debug("userEntryRate: " + userEntryRate); - - double votesShare= (userEntryRate * share) / totalUserRate ; - logger.debug("votesShare: " + votesShare); - - mapVoteRatesContent.put(mapIndex.toString(), new Double(votesShare).toString()); - - mapOptionsContent.put(mapIndex.toString() ,userEntry); - mapIndex=new Long(mapIndex.longValue()+1); - } - } - - */ - - - /* - logger.debug("Map initialized with mapVoteRatesContent: " + mapVoteRatesContent); - request.getSession().setAttribute(MAP_VOTERATES_CONTENT, mapVoteRatesContent); - logger.debug("starter initialized the MAP_VOTERATES_CONTENT Map: " + request.getSession().getAttribute(MAP_VOTERATES_CONTENT)); - - request.getSession().setAttribute(MAP_OPTIONS_CONTENT, mapOptionsContent); - logger.debug("final starter initialized the MAP_OPTIONS_CONTENT Map: " + request.getSession().getAttribute(MAP_OPTIONS_CONTENT) ); - */ - request.getSession().setAttribute(MAP_STANDARD_NOMINATIONS_CONTENT, mapStandardNominationsContent); logger.debug("test2: MAP_STANDARD_NOMINATIONS_CONTENT: " + request.getSession().getAttribute(MAP_STANDARD_NOMINATIONS_CONTENT)); Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/VoteMonitoringForm.java =================================================================== diff -u -rbeea90636c10488ed392e5b6e6030b46c727ca66 -r34394364c9017ea473d58b5b8d0ee3819fc83828 --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/VoteMonitoringForm.java (.../VoteMonitoringForm.java) (revision beea90636c10488ed392e5b6e6030b46c727ca66) +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/VoteMonitoringForm.java (.../VoteMonitoringForm.java) (revision 34394364c9017ea473d58b5b8d0ee3819fc83828) @@ -42,6 +42,8 @@ protected String completedSessionUserCount; + protected String completedSessionUserPercent; + protected String viewOpenVotes; protected String showOpenVotesSection; @@ -190,4 +192,17 @@ public void setShowOpenVote(String showOpenVote) { this.showOpenVote = showOpenVote; } + /** + * @return Returns the completedSessionUserPercent. + */ + public String getCompletedSessionUserPercent() { + return completedSessionUserPercent; + } + /** + * @param completedSessionUserPercent The completedSessionUserPercent to set. + */ + public void setCompletedSessionUserPercent( + String completedSessionUserPercent) { + this.completedSessionUserPercent = completedSessionUserPercent; + } } Index: lams_tool_vote/web/learning/AllNominations.jsp =================================================================== diff -u -r9d3b73b44f51fa4497afbc5a84a74dde79a25503 -r34394364c9017ea473d58b5b8d0ee3819fc83828 --- lams_tool_vote/web/learning/AllNominations.jsp (.../AllNominations.jsp) (revision 9d3b73b44f51fa4497afbc5a84a74dde79a25503) +++ lams_tool_vote/web/learning/AllNominations.jsp (.../AllNominations.jsp) (revision 34394364c9017ea473d58b5b8d0ee3819fc83828) @@ -30,7 +30,6 @@ - @@ -41,10 +40,10 @@ - +
- @@ -88,8 +87,8 @@ - Index: lams_tool_vote/web/learning/AnswersContent.jsp =================================================================== diff -u -re6fd15100d6bd9a0196f6a086a2df9b6df1aed40 -r34394364c9017ea473d58b5b8d0ee3819fc83828 --- lams_tool_vote/web/learning/AnswersContent.jsp (.../AnswersContent.jsp) (revision e6fd15100d6bd9a0196f6a086a2df9b6df1aed40) +++ lams_tool_vote/web/learning/AnswersContent.jsp (.../AnswersContent.jsp) (revision 34394364c9017ea473d58b5b8d0ee3819fc83828) @@ -30,7 +30,6 @@ - @@ -41,7 +40,7 @@ -
- + +
- + +
+
-
@@ -149,7 +148,7 @@
+ : Index: lams_tool_vote/web/learning/ExitLearning.jsp =================================================================== diff -u -rae28185f07883077586773f760d1bde953e2d9bf -r34394364c9017ea473d58b5b8d0ee3819fc83828 --- lams_tool_vote/web/learning/ExitLearning.jsp (.../ExitLearning.jsp) (revision ae28185f07883077586773f760d1bde953e2d9bf) +++ lams_tool_vote/web/learning/ExitLearning.jsp (.../ExitLearning.jsp) (revision 34394364c9017ea473d58b5b8d0ee3819fc83828) @@ -10,7 +10,6 @@ - @@ -21,10 +20,10 @@ - +
- @@ -35,8 +34,8 @@ - Index: lams_tool_vote/web/learning/IndividualLearnerResults.jsp =================================================================== diff -u -rc8f1ea88d18b9b6b1ee0002d299ac9bfb1431d84 -r34394364c9017ea473d58b5b8d0ee3819fc83828 --- lams_tool_vote/web/learning/IndividualLearnerResults.jsp (.../IndividualLearnerResults.jsp) (revision c8f1ea88d18b9b6b1ee0002d299ac9bfb1431d84) +++ lams_tool_vote/web/learning/IndividualLearnerResults.jsp (.../IndividualLearnerResults.jsp) (revision 34394364c9017ea473d58b5b8d0ee3819fc83828) @@ -10,7 +10,6 @@ - @@ -21,11 +20,11 @@ -
- + +
- + +
+
- Index: lams_tool_vote/web/learning/Preview.jsp =================================================================== diff -u -r277d8412bc03b9c73992a0e6f3ad845cd0a4eba6 -r34394364c9017ea473d58b5b8d0ee3819fc83828 --- lams_tool_vote/web/learning/Preview.jsp (.../Preview.jsp) (revision 277d8412bc03b9c73992a0e6f3ad845cd0a4eba6) +++ lams_tool_vote/web/learning/Preview.jsp (.../Preview.jsp) (revision 34394364c9017ea473d58b5b8d0ee3819fc83828) @@ -30,7 +30,7 @@ - + @@ -41,16 +41,15 @@ -
- + +
- +
- - Index: lams_tool_vote/web/learning/learningHeader.jsp =================================================================== diff -u -raaf728a804e41624949c6b869bd25e0d5d8fc83b -r34394364c9017ea473d58b5b8d0ee3819fc83828 --- lams_tool_vote/web/learning/learningHeader.jsp (.../learningHeader.jsp) (revision aaf728a804e41624949c6b869bd25e0d5d8fc83b) +++ lams_tool_vote/web/learning/learningHeader.jsp (.../learningHeader.jsp) (revision 34394364c9017ea473d58b5b8d0ee3819fc83828) @@ -30,8 +30,11 @@ - - + + + <%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %> + + <bean:message key="label.learning"/> Index: lams_tool_vote/web/monitoring/SummaryStatsCommon.jsp =================================================================== diff -u -r9d3b73b44f51fa4497afbc5a84a74dde79a25503 -r34394364c9017ea473d58b5b8d0ee3819fc83828 --- lams_tool_vote/web/monitoring/SummaryStatsCommon.jsp (.../SummaryStatsCommon.jsp) (revision 9d3b73b44f51fa4497afbc5a84a74dde79a25503) +++ lams_tool_vote/web/monitoring/SummaryStatsCommon.jsp (.../SummaryStatsCommon.jsp) (revision 34394364c9017ea473d58b5b8d0ee3819fc83828) @@ -63,7 +63,9 @@ - + @@ -162,20 +164,22 @@ + + + + + + + + + +
+
+
+  ( ) +
- - - - - - - -