Index: lams_tool_larsrc/conf/language/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/conf/language/Attic/ApplicationResources.properties,v diff -u -r1.6 -r1.7 --- lams_tool_larsrc/conf/language/ApplicationResources.properties 11 Apr 2006 07:25:24 -0000 1.6 +++ lams_tool_larsrc/conf/language/ApplicationResources.properties 12 Apr 2006 04:38:42 -0000 1.7 @@ -73,10 +73,10 @@ label.authoring.advance.allow.learner.add.urls=Allow learners to add URLs label.authoring.advance.allow.learner.add.files=Allow learners to add Files -lable.next.instruction=Next Instruction +label.next.instruction=Next Instruction label.authoring.save.button=Save label.authoring.cancel.button=Cancel -lable.description=Description: +label.description=Description: authoring.exception= There is a problem in shared resources authoring page, the reason is {0} @@ -97,6 +97,7 @@ error.msg.default.content.not.find=Could not retrieve default content record for this tool. authoring.save.success=Authoring save successfully. +msg.no.instruction=No instruction avalialbe. #-------------------------END Authoring Labels END-----------------# #---------------------------------Monitoring ----------------------------------# Index: lams_tool_larsrc/conf/xdoclet/struts-actions.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/conf/xdoclet/struts-actions.xml,v diff -u -r1.12 -r1.13 --- lams_tool_larsrc/conf/xdoclet/struts-actions.xml 11 Apr 2006 07:25:24 -0000 1.12 +++ lams_tool_larsrc/conf/xdoclet/struts-actions.xml 12 Apr 2006 04:38:42 -0000 1.13 @@ -116,25 +116,23 @@ parameter="removeItemAttachment"> - + - + parameter="reviewItem"> + - - - - - - + parameter="nextInstruction"> + \ No newline at end of file Index: lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/action/AuthoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/action/AuthoringAction.java,v diff -u -r1.18 -r1.19 --- lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/action/AuthoringAction.java 11 Apr 2006 07:25:24 -0000 1.18 +++ lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/action/AuthoringAction.java 12 Apr 2006 04:38:42 -0000 1.19 @@ -157,8 +157,14 @@ private ActionForward nextInstruction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { InstructionNavForm navForm = (InstructionNavForm) form; - navForm.setCurrent(navForm.getCurrent()+1); - return findForward(navForm.getType(),mapping); + List list = navForm.getAllInstructions(); + if(list != null && navForm.getCurrent() < list.size()){ + //current is start from 1, so, this will return next. + navForm.setInstruction((ResourceItemInstruction) list.get(navForm.getCurrent())); + navForm.setCurrent(navForm.getCurrent()+1); + } + + return mapping.findForward(ResourceConstants.SUCCESS); } @@ -176,11 +182,17 @@ Set instructions = item.getItemInstructions(); InstructionNavForm navForm = (InstructionNavForm) form; + navForm.setAllInstructions(new ArrayList(instructions)); navForm.setTitle(item.getTitle()); navForm.setType(item.getType()); - navForm.setCurrent(1); navForm.setTotal(instructions.size()); - navForm.setInstructions(instructions); + if(instructions.size() > 0){ + navForm.setCurrent(1); + navForm.setInstruction((ResourceItemInstruction) instructions.iterator().next()); + }else{ + navForm.setCurrent(0); + navForm.setInstruction(null); + } if(item.getType() == ResourceConstants.RESOURCE_TYPE_LEARNING_OBJECT) request.getSession().setAttribute(ResourceConstants.ATT_LEARNING_OBJECT,item); //set url to content frame @@ -805,7 +817,7 @@ url = "/download/?uuid="+item.getFileUuid()+"&preferDownload=false"; break; case ResourceConstants.RESOURCE_TYPE_LEARNING_OBJECT: - url = "/pages/learningobject/mainframe.jsp"; + url = "/pages/learningobj/mainframe.jsp"; break; } return url; Index: lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/form/InstructionNavForm.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/form/Attic/InstructionNavForm.java,v diff -u -r1.1 -r1.2 --- lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/form/InstructionNavForm.java 11 Apr 2006 07:25:23 -0000 1.1 +++ lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/form/InstructionNavForm.java 12 Apr 2006 04:38:41 -0000 1.2 @@ -24,9 +24,11 @@ /* $Id$ */ package org.lamsfoundation.lams.tool.rsrc.web.form; +import java.util.List; import java.util.Set; import org.apache.struts.action.ActionForm; +import org.lamsfoundation.lams.tool.rsrc.model.ResourceItemInstruction; /** * @@ -39,16 +41,10 @@ private String title; private int total; private int current; - private Set instructions; + private ResourceItemInstruction instruction; + private List allInstructions; private short type; - - - public Set getInstructions() { - return instructions; - } - public void setInstructions(Set instructions) { - this.instructions = instructions; - } + public int getCurrent() { return current; } @@ -73,5 +69,17 @@ public short getType() { return type; } + public ResourceItemInstruction getInstruction() { + return instruction; + } + public void setInstruction(ResourceItemInstruction instruction) { + this.instruction = instruction; + } + public List getAllInstructions() { + return allInstructions; + } + public void setAllInstructions(List allInstructions) { + this.allInstructions = allInstructions; + } } Index: lams_tool_larsrc/web/pages/authoring/parts/addurl.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/authoring/parts/addurl.jsp,v diff -u -r1.6 -r1.7 --- lams_tool_larsrc/web/pages/authoring/parts/addurl.jsp 11 Apr 2006 07:25:23 -0000 1.6 +++ lams_tool_larsrc/web/pages/authoring/parts/addurl.jsp 12 Apr 2006 04:38:42 -0000 1.7 @@ -38,7 +38,7 @@ - + @@ -63,7 +63,7 @@ " class="buttonStyle"> - + " class="buttonStyle"> Fisheye: Tag 1.2 refers to a dead (removed) revision in file `lams_tool_larsrc/web/pages/itemdisplay/instructionsnav.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.2 refers to a dead (removed) revision in file `lams_tool_larsrc/web/pages/itemdisplay/mainframe.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_larsrc/web/pages/itemreview/instructionsnav.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/itemreview/instructionsnav.jsp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_tool_larsrc/web/pages/itemreview/instructionsnav.jsp 12 Apr 2006 04:38:42 -0000 1.1 @@ -0,0 +1,94 @@ +<%@ include file="/common/taglibs.jsp"%> + + + + + + +" /> + + + + + ${formBean.title} + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ ${formBean.title} + + Instructions  +
+ + + + + +
+

