-
+
+
+
+
+
-
-
+
+
+
Index: lams_learning/conf/language/lams/ApplicationResources.properties
===================================================================
RCS file: /usr/local/cvsroot/lams_learning/conf/language/lams/ApplicationResources.properties,v
diff -u -r1.38.4.2.4.2 -r1.38.4.2.4.3
--- lams_learning/conf/language/lams/ApplicationResources.properties 3 Mar 2010 06:36:55 -0000 1.38.4.2.4.2
+++ lams_learning/conf/language/lams/ApplicationResources.properties 17 Mar 2010 13:48:58 -0000 1.38.4.2.4.3
@@ -55,6 +55,7 @@
label.next.button =Next
label.optional.maxActivitiesReached =The maximum number optional activities has already been reached.
label.optional.maxSequencesReached =The maximum number optional sequences has already been reached.
+label.print =Print
label.permission.gate.message =You have stopped at a gate. You cannot continue until the gate is opened in Monitoring.
label.permission.gate.title =Permission Gate
label.presence =Presence
@@ -82,8 +83,8 @@
message.activity.set.options.activityCount =You must complete at least {0} out of {1} sequences to finish.
message.activity.set.options.note =Note: Once you finish any of the above sequences you can revisit them by using the progress bar.
message.activity.set.options.note.maximum =Note: The maximum number of sequences you may attempt is {0}. You can revisit started or finished sequences by using the progress bar.
-message.lesson.finished =Congratulations, you have finished.
-message.lesson.finishedCont =You have now completed this lesson. You can return at anytime to this lesson and revisit and review activities by double clicking on the blue icons in the left hand progress bar. You can now close this window.
+message.lesson.finished =Congratulations, {0}, you have finished.
+message.lesson.finishedCont =You have now completed the {0} lesson. You can return at anytime to this lesson and revisit and review activities by double clicking on the blue icons in the left hand progress bar. You can now close this window.
message.progress.broken =An error has occurred and you cannot continue without LAMS recalculating your current activity. A staff member may be editing the lesson.
message.progress.broken.try.resume =Please select "Resume" or close and reopen this window to continue. If this error re-occurs, wait a few minutes and then try again.
message.window.closing =Please close this window.
Index: lams_learning/conf/language/lams/ApplicationResources_en_AU.properties
===================================================================
RCS file: /usr/local/cvsroot/lams_learning/conf/language/lams/ApplicationResources_en_AU.properties,v
diff -u -r1.37.4.2.4.2 -r1.37.4.2.4.3
--- lams_learning/conf/language/lams/ApplicationResources_en_AU.properties 3 Mar 2010 06:36:56 -0000 1.37.4.2.4.2
+++ lams_learning/conf/language/lams/ApplicationResources_en_AU.properties 17 Mar 2010 13:48:58 -0000 1.37.4.2.4.3
@@ -55,6 +55,7 @@
label.next.button =Next
label.optional.maxActivitiesReached =The maximum number optional activities has already been reached.
label.optional.maxSequencesReached =The maximum number optional sequences has already been reached.
+label.print =Print
label.permission.gate.message =You have stopped at a gate. You cannot continue until the gate is opened in Monitoring.
label.permission.gate.title =Permission Gate
label.presence =Presence
@@ -82,8 +83,8 @@
message.activity.set.options.activityCount =You must complete at least {0} out of {1} sequences to finish.
message.activity.set.options.note =Note: Once you finish any of the above sequences you can revisit them by using the progress bar.
message.activity.set.options.note.maximum =Note: The maximum number of sequences you may attempt is {0}. You can revisit started or finished sequences by using the progress bar.
-message.lesson.finished =Congratulations, you have finished.
-message.lesson.finishedCont =You have now completed this lesson. You can return at anytime to this lesson and revisit and review activities by double clicking on the blue icons in the left hand progress bar. You can now close this window.
+message.lesson.finished =Congratulations, {0}, you have finished.
+message.lesson.finishedCont =You have now completed the {0} lesson. You can return at anytime to this lesson and revisit and review activities by double clicking on the blue icons in the left hand progress bar. You can now close this window.
message.progress.broken =An error has occurred and you cannot continue without LAMS recalculating your current activity. A staff member may be editing the lesson.
message.progress.broken.try.resume =Please select "Resume" or close and reopen this window to continue. If this error re-occurs, wait a few minutes and then try again.
message.window.closing =Please close this window.
Index: lams_learning/src/java/org/lamsfoundation/lams/learning/web/action/LessonCompleteActivityAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_learning/src/java/org/lamsfoundation/lams/learning/web/action/LessonCompleteActivityAction.java,v
diff -u -r1.3 -r1.3.10.1
--- lams_learning/src/java/org/lamsfoundation/lams/learning/web/action/LessonCompleteActivityAction.java 12 Jul 2007 00:59:02 -0000 1.3
+++ lams_learning/src/java/org/lamsfoundation/lams/learning/web/action/LessonCompleteActivityAction.java 17 Mar 2010 13:48:57 -0000 1.3.10.1
@@ -50,21 +50,23 @@
*/
public class LessonCompleteActivityAction extends ActivityAction {
- //---------------------------------------------------------------------
- // Instance variables
- //---------------------------------------------------------------------
-
- /**
- * Gets an activity from the request (attribute) and forwards onto a
- * display action using the ActionMappings class. If no activity is
- * in request then use the current activity in learnerProgress.
- */
- public ActionForward execute(ActionMapping mapping,
- ActionForm actionForm,
- HttpServletRequest request,
- HttpServletResponse response)
- {
- LearningWebUtil.setupProgressInRequest((ActivityForm)actionForm, request, LearningWebUtil.getLearnerProgress(request, getLearnerService()));
- return mapping.findForward("lessonComplete");
- }
+ // ---------------------------------------------------------------------
+ // Class level constants - session attributes
+ // ---------------------------------------------------------------------
+ public static final String PARAM_LESSON_NAME = "lessonName";
+
+ /**
+ * Gets an activity from the request (attribute) and forwards onto a display action using the ActionMappings class.
+ * If no activity is in request then use the current activity in learnerProgress.
+ */
+ public ActionForward execute(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
+ HttpServletResponse response) {
+ ActivityForm activityForm = (ActivityForm) actionForm;
+ LearningWebUtil.setupProgressInRequest(activityForm, request, LearningWebUtil.getLearnerProgress(request,
+ getLearnerService()));
+ Long lessonID = activityForm.getLessonID();
+ String lessonName = getLearnerService().getLesson(lessonID).getLessonName();
+ request.setAttribute(LessonCompleteActivityAction.PARAM_LESSON_NAME, lessonName);
+ return mapping.findForward("lessonComplete");
+ }
}
\ No newline at end of file
Index: lams_learning/web/lessonComplete.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_learning/web/lessonComplete.jsp,v
diff -u -r1.16 -r1.16.10.1
--- lams_learning/web/lessonComplete.jsp 5 Mar 2008 07:30:06 -0000 1.16
+++ lams_learning/web/lessonComplete.jsp 17 Mar 2010 13:48:57 -0000 1.16.10.1
@@ -29,19 +29,33 @@