--- loncom/interface/lonprintout.pm 2005/05/02 11:23:22 1.375 +++ loncom/interface/lonprintout.pm 2005/08/15 21:51:49 1.382 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.375 2005/05/02 11:23:22 foxr Exp $ +# $Id: lonprintout.pm,v 1.382 2005/08/15 21:51:49 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -44,6 +44,26 @@ use Apache::lonlocal; my $resources_printed = ''; +# Determine if a code entered by the user in a helper is valid. +# valid depends on the code type and the type of code selected. +# The type of code selected can either be numeric or +# Alphabetic. If alphabetic, the code, in fact is a simple +# substitution cipher for the actual numeric code: 0->A, 1->B ... +# We'll be nice and be case insensitive for alpha codes. +# Parameters: +# code_value - the value of the code the user typed in. +# code_option - The code type selected from the set in the scantron format +# table. +# Returns: +# undef - The code is valid. +# other - An error message indicating what's wrong. +# +sub is_code_valid { + my ($code_value, $code_option) = @_; + + return "Entering a single code is not supported (yet)"; +} + # Compare two students by name. The students are in the form # returned by the helper: # user:domain:section:last, first:status @@ -445,8 +465,8 @@ my %page_formats= '2' => ['3.16 in','13 in','-0.57 in','-0.57 in','-0.5 in'] }, 'album' => { - '1' => [], - '2' => [] + '1' => ['12 in','7.1 in',,'-0.57 in','-0.57 in','-0.5 in'], + '2' => ['6.0 in','7.1 in','-1 in','-1 in','5 in'] }, }, 'tabloid' => { @@ -455,8 +475,8 @@ my %page_formats= '2' => ['4.9 in','16 in','-0.57 in','-0.57 in','-0.5 in'] }, 'album' => { - '1' => [], - '2' => [] + '1' => ['16 in','9.8 in','-0.57 in','-0.57 in','-0.5 in'], + '2' => ['16 in','4.9 in','-0.57 in','-0.57 in','-0.5 in'] }, }, 'executive' => { @@ -650,7 +670,8 @@ sub latex_corrections { $first_comment = index($result,'