Index: lams_bb_integration/web/modules/modify.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_bb_integration/web/modules/modify.jsp,v diff -u -r1.10 -r1.11 --- lams_bb_integration/web/modules/modify.jsp 4 Aug 2016 16:49:07 -0000 1.10 +++ lams_bb_integration/web/modules/modify.jsp 16 Feb 2017 04:31:47 -0000 1.11 @@ -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 --%>