Index: lams_build/3rdParty.userlibraries
===================================================================
RCS file: /usr/local/cvsroot/lams_build/3rdParty.userlibraries,v
diff -u -r1.71.2.22 -r1.71.2.23
--- lams_build/3rdParty.userlibraries 17 Feb 2016 13:52:24 -0000 1.71.2.22
+++ lams_build/3rdParty.userlibraries 26 Feb 2016 06:50:43 -0000 1.71.2.23
@@ -8,7 +8,6 @@
-
Index: lams_build/build.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_build/build.xml,v
diff -u -r1.120.2.61 -r1.120.2.62
--- lams_build/build.xml 17 Feb 2016 13:52:24 -0000 1.120.2.61
+++ lams_build/build.xml 26 Feb 2016 06:50:43 -0000 1.120.2.62
@@ -448,19 +448,9 @@
+
-
-
-
-
-
-
-
-
-
-
Fisheye: Tag 1.1.2.3 refers to a dead (removed) revision in file `lams_build/lib/batik/batik.module.xml'.
Fisheye: No comparison available. Pass `N' to diff?
Index: lams_build/lib/lams/lams.jar
===================================================================
RCS file: /usr/local/cvsroot/lams_build/lib/lams/lams.jar,v
diff -u -r1.420.2.62 -r1.420.2.63
Binary files differ
Index: lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringAction.java,v
diff -u -r1.53.2.7 -r1.53.2.8
--- lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringAction.java 24 Feb 2016 12:35:44 -0000 1.53.2.7
+++ lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringAction.java 26 Feb 2016 06:50:57 -0000 1.53.2.8
@@ -497,7 +497,11 @@
if (AuthoringAction.log.isDebugEnabled()) {
AuthoringAction.log.debug("Created a single activity lesson with ID: " + lesson.getLessonId());
}
+
+ response.setContentType("text/plain;charset=utf-8");
+ response.getWriter().write(learningDesignID.toString());
}
+
return null;
}
Index: lams_central/src/java/org/lamsfoundation/lams/util/CentralConstants.java
===================================================================
RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/util/CentralConstants.java,v
diff -u -r1.37.2.2 -r1.37.2.3
--- lams_central/src/java/org/lamsfoundation/lams/util/CentralConstants.java 24 Feb 2016 12:35:44 -0000 1.37.2.2
+++ lams_central/src/java/org/lamsfoundation/lams/util/CentralConstants.java 26 Feb 2016 06:50:57 -0000 1.37.2.3
@@ -59,8 +59,6 @@
public static final String PARAM_METHOD = "method";
- public static final String PARAM_SVG_FORMAT = "svgFormat";
-
public static final String PARAM_MODE = "mode";
public static final String PARAM_FILEPATH = "filePath";
Index: lams_central/src/java/org/lamsfoundation/lams/web/HomeAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/web/HomeAction.java,v
diff -u -r1.60.2.16 -r1.60.2.17
--- lams_central/src/java/org/lamsfoundation/lams/web/HomeAction.java 24 Feb 2016 12:35:44 -0000 1.60.2.16
+++ lams_central/src/java/org/lamsfoundation/lams/web/HomeAction.java 26 Feb 2016 06:50:57 -0000 1.60.2.17
@@ -39,7 +39,6 @@
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
-import org.apache.batik.transcoder.TranscoderException;
import org.apache.commons.io.IOUtils;
import org.apache.log4j.Logger;
import org.apache.struts.action.ActionForm;
@@ -53,6 +52,7 @@
import org.lamsfoundation.lams.learningdesign.GroupUser;
import org.lamsfoundation.lams.learningdesign.dao.IGroupUserDAO;
import org.lamsfoundation.lams.learningdesign.service.ILearningDesignService;
+import org.lamsfoundation.lams.learningdesign.service.LearningDesignService;
import org.lamsfoundation.lams.lesson.Lesson;
import org.lamsfoundation.lams.lesson.dto.LessonDTO;
import org.lamsfoundation.lams.lesson.service.ILessonService;
@@ -70,7 +70,6 @@
import org.lamsfoundation.lams.util.ConfigurationKeys;
import org.lamsfoundation.lams.util.FileUtil;
import org.lamsfoundation.lams.util.WebUtil;
-import org.lamsfoundation.lams.util.svg.SVGGenerator;
import org.lamsfoundation.lams.web.session.SessionManager;
import org.lamsfoundation.lams.web.util.AttributeNames;
import org.lamsfoundation.lams.workspace.service.IWorkspaceManagementService;
@@ -186,12 +185,6 @@
if (lesson.isDisplayDesignImage()) {
Long learningDesignId = lesson.getLearningDesign().getLearningDesignId();
req.setAttribute(AttributeNames.PARAM_LEARNINGDESIGN_ID, learningDesignId);
-
- if (lesson.getLearnerProgresses().isEmpty()) {
- // create svg, png files on the server
- getLearningDesignService().createLearningDesignSVG(learningDesignId,
- SVGGenerator.OUTPUT_FORMAT_SVG);
- }
}
return mapping.findForward("lessonIntro");
}
@@ -410,20 +403,10 @@
return null;
}
- public ActionForward createLearningDesignThumbnail(ActionMapping mapping, ActionForm form, HttpServletRequest req,
- HttpServletResponse res) throws JDOMException, IOException, TranscoderException {
+ public ActionForward getLearningDesignThumbnail(ActionMapping mapping, ActionForm form, HttpServletRequest req,
+ HttpServletResponse res) throws JDOMException, IOException {
Long learningDesignId = WebUtil.readLongParam(req, CentralConstants.PARAM_LEARNING_DESIGN_ID);
- Integer format = WebUtil.readIntParam(req, CentralConstants.PARAM_SVG_FORMAT, true);
- format = format == null ? SVGGenerator.OUTPUT_FORMAT_SVG : format;
- Long branchingActivityId = WebUtil.readLongParam(req, "branchingActivityID", true);
boolean download = WebUtil.readBooleanParam(req, "download", false);
- String imagePath = null;
- if (branchingActivityId == null) {
- imagePath = getLearningDesignService().createLearningDesignSVG(learningDesignId, format);
- } else {
- imagePath = getLearningDesignService().createBranchingSVG(branchingActivityId, format);
- }
-
// should the image be downloaded or a part of page?
if (download) {
String name = getLearningDesignService()
@@ -435,8 +418,10 @@
} else {
res.setContentType("image/svg+xml");
}
- OutputStream output = res.getOutputStream();
+
+ String imagePath = LearningDesignService.getLearningDesignSVGPath(learningDesignId);
FileInputStream input = new FileInputStream(imagePath);
+ OutputStream output = res.getOutputStream();
IOUtils.copy(input, output);
IOUtils.closeQuietly(input);
IOUtils.closeQuietly(output);
Fisheye: Tag 1.7.2.1 refers to a dead (removed) revision in file `lams_central/src/java/org/lamsfoundation/lams/webservice/LearningDesignSVGServlet.java'.
Fisheye: No comparison available. Pass `N' to diff?
Index: lams_central/web/addLesson.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/addLesson.jsp,v
diff -u -r1.16.2.7 -r1.16.2.8
--- lams_central/web/addLesson.jsp 24 Feb 2016 12:35:44 -0000 1.16.2.7
+++ lams_central/web/addLesson.jsp 26 Feb 2016 06:50:57 -0000 1.16.2.8
@@ -28,7 +28,7 @@
users = ${users},
LAMS_URL = '',
- LD_THUMBNAIL_URL_BASE = LAMS_URL + 'home.do?method=createLearningDesignThumbnail&svgFormat=1&ldId=',
+ LD_THUMBNAIL_URL_BASE = LAMS_URL + 'home.do?method=getLearningDesignThumbnail&ldId=',
CANVAS_RESIZE_OPTION_NONE = 0,
CANVAS_RESIZE_OPTION_FIT = 1,
Index: lams_central/web/WEB-INF/web.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/WEB-INF/Attic/web.xml,v
diff -u -r1.51.2.12 -r1.51.2.13
--- lams_central/web/WEB-INF/web.xml 2 Jan 2016 12:42:55 -0000 1.51.2.12
+++ lams_central/web/WEB-INF/web.xml 26 Feb 2016 06:50:57 -0000 1.51.2.13
@@ -412,13 +412,6 @@
- LearningDesignSVG
-
- org.lamsfoundation.lams.webservice.LearningDesignSVGServlet
-
-
-
-
LessonManager
org.lamsfoundation.lams.webservice.xml.LessonManagerServlet
@@ -521,11 +514,6 @@
- LearningDesignSVG
- /services/LearningDesignSVG/*
-
-
-
LessonManager
/services/xml/LessonManager/*
@@ -770,7 +758,6 @@
/LoginRequest
/services/xml/LessonManager/*
/services/xml/LearningDesignRepository/*
- /services/LearningDesignSVG/*
/services/Gradebook
/services/xml/LessonJoin/*
/services/CourseGroupManager
Index: lams_central/web/authoring/authoring.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/authoring/authoring.jsp,v
diff -u -r1.6.2.20 -r1.6.2.21
--- lams_central/web/authoring/authoring.jsp 5 Feb 2016 09:53:04 -0000 1.6.2.20
+++ lams_central/web/authoring/authoring.jsp 26 Feb 2016 06:50:57 -0000 1.6.2.21
@@ -39,7 +39,7 @@
+
+
+
+