--- loncom/interface/lonprintout.pm 2006/02/24 22:37:45 1.423 +++ loncom/interface/lonprintout.pm 2006/03/01 11:20:37 1.424 @@ -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.424 2006/03/01 11:20:37 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 assignment Add three empty pages/column after each student\'s assignment +
+ + PAGESIZE
Number of assignments printed at the same time:
"all" +
RESOURCE_SELECTOR &Apache::lonxml::xmlparse($r, 'helper', < - + Select sort order Sort by section then student Sort 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
Number of anonymous assignments to print: @@ -2290,8 +2309,8 @@ CHOOSE_STUDENTS

- $resource_selector + $resource_selector CHOOSE_ANON1 @@ -2302,6 +2321,8 @@ CHOOSE_ANON1 $resource_selector=< + PRINT_FORMATTING
Select resources for the assignment
@@ -2310,6 +2331,9 @@ CHOOSE_ANON1 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) @@ -2317,25 +2341,29 @@ CHOOSE_ANON1 Add two empty pages/column after each student\'s assignment Add three empty pages/column after each student\'s assignment +
+ + PAGESIZE
Number of assignments printed at the same time:
"all" +
RESOURCE_SELECTOR &Apache::lonxml::xmlparse($r, 'helper', < - + Sort by section then student Sort by students across sections. - $resource_selector + $resource_selector CHOOSE_STUDENTS1 &Apache::lonxml::xmlparse($r, 'helper', < - PAGESIZE + SELECT_RESOURCES
Number of anonymous assignments to print: @@ -2381,8 +2409,8 @@ CHOOSE_STUDENTS1

- $resource_selector + $resource_selector CHOOSE_ANON2 }