Index: lams_bb_integration/web/modules/modify.jsp =================================================================== diff -u -r60e3807f78aa28e63cf1da381fc37cf621549beb -r23bceeb5d0afd5c6f7ab96f06103fd9742b3dc5d --- lams_bb_integration/web/modules/modify.jsp (.../modify.jsp) (revision 60e3807f78aa28e63cf1da381fc37cf621549beb) +++ lams_bb_integration/web/modules/modify.jsp (.../modify.jsp) (revision 23bceeb5d0afd5c6f7ab96f06103fd9742b3dc5d) @@ -33,8 +33,6 @@ <% - String NOT_AVAILABLE = "Item is not available.
"; - // Authorise current user for Course Control Panel (automatic redirect) try{ if (!PlugInUtil.authorizeForCourseControlPanel(request, response)) @@ -43,19 +41,17 @@ throw new RuntimeException(e); } - // Get the Course Document (Lams Lesson) + // retrive the LAMS lesson BbPersistenceManager bbPm = PersistenceServiceFactory.getInstance().getDbPersistenceManager(); Container bbContainer = bbPm.getContainer(); Id contentId = new PkId( bbContainer, CourseDocument.DATA_TYPE, request.getParameter("content_id") ); ContentDbLoader courseDocumentLoader = (ContentDbLoader) bbPm.getLoader( ContentDbLoader.TYPE ); Content bbContent = (Content)courseDocumentLoader.loadById( contentId ); - // Get the Item Attributes + // get LAMS lessons's properties Calendar startDate = bbContent.getStartDate(); Calendar endDate = bbContent.getEndDate(); FormattedText description = bbContent.getBody(); - //String description = desc.getText().replaceFirst(NOT_AVAILABLE, ""); //remove the NOT_AVAILABLE substring - %> <%-- Breadcrumbs --%>