diff --git a/conf/bb-manifest.xml b/conf/bb-manifest.xml index 9535222b3939fb37fe4f21a6af8a1da75bc9c2c3..54be2bdb0826ce233b3212cc50ae6a9fb8b1a36e 100644 --- a/conf/bb-manifest.xml +++ b/conf/bb-manifest.xml @@ -4,7 +4,7 @@ <name value="Courses to Migrate Module"/> <handle value="crs_migrate_bb"/> <description value="Displays a list of courses the user is Instructing and allows them to designate the ones to be migrated to the new server."/> - <version value="0.3.1"/> + <version value="0.3.2"/> <requires> <bbversion value="8.0.0"/> diff --git a/web/module/migrate_form.jsp b/web/module/migrate_form.jsp index 6b9a15294151f29d28766737f7f47459584e3d25..4c94d589fb7b02492c62f34c55a9c0625a67175c 100644 --- a/web/module/migrate_form.jsp +++ b/web/module/migrate_form.jsp @@ -29,6 +29,7 @@ <%! static final long COURSE_SIZE_LIMIT = 4294967296L; //(4GB) Courses larger than this size can cause problems for the export/import tools +static final String COURSE_SIZE_WARNING = "This course may be too large to be migrated automatically. For assistance, please contact the computer help center at: 472-3970."; String display_orgs; String filter_enabled; String filter_type; @@ -181,7 +182,7 @@ String proc_uri = PlugInUtil.getUri("unl", "crs_migrate_bb", "module/proc_migrat CourseQuota cquota = CourseQuota.createInstance(course); long size = cquota.getCourseSize(); if(size > COURSE_SIZE_LIMIT){ - size_warning = "This course may be too large to be migrated automatically. Please contact the help center for assistance."; + size_warning = COURSE_SIZE_WARNING; } pageContext.setAttribute("size_warning", size_warning); pageContext.setAttribute("size", size); @@ -190,10 +191,10 @@ String proc_uri = PlugInUtil.getUri("unl", "crs_migrate_bb", "module/proc_migrat <li id="<%= course.getCourseId()%>-item"> <c:choose> <c:when test="${course.fee == 0.0}"> - <input type="checkbox" id="migrate_<%= course.getCourseId() %>" name="migrate_<%= course.getCourseId() %>" value="1" onClick="new Ajax.Updater('unl-crs_migrate_bb-list', '<%= proc_uri %>', {method: 'post', parameters: $('unl-crs_migrate_bb-form').serialize(true)})"><label for="migrate_<%= course.getCourseId() %>"><%=course.getCourseId()%><br><small><%=course.getTitle()%></small><!--size: <%=size%> --><small><font color="red"><%=size_warning%></font></small></label> + <input type="checkbox" id="migrate_<%= course.getCourseId() %>" name="migrate_<%= course.getCourseId() %>" value="1" onClick="new Ajax.Updater('unl-crs_migrate_bb-list', '<%= proc_uri %>', {method: 'post', parameters: $('unl-crs_migrate_bb-form').serialize(true)})"><label for="migrate_<%= course.getCourseId() %>"><%=course.getCourseId()%><br><small><%=course.getTitle()%></small><!--size: <%=size%> --><br><small><font color="red"><%=size_warning%></font></small></label> </c:when> <c:when test="${course.fee == 1.0}"> - <input type="checkbox" id="migrate_<%= course.getCourseId() %>" name="migrate_<%= course.getCourseId() %>" value="1" checked="1" onClick="new Ajax.Updater('unl-crs_migrate_bb-list', '<%= proc_uri %>', {method: 'post', parameters: $('unl-crs_migrate_bb-form').serialize(true)})"><label for="migrate_<%= course.getCourseId() %>"><b>Scheduled<%=schedDateText(course)%>:</b> <%=course.getCourseId()%><br><small><%= course.getTitle() %></small><!--size: <%=size%> --><small><font color="red"><%=size_warning%></font></small></label> + <input type="checkbox" id="migrate_<%= course.getCourseId() %>" name="migrate_<%= course.getCourseId() %>" value="1" checked="1" onClick="new Ajax.Updater('unl-crs_migrate_bb-list', '<%= proc_uri %>', {method: 'post', parameters: $('unl-crs_migrate_bb-form').serialize(true)})"><label for="migrate_<%= course.getCourseId() %>"><b>Scheduled<%=schedDateText(course)%>:</b> <%=course.getCourseId()%><br><small><%= course.getTitle() %></small><!--size: <%=size%> --><br><small><font color="red"><%=size_warning%></font></small></label> </c:when> <c:when test="${course.fee == 2.0}"> <b>In progress:</b> <%= course.getCourseId() %><br><small><%= course.getTitle() %></small> @@ -226,7 +227,7 @@ String proc_uri = PlugInUtil.getUri("unl", "crs_migrate_bb", "module/proc_migrat CourseQuota cquota = CourseQuota.createInstance(course); long size = cquota.getCourseSize(); if(size > COURSE_SIZE_LIMIT){ - size_warning = "This course may be too large to be migrated automatically. Please contact the help center for assistance."; + size_warning = COURSE_SIZE_WARNING; } pageContext.setAttribute("size_warning", size_warning); pageContext.setAttribute("size", size); @@ -235,10 +236,10 @@ String proc_uri = PlugInUtil.getUri("unl", "crs_migrate_bb", "module/proc_migrat <li id="<%= course.getCourseId()%>-item"> <c:choose> <c:when test="${course.fee == 0.0}"> - <input type="checkbox" id="migrate_<%= course.getCourseId() %>" name="migrate_<%= course.getCourseId() %>" value="1" onClick="new Ajax.Updater('unl-crs_migrate_bb-list', '<%= proc_uri %>', {method: 'post', parameters: $('unl-crs_migrate_bb-form').serialize(true)})"><label for="migrate_<%= course.getCourseId() %>"><%= course.getCourseId() %><br><small><%= course.getTitle() %></small><!--size: <%=size%> --><small><font color="red"><%=size_warning%></font></small></label> + <input type="checkbox" id="migrate_<%= course.getCourseId() %>" name="migrate_<%= course.getCourseId() %>" value="1" onClick="new Ajax.Updater('unl-crs_migrate_bb-list', '<%= proc_uri %>', {method: 'post', parameters: $('unl-crs_migrate_bb-form').serialize(true)})"><label for="migrate_<%= course.getCourseId() %>"><%= course.getCourseId() %><br><small><%= course.getTitle() %></small><!--size: <%=size%> --><br><small><font color="red"><%=size_warning%></font></small></label> </c:when> <c:when test="${course.fee == 1.0}"> - <input type="checkbox" id="migrate_<%= course.getCourseId() %>" name="migrate_<%= course.getCourseId() %>" value="1" checked="1" onClick="new Ajax.Updater('unl-crs_migrate_bb-list', '<%= proc_uri %>', {method: 'post', parameters: $('unl-crs_migrate_bb-form').serialize(true)})"><label for="migrate_<%= course.getCourseId() %>"><b>Scheduled:</b> <%= course.getCourseId() %><br><small><%= course.getTitle() %></small><!--size: <%=size%> --><small><font color="red"><%=size_warning%></font></small></label> + <input type="checkbox" id="migrate_<%= course.getCourseId() %>" name="migrate_<%= course.getCourseId() %>" value="1" checked="1" onClick="new Ajax.Updater('unl-crs_migrate_bb-list', '<%= proc_uri %>', {method: 'post', parameters: $('unl-crs_migrate_bb-form').serialize(true)})"><label for="migrate_<%= course.getCourseId() %>"><b>Scheduled:</b> <%= course.getCourseId() %><br><small><%= course.getTitle() %></small><!--size: <%=size%> --><br><small><font color="red"><%=size_warning%></font></small></label> </c:when> <c:when test="${course.fee == 2.0}"> <b>In progress:</b> <%= course.getCourseId() %><br><small><%= course.getTitle() %></small>