Index: lams_central/build.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_central/build.xml,v
diff -u -r1.44.4.1 -r1.44.4.2
--- lams_central/build.xml 21 Apr 2009 10:29:52 -0000 1.44.4.1
+++ lams_central/build.xml 18 Jun 2009 19:43:36 -0000 1.44.4.2
@@ -186,6 +186,10 @@
+
+
+
+
@@ -295,10 +299,6 @@
-
-
-
-
@@ -312,8 +312,8 @@
-
-
+
+
Index: lams_central/conf/language/lams/ApplicationResources.properties
===================================================================
RCS file: /usr/local/cvsroot/lams_central/conf/language/lams/ApplicationResources.properties,v
diff -u -r1.71.2.14 -r1.71.2.15
--- lams_central/conf/language/lams/ApplicationResources.properties 16 Jun 2009 13:13:10 -0000 1.71.2.14
+++ lams_central/conf/language/lams/ApplicationResources.properties 18 Jun 2009 19:43:37 -0000 1.71.2.15
@@ -360,4 +360,8 @@
label.planner.tutorial.video=Introduction to Pedagogical Planner
label.tutorial.video.never.show.again=Do not show this again
+label.planner.tutorial.video.show=Show tutorial video: Introduction to Pedagogical Planner
+label.tutorial.enabled=Automatically open help assistants. If this option is No, then no online help assistants will be opened.
+label.tutorial.disable.single=You have chosen not to show this video again. You can always play it using the video icon in the right upper corner of the page.
+label.tutorial.disable.all=Welcome to LAMS! As a new user, you might want to spend a few minutes looking at the new online assistant animations and videos to help you get the most out of LAMS. You can turn this option off if you are an experience LAMS user. If you are new to LAMS, we recommend that you leave this on to get contextual help. Do you want to to leave this option on?
#======= End labels: Exported 266 labels for en AU =====
Index: lams_central/conf/xdoclet/struts-forms.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_central/conf/xdoclet/struts-forms.xml,v
diff -u -r1.8.4.1 -r1.8.4.2
--- lams_central/conf/xdoclet/struts-forms.xml 27 Apr 2009 22:24:00 -0000 1.8.4.1
+++ lams_central/conf/xdoclet/struts-forms.xml 18 Jun 2009 19:43:37 -0000 1.8.4.2
@@ -37,6 +37,7 @@
+
Index: lams_central/src/java/org/lamsfoundation/lams/web/IndexAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/web/IndexAction.java,v
diff -u -r1.49.4.1 -r1.49.4.2
--- lams_central/src/java/org/lamsfoundation/lams/web/IndexAction.java 23 Apr 2009 06:41:42 -0000 1.49.4.1
+++ lams_central/src/java/org/lamsfoundation/lams/web/IndexAction.java 18 Jun 2009 19:43:36 -0000 1.49.4.2
@@ -28,6 +28,7 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
+import javax.servlet.http.HttpSession;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
@@ -41,10 +42,13 @@
import org.lamsfoundation.lams.learningdesign.service.IExportToolContentService;
import org.lamsfoundation.lams.usermanagement.Role;
import org.lamsfoundation.lams.usermanagement.User;
+import org.lamsfoundation.lams.usermanagement.dto.UserDTO;
import org.lamsfoundation.lams.usermanagement.service.IUserManagementService;
import org.lamsfoundation.lams.util.Configuration;
import org.lamsfoundation.lams.util.ConfigurationKeys;
import org.lamsfoundation.lams.util.WebUtil;
+import org.lamsfoundation.lams.web.session.SessionManager;
+import org.lamsfoundation.lams.web.util.AttributeNames;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
@@ -92,6 +96,19 @@
setHeaderLinks(request);
setAdminLinks(request);
+ // check if this is user's first login; some action (like displaying a dialog for disabling tutorials) can be
+ // taken based on that parameter; immediatelly, the value in DB is updated
+ HttpSession ss = SessionManager.getSession();
+ UserDTO userDTO = (UserDTO) ss.getAttribute(AttributeNames.USER);
+ if (userDTO.isFirstLogin()) {
+ request.setAttribute("firstLogin", true);
+ User user = getUserManagementService().getUserByLogin(userDTO.getLogin());
+ user.setFirstLogin(false);
+ getUserManagementService().save(user);
+ ss.removeAttribute(AttributeNames.USER);
+ ss.setAttribute(AttributeNames.USER, user.getUserDTO());
+ }
+
// check if user is flagged as needing to change their password
User loggedInUser = getUserManagementService().getUserByLogin(request.getRemoteUser());
if (loggedInUser.getChangePassword() != null) {
@@ -118,7 +135,7 @@
} else if (StringUtils.equals(tab, "lessons")) {
return mapping.findForward("lessons");
} else if (StringUtils.equals(tab, "community")) {
-
+
String comLoginUrl = Configuration.get(ConfigurationKeys.SERVER_URL) + "/lamsCommunityLogin.do";
request.setAttribute("comLoginUrl", comLoginUrl);
request.setAttribute("tab", tab);
@@ -155,10 +172,9 @@
headerLinks.add(new IndexLinkBean("index.author", "javascript:openAuthor()"));
}
headerLinks.add(new IndexLinkBean("index.myprofile", "index.do?tab=profile"));
-
-
+
Registration reg = Configuration.getRegistration();
- if (reg != null) {
+ if (reg != null) {
if (request.isUserInRole(Role.SYSADMIN) || request.isUserInRole(Role.GROUP_ADMIN)
|| request.isUserInRole(Role.GROUP_MANAGER) || request.isUserInRole(Role.AUTHOR)
|| request.isUserInRole(Role.AUTHOR_ADMIN) || request.isUserInRole(Role.MONITOR)) {
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `lams_central/src/java/org/lamsfoundation/lams/web/TutorialAction.java'.
Fisheye: No comparison available. Pass `N' to diff?
Index: lams_central/src/java/org/lamsfoundation/lams/web/planner/PedagogicalPlannerAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/web/planner/PedagogicalPlannerAction.java,v
diff -u -r1.18.2.1 -r1.18.2.2
--- lams_central/src/java/org/lamsfoundation/lams/web/planner/PedagogicalPlannerAction.java 13 May 2009 05:44:52 -0000 1.18.2.1
+++ lams_central/src/java/org/lamsfoundation/lams/web/planner/PedagogicalPlannerAction.java 18 Jun 2009 19:43:37 -0000 1.18.2.2
@@ -220,6 +220,9 @@
private static final Map filterLanguageMap = new TreeMap();
private static final Map filterStopWordsMap = new TreeMap();
+ // Tutorial video page string for recognising which page the video was started from
+ private static final String PAGE_STRING_START_PLANNER = "StPed";
+
static {
PedagogicalPlannerAction.filterLanguageMap.put("en", "English");
PedagogicalPlannerAction.filterLanguageMap.put("nl", "Dutch");
@@ -246,6 +249,19 @@
*/
public ActionForward unspecified(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
+
+ // First we check if a tutorial video should be displayed
+ HttpSession session = SessionManager.getSession();
+ UserDTO userDto = (UserDTO) session.getAttribute(AttributeNames.USER);
+
+ boolean doNotShowAgain = userDto.getPagesWithDisabledTutorials() != null
+ && userDto.getPagesWithDisabledTutorials().contains(PedagogicalPlannerAction.PAGE_STRING_START_PLANNER);
+ boolean showTutorial = !(userDto.getTutorialsDisabled() || doNotShowAgain);
+
+ request.setAttribute(AttributeNames.ATTR_PAGE_STR, PedagogicalPlannerAction.PAGE_STRING_START_PLANNER);
+ request.setAttribute(AttributeNames.ATTR_SHOW_TUTORIAL, showTutorial);
+ request.setAttribute(AttributeNames.ATTR_DO_NOT_SHOW_AGAIN, doNotShowAgain);
+
return openSequenceNode(mapping, form, request, response);
}
@@ -561,9 +577,8 @@
getMonitoringService().startLesson(lesson.getLessonId(), userDto.getUserID());
String newPath = mapping.findForward(PedagogicalPlannerAction.FORWARD_PREVIEW).getPath();
newPath = newPath + PedagogicalPlannerAction.CHAR_AMPERSAND + AttributeNames.PARAM_LESSON_ID
- + PedagogicalPlannerAction.CHAR_EQUALS + lesson.getLessonId()
- + PedagogicalPlannerAction.CHAR_AMPERSAND + AttributeNames.PARAM_MODE
- + PedagogicalPlannerAction.CHAR_EQUALS + "preview";
+ + PedagogicalPlannerAction.CHAR_EQUALS + lesson.getLessonId() + PedagogicalPlannerAction.CHAR_AMPERSAND
+ + AttributeNames.PARAM_MODE + PedagogicalPlannerAction.CHAR_EQUALS + "preview";
return new ActionForward(newPath, true);
}
Index: lams_central/web/editprofile.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/editprofile.jsp,v
diff -u -r1.14.4.1 -r1.14.4.2
--- lams_central/web/editprofile.jsp 27 Apr 2009 22:24:00 -0000 1.14.4.1
+++ lams_central/web/editprofile.jsp 18 Jun 2009 19:43:36 -0000 1.14.4.2
@@ -139,6 +139,20 @@
+
+
:
+
+
+
+
+
+
+
+
+
@@ -269,6 +283,18 @@
+
+
:
+
+
+
+
+
+
+
Index: lams_central/web/main.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/main.jsp,v
diff -u -r1.40 -r1.40.2.1
--- lams_central/web/main.jsp 31 Mar 2009 03:18:12 -0000 1.40
+++ lams_central/web/main.jsp 18 Jun 2009 19:43:36 -0000 1.40.2.1
@@ -49,6 +49,15 @@
initLoadGroup(this, 13, display);
});
+ <%-- If it's the user's first login, display a dialog asking if tutorial videos should be shown --%>
+
+
+
+
+ if (!confirm("")){
+ $.get("${disableAllTutorialVideosUrl}");
+ }
+
});
function getEnableSortingText() {
Index: lams_central/web/tutorialVideo.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/tutorialVideo.jsp,v
diff -u -r1.1.2.1 -r1.1.2.2
--- lams_central/web/tutorialVideo.jsp 16 Jun 2009 13:13:10 -0000 1.1.2.1
+++ lams_central/web/tutorialVideo.jsp 18 Jun 2009 19:43:36 -0000 1.1.2.2
@@ -1,9 +1,75 @@
<%@ taglib uri="tags-fmt" prefix="fmt"%>
+<%@ taglib uri="tags-core" prefix="c" %>
+<%@ taglib uri="tags-lams" prefix="lams" %>
+
+
+
+
+
+
+
+
+
+
-