--- loncom/interface/lonprintout.pm 2006/02/24 22:37:45 1.423
+++ loncom/interface/lonprintout.pm 2006/03/06 23:32:31 1.426
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.423 2006/02/24 22:37:45 foxr Exp $
+# $Id: lonprintout.pm,v 1.426 2006/03/06 23:32:31 foxr Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2169,7 +2169,19 @@ ALL_PROBLEMS
push @{$printChoices}, ["".&mt('Problems')." ".&mt('from')." $sequenceTitle ".&mt('for')." ".&mt('selected students')."", 'problems_for_students', 'CHOOSE_STUDENTS'];
push @{$printChoices}, ["".&mt('Problems')." ".&mt('from')." $sequenceTitle ".&mt('for')." ".&mt('anonymous students')."", 'problems_for_anon', 'CHOOSE_ANON1'];
}
+
+ # resource_selector will hold a few states that:
+ # - Allow resources to be selected for printing.
+ # - Determine pagination between assignments.
+ # - Determine how many assignments should be bundled into a single PDF.
+ # TODO:
+ # Probably good to do things like separate this up into several vars, each
+ # with one state, and use REGEXPs at inclusion time to set state names
+ # and next states for better mix and match capability
+ #
my $resource_selector=<
+ PRINT_FORMATTING Select resources for the assignment
@@ -2178,6 +2190,9 @@ ALL_PROBLEMS
return $symbFilter;
+
+
+ NUMBER_PER_PDF How should the results be printed? Start each student\'s assignment on a new page/column (add a pagefeed after each assignment)
@@ -2185,20 +2200,24 @@ ALL_PROBLEMS
Add two empty pages/column after each student\'s assignmentAdd three empty pages/column after each student\'s assignment
+
+
+ PAGESIZENumber of assignments printed at the same time: "all"
+
RESOURCE_SELECTOR
&Apache::lonxml::xmlparse($r, 'helper', <
- Select sort orderSort by section then studentSort by students across sections.
- $resource_selector
+
+ $resource_selector
CHOOSE_STUDENTS
my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'};
@@ -2244,7 +2263,7 @@ CHOOSE_STUDENTS
}
&Apache::lonxml::xmlparse($r, 'helper', <
- PAGESIZE
+ SELECT_PROBLEMS