Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McLearningStarterAction.java =================================================================== diff -u -ra3373207133535e1504e5cb32bf10903e39355bd -r9c25f7bb3aa1f76ea94c18e8ce4f22c13ab7e984 --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McLearningStarterAction.java (.../McLearningStarterAction.java) (revision a3373207133535e1504e5cb32bf10903e39355bd) +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McLearningStarterAction.java (.../McLearningStarterAction.java) (revision 9c25f7bb3aa1f76ea94c18e8ce4f22c13ab7e984) @@ -223,6 +223,18 @@ request.getSession().setAttribute(TOOL_CONTENT_UID, mcContent.getUid()); logger.debug("using TOOL_CONTENT_UID: " + mcContent.getUid()); + /* find out if the content is set to run offline or online. If it is set to run offline , the learners are informed about that. */ + boolean isRunOffline=McUtils.isRunOffline(mcContent); + logger.debug("isRunOffline: " + isRunOffline); + + if (isRunOffline == true) + { + logger.debug("warning to learner: the activity is offline."); + persistError(request,"label.learning.runOffline"); + return (mapping.findForward(ERROR_LIST)); + } + + /* * The content we retrieved above must have been created before in Authoring time. * And the passed tool session id already refers to it. @@ -276,7 +288,7 @@ request.getSession().setAttribute(MAP_GENERAL_OPTIONS_CONTENT, mapGeneralOptionsContent); /* - * Verify that userId does not already exist in the db. + * verify that userId does not already exist in the db. * If it does exist, that means, that user already responded to the content and * his answers must be displayed read-only *