Index: lams_tool_survey/conf/language/lams/ApplicationResources.properties =================================================================== diff -u -rb18420ec1c2d235884d40f71df9d1a7fda6a60b9 -r1aea223e6eb2cd1d28e948bcb8f2a7f104337b1c --- lams_tool_survey/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision b18420ec1c2d235884d40f71df9d1a7fda6a60b9) +++ lams_tool_survey/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 1aea223e6eb2cd1d28e948bcb8f2a7f104337b1c) @@ -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 =================================================================== diff -u -r13b73687bb274100057f20c3e95518d005a11675 -r1aea223e6eb2cd1d28e948bcb8f2a7f104337b1c --- lams_tool_survey/conf/xdoclet/struts-actions.xml (.../struts-actions.xml) (revision 13b73687bb274100057f20c3e95518d005a11675) +++ lams_tool_survey/conf/xdoclet/struts-actions.xml (.../struts-actions.xml) (revision 1aea223e6eb2cd1d28e948bcb8f2a7f104337b1c) @@ -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 =================================================================== diff -u Binary files differ Index: lams_tool_survey/web/pages/authoring/basic.jsp =================================================================== diff -u -r2c033d93137546b6df85ab5c5edc6ee524700ff8 -r1aea223e6eb2cd1d28e948bcb8f2a7f104337b1c --- lams_tool_survey/web/pages/authoring/basic.jsp (.../basic.jsp) (revision 2c033d93137546b6df85ab5c5edc6ee524700ff8) +++ lams_tool_survey/web/pages/authoring/basic.jsp (.../basic.jsp) (revision 1aea223e6eb2cd1d28e948bcb8f2a7f104337b1c) @@ -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 =================================================================== diff -u -r709b7e15ccba84b0ba35b3a718dad74365da804a -r1aea223e6eb2cd1d28e948bcb8f2a7f104337b1c --- lams_tool_survey/web/pages/authoring/parts/itemlist.jsp (.../itemlist.jsp) (revision 709b7e15ccba84b0ba35b3a718dad74365da804a) +++ lams_tool_survey/web/pages/authoring/parts/itemlist.jsp (.../itemlist.jsp) (revision 1aea223e6eb2cd1d28e948bcb8f2a7f104337b1c) @@ -73,6 +73,14 @@ + " + onclick="copyItem(${status.index},${question.type},'${sessionMapID}','${contentFolderID}')"> + + + + "