Step ${formBean.current} of ${formBean.total}

+

+ + + + + + + ${formBean.instruction.description} + + + +

+ + + + + + + + +
+
+ + Index: lams_tool_larsrc/web/pages/itemreview/mainframe.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/itemreview/mainframe.jsp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_tool_larsrc/web/pages/itemreview/mainframe.jsp 12 Apr 2006 04:38:42 -0000 1.1 @@ -0,0 +1,25 @@ +<%-- +Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) +License Information: http://lamsfoundation.org/licensing/lams/2.0/ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 as + published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + USA + + http://www.gnu.org/licenses/gpl.txt +--%> +<%@ include file="/common/taglibs.jsp" %> + + " name=headerFrame" marginheight="0" scrolling="NO"> + + Index: lams_tool_larsrc/web/pages/learningobj/mainframe.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/learningobj/mainframe.jsp,v diff -u -r1.1 -r1.2 --- lams_tool_larsrc/web/pages/learningobj/mainframe.jsp 11 Apr 2006 07:25:24 -0000 1.1 +++ lams_tool_larsrc/web/pages/learningobj/mainframe.jsp 12 Apr 2006 04:38:42 -0000 1.2 @@ -20,11 +20,10 @@ --%> <%@ include file="/common/taglibs.jsp" %> - - - - - + + + +
@@ -42,5 +41,4 @@
- \ No newline at end of file Index: lams_tool_larsrc/web/pages/learningobj/navigatortree.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/learningobj/navigatortree.jsp,v diff -u -r1.4 -r1.5 --- lams_tool_larsrc/web/pages/learningobj/navigatortree.jsp 11 Apr 2006 07:25:24 -0000 1.4 +++ lams_tool_larsrc/web/pages/learningobj/navigatortree.jsp 12 Apr 2006 04:38:42 -0000 1.5 @@ -19,36 +19,40 @@ http://www.gnu.org/licenses/gpl.txt --%> -<%@ include file="/common/taglibs.jsp" %> - - - +<%@ include file="/common/taglibs.jsp"%> + + + + + + + - - - - - - - - - - - - - - - - + + - + - - - +
- - - -

The content package details are missing.

-
- -

-



- - - - - -

+ + +
+ + + +

+ The content package details are missing. +

+
+ +

+ +

+ +

+ + + + + + +

-
\ No newline at end of file +