Index: lams_bb_integration/web/modules/learnermonitor.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_bb_integration/web/modules/learnermonitor.jsp,v diff -u -r1.11 -r1.12 --- lams_bb_integration/web/modules/learnermonitor.jsp 18 Dec 2012 06:28:58 -0000 1.11 +++ lams_bb_integration/web/modules/learnermonitor.jsp 12 Feb 2014 21:46:43 -0000 1.12 @@ -33,7 +33,6 @@ <% - // SECURITY! // Authorise current user for Course Access (automatic redirect) try{ if (!PlugInUtil.authorizeForCourse(request, response)) @@ -87,9 +86,29 @@ PlugInUtil.sendAccessDeniedRedirect(request, response); } + //Get lessson's title and description + String contentIdStr = request.getParameter("content_id"); + String title = ""; + String description = ""; + //contentId is available in versions after 1.2.3 + if (contentIdStr != null) { + + Container bbContainer = bbPm.getContainer(); + Id contentId = new PkId( bbContainer, CourseDocument.DATA_TYPE, request.getParameter("content_id") ); + ContentDbLoader courseDocumentLoader = (ContentDbLoader) bbPm.getLoader( ContentDbLoader.TYPE ); + Content courseDoc = (Content)courseDocumentLoader.loadById( contentId ); + + title = courseDoc.getTitle(); + description = courseDoc.getBody().getText(); + } else { + + title = request.getParameter("title"); + description = request.getParameter("description"); + } + + //display learning design image String strIsDisplayDesignImage = request.getParameter("isDisplayDesignImage"); boolean isDisplayDesignImage = "true".equals(strIsDisplayDesignImage)?true:false; - String learningDesignImageUrl = ""; if (isDisplayDesignImage) { String strLearningDesignId = request.getParameter("ldid").trim(); @@ -111,7 +130,6 @@ //no score availalbe } } - boolean isScoreAvailable = (current_score != null); %> @@ -122,7 +140,7 @@ <%-- Page Header --%> - + <%-- Action Control Bar --%> @@ -134,15 +152,9 @@ <%-- Cancel (Go Back) --%> - <% if(request.getParameter("title") != null) { %> -

- <%=request.getParameter("title")%> -

- <% } %> - - <% if(request.getParameter("description") != null) { %> + <% if((description != "") && (description != null)) { %>

- <%=request.getParameter("description")%> + <%=description%>

<% } %> @@ -157,7 +169,6 @@ You have completed this lesson. <% } %> -