Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/QaAppConstants.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/QaAppConstants.java,v diff -u -r1.55 -r1.56 --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/QaAppConstants.java 6 Jun 2006 16:07:27 -0000 1.55 +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/QaAppConstants.java 2 Jul 2006 13:31:20 -0000 1.56 @@ -55,6 +55,8 @@ public static final String ERROR_LIST ="errorList"; public static final String ERROR_LIST_LEARNER ="errorListLearner"; public static final String DEFAULT_CONTENT_ID_STR ="defaultContentIdStr"; + public static final String DEFAULT_ONLINE_INST ="online instructions"; + public static final String DEFAULT_OFFLINE_INST ="offline instructions"; public static final String TOOL_SESSION_ID = "toolSessionID"; public static final String EXPORT_USER_ID ="exportUserId"; Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaAction.java,v diff -u -r1.10 -r1.11 --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaAction.java 24 May 2006 22:17:13 -0000 1.10 +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaAction.java 2 Jul 2006 13:31:20 -0000 1.11 @@ -259,6 +259,15 @@ { request.getSession().setAttribute(ACTIVITY_INSTRUCTIONS, richTextInstructions); } + + if (qaAuthoringForm != null) + { + if ((qaAuthoringForm.getOnlineInstructions() == null) || (qaAuthoringForm.getOnlineInstructions().length() == 0)) + qaAuthoringForm.setOnlineInstructions(DEFAULT_ONLINE_INST); + if ((qaAuthoringForm.getOfflineInstructions() == null) || (qaAuthoringForm.getOfflineInstructions().length() == 0)) + qaAuthoringForm.setOfflineInstructions(DEFAULT_OFFLINE_INST); + } + authoringUtil.reOrganizeDisplayOrder(mapQuestionContent, qaService, qaAuthoringForm, qaContent); @@ -481,6 +490,7 @@ throws IOException, ServletException { logger.debug("dispathcing addNewQuestion"); + QaAuthoringForm qaAuthoringForm = (QaAuthoringForm) form; request.getSession().setAttribute(SUBMIT_SUCCESS, new Integer(0)); AuthoringUtil authoringUtil= new AuthoringUtil(); @@ -501,6 +511,14 @@ request.getSession().setAttribute(ACTIVITY_INSTRUCTIONS, richTextInstructions); } + if (qaAuthoringForm != null) + { + if ((qaAuthoringForm.getOnlineInstructions() == null) || (qaAuthoringForm.getOnlineInstructions().length() == 0)) + qaAuthoringForm.setOnlineInstructions(DEFAULT_ONLINE_INST); + if ((qaAuthoringForm.getOfflineInstructions() == null) || (qaAuthoringForm.getOfflineInstructions().length() == 0)) + qaAuthoringForm.setOfflineInstructions(DEFAULT_OFFLINE_INST); + } + request.getSession().setAttribute(EDITACTIVITY_EDITMODE, new Boolean(true)); //FIXME: ?? authoringUtil.reconstructQuestionContentMapForAdd(mapQuestionContent, request); @@ -526,6 +544,7 @@ throws IOException, ServletException { logger.debug("doing removeQuestion "); request.getSession().setAttribute(SUBMIT_SUCCESS, new Integer(0)); + QaAuthoringForm qaAuthoringForm = (QaAuthoringForm) form; String richTextTitle = request.getParameter("title"); String richTextInstructions = request.getParameter("instructions"); @@ -543,9 +562,18 @@ } AuthoringUtil authoringUtil= new AuthoringUtil(); - QaAuthoringForm qaAuthoringForm = (QaAuthoringForm) form; + Map mapQuestionContent=(Map)request.getSession().getAttribute(MAP_QUESTION_CONTENT); + if (qaAuthoringForm != null) + { + if ((qaAuthoringForm.getOnlineInstructions() == null) || (qaAuthoringForm.getOnlineInstructions().length() == 0)) + qaAuthoringForm.setOnlineInstructions(DEFAULT_ONLINE_INST); + if ((qaAuthoringForm.getOfflineInstructions() == null) || (qaAuthoringForm.getOfflineInstructions().length() == 0)) + qaAuthoringForm.setOfflineInstructions(DEFAULT_OFFLINE_INST); + } + + request.getSession().setAttribute(EDITACTIVITY_EDITMODE, new Boolean(true)); //FIXME: ?? authoringUtil.reconstructQuestionContentMapForRemove(mapQuestionContent, request, qaAuthoringForm); @@ -571,6 +599,14 @@ request.getSession().setAttribute(SUBMIT_SUCCESS, new Integer(0)); QaAuthoringForm qaAuthoringForm = (QaAuthoringForm) form; + if (qaAuthoringForm != null) + { + if ((qaAuthoringForm.getOnlineInstructions() == null) || (qaAuthoringForm.getOnlineInstructions().length() == 0)) + qaAuthoringForm.setOnlineInstructions(DEFAULT_ONLINE_INST); + if ((qaAuthoringForm.getOfflineInstructions() == null) || (qaAuthoringForm.getOfflineInstructions().length() == 0)) + qaAuthoringForm.setOfflineInstructions(DEFAULT_OFFLINE_INST); + } + addFileToContentRepository(request, qaAuthoringForm); qaAuthoringForm.resetUserAction(); return (mapping.findForward(LOAD_QUESTIONS)); Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaStarterAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaStarterAction.java,v diff -u -r1.47 -r1.48 --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaStarterAction.java 7 Jun 2006 17:38:23 -0000 1.47 +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaStarterAction.java 2 Jul 2006 13:31:20 -0000 1.48 @@ -361,6 +361,14 @@ retrieveContent(request, mapping, qaAuthoringForm, mapQuestionContent, new Long(strToolContentId).longValue(),false); } + if (qaAuthoringForm != null) + { + if ((qaAuthoringForm.getOnlineInstructions() == null) || (qaAuthoringForm.getOnlineInstructions().length() == 0)) + qaAuthoringForm.setOnlineInstructions(DEFAULT_ONLINE_INST); + if ((qaAuthoringForm.getOfflineInstructions() == null) || (qaAuthoringForm.getOfflineInstructions().length() == 0)) + qaAuthoringForm.setOfflineInstructions(DEFAULT_OFFLINE_INST); + } + logger.debug("will return to jsp with: " + sourceMcStarter); String destination=QaUtils.getDestination(sourceMcStarter, requestedModule); logger.debug("destination: " + destination); Index: lams_tool_laqa/web/QaErrorBox.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/Attic/QaErrorBox.jsp,v diff -u -r1.6 -r1.7 --- lams_tool_laqa/web/QaErrorBox.jsp 24 May 2006 15:43:24 -0000 1.6 +++ lams_tool_laqa/web/QaErrorBox.jsp 2 Jul 2006 13:31:19 -0000 1.7 @@ -18,133 +18,79 @@ http://www.gnu.org/licenses/gpl.txt --%> -<%@ taglib uri="tags-bean" prefix="bean"%> -<%@ taglib uri="tags-html" prefix="html"%> -<%@ taglib uri="tags-logic" prefix="logic" %> -<%@ taglib uri="tags-core" prefix="c"%> -<%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="fck-editor" prefix="FCK" %> -<%@ taglib uri="tags-lams" prefix="lams" %> - - - - - -<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %> - - - - - - - - - - - - - - - - - - - - - +
-
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- - -
+ - - - - - - - - - - - - - - - Fisheye: Tag 1.6 refers to a dead (removed) revision in file `lams_tool_laqa/web/exportPortfolio.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_laqa/web/authoring/AdvancedContent.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/authoring/AdvancedContent.jsp,v diff -u -r1.9 -r1.10 --- lams_tool_laqa/web/authoring/AdvancedContent.jsp 29 Jun 2006 21:43:53 -0000 1.9 +++ lams_tool_laqa/web/authoring/AdvancedContent.jsp 2 Jul 2006 13:31:20 -0000 1.10 @@ -31,9 +31,7 @@ -
- : - @@ -48,9 +46,7 @@
- : - @@ -65,9 +61,7 @@
- : - @@ -82,9 +76,7 @@
- : - @@ -93,19 +85,15 @@
- :
- : - Index: lams_tool_laqa/web/authoring/BasicContentViewOnly.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/authoring/Attic/BasicContentViewOnly.jsp,v diff -u -r1.7 -r1.8 --- lams_tool_laqa/web/authoring/BasicContentViewOnly.jsp 29 Jun 2006 17:46:28 -0000 1.7 +++ lams_tool_laqa/web/authoring/BasicContentViewOnly.jsp 2 Jul 2006 13:31:20 -0000 1.8 @@ -30,20 +30,20 @@ - + - + - - -
: :
: :
+ : Index: lams_tool_laqa/web/authoring/InstructionsContent.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/authoring/Attic/InstructionsContent.jsp,v diff -u -r1.11 -r1.12 --- lams_tool_laqa/web/authoring/InstructionsContent.jsp 29 Jun 2006 21:43:53 -0000 1.11 +++ lams_tool_laqa/web/authoring/InstructionsContent.jsp 2 Jul 2006 13:31:20 -0000 1.12 @@ -87,9 +87,8 @@
+ - @@ -168,9 +167,8 @@
+ -