Index: lams_tool_survey/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_survey/conf/language/lams/ApplicationResources.properties,v diff -u -r1.19 -r1.20 --- lams_tool_survey/conf/language/lams/ApplicationResources.properties 3 Feb 2012 16:34:00 -0000 1.19 +++ lams_tool_survey/conf/language/lams/ApplicationResources.properties 28 Feb 2012 08:33:40 -0000 1.20 @@ -192,6 +192,6 @@ monitor.summary.notification =Notification monitor.summary.date.restriction.set =Date restriction has been set monitor.summary.date.restriction.removed =Date restriction has been removed +label.copy=Copy - #======= End labels: Exported 186 labels for en AU ===== Index: lams_tool_survey/conf/xdoclet/struts-actions.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_survey/conf/xdoclet/struts-actions.xml,v diff -u -r1.12 -r1.13 --- lams_tool_survey/conf/xdoclet/struts-actions.xml 10 May 2011 11:38:46 -0000 1.12 +++ lams_tool_survey/conf/xdoclet/struts-actions.xml 28 Feb 2012 08:33:40 -0000 1.13 @@ -80,6 +80,16 @@ + + + + + surveyList = getSurveyItemList(sessionMap); + List rList = new ArrayList(surveyList); + SurveyQuestion item = rList.get(itemIdx); + if (item != null) { + populateItemToForm(-1, item, itemForm, request); + itemForm.setItemIndex(null); + } + + if (itemForm.getItemType() == SurveyConstants.QUESTION_TYPE_TEXT_ENTRY) { + return mapping.findForward(SurveyConstants.FORWARD_OPEN_QUESTION); + } else { + return mapping.findForward(SurveyConstants.FORWARD_CHOICE_QUESTION); + } + } + /** * This method will get necessary information from survey item form and save or update into HttpSession * SurveyItemList. Notice, this save is not persist them into database, just save HttpSession Index: lams_tool_survey/web/includes/images/page_copy.png =================================================================== RCS file: /usr/local/cvsroot/lams_tool_survey/web/includes/images/page_copy.png,v diff -u Binary files differ Index: lams_tool_survey/web/pages/authoring/basic.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_survey/web/pages/authoring/basic.jsp,v diff -u -r1.13 -r1.14 --- lams_tool_survey/web/pages/authoring/basic.jsp 4 Jan 2012 17:19:38 -0000 1.13 +++ lams_tool_survey/web/pages/authoring/basic.jsp 28 Feb 2012 08:33:40 -0000 1.14 @@ -38,10 +38,17 @@ function editItem(idx,itemType,sessionMapID,contentFolderID){ - var reqIDVar = new Date(); + var reqIDVar = new Date(); var url = "" + idx +"&itemType="+itemType+"&reqID="+reqIDVar.getTime()+"&sessionMapID="+sessionMapID+"&contentFolderID="+contentFolderID; showMessage(url); } + + function copyItem(idx,itemType,sessionMapID,contentFolderID){ + var reqIDVar = new Date(); + var url = "" + idx +"&itemType="+itemType+"&reqID="+reqIDVar.getTime()+"&sessionMapID="+sessionMapID+"&contentFolderID="+contentFolderID; + showMessage(url); + } + //The panel of survey list panel var surveyListTargetDiv = "surveyListArea"; function deleteItem(idx,sessionMapID){ Index: lams_tool_survey/web/pages/authoring/parts/itemlist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_survey/web/pages/authoring/parts/itemlist.jsp,v diff -u -r1.9 -r1.10 --- lams_tool_survey/web/pages/authoring/parts/itemlist.jsp 8 Nov 2006 06:11:30 -0000 1.9 +++ lams_tool_survey/web/pages/authoring/parts/itemlist.jsp 28 Feb 2012 08:33:40 -0000 1.10 @@ -73,6 +73,14 @@ + " + onclick="copyItem(${status.index},${question.type},'${sessionMapID}','${contentFolderID}')"> + + + + "