version 1.683, 2023/01/15 01:19:50
|
version 1.698, 2024/11/01 00:08:03
|
Line 453 sub generate_common_choosers {
|
Line 453 sub generate_common_choosers {
|
&get_randomly_ordered_warning($helper, $map); |
&get_randomly_ordered_warning($helper, $map); |
|
|
# code for a few states used for printout launched from both |
# code for a few states used for printout launched from both |
# /adm/navmpas and from a resource by a privileged user: |
# /adm/navmaps and from a resource by a privileged user: |
# - To allow resources to be selected for printing. |
# - To allow resources to be selected for printing. |
# - To determine pagination between assignments. |
# - To determine pagination between assignments. |
# - To determine how many assignments should be bundled into a single PDF. |
# - To determine how many assignments should be bundled into a single PDF. |
Line 755 sub get_print_dates {
|
Line 755 sub get_print_dates {
|
# get_print_dates but namvaps::course_print_dates are gotten...and not converted |
# get_print_dates but namvaps::course_print_dates are gotten...and not converted |
# to times either. |
# to times either. |
# |
# |
# @param $res - Reference to a resource has from lonnvampas::resource. |
# @param $res - Reference to a resource hash from lonnavmaps::resource. |
# |
# |
# @return (opendate, closedate) |
# @return (opendate, closedate) |
# |
# |
Line 769 sub course_print_dates {
|
Line 769 sub course_print_dates {
|
my @close_dates; |
my @close_dates; |
my $navmap = $res->{NAV_MAP}; # Slightly OO dirty. |
my $navmap = $res->{NAV_MAP}; # Slightly OO dirty. |
|
|
# Don't bother looping over undefined or empty parts arraY; |
# Don't bother looping over undefined or empty parts array; |
|
|
if (@parts) { |
if (@parts) { |
foreach my $part (@parts) { |
foreach my $part (@parts) { |
Line 795 sub map_print_dates {
|
Line 795 sub map_print_dates {
|
my $navmap = $res->{NAV_MAP}; # slightly OO dirty. |
my $navmap = $res->{NAV_MAP}; # slightly OO dirty. |
|
|
|
|
# Don't bother looping over undefined or empty parts arraY; |
# Don't bother looping over undefined or empty parts array; |
|
|
if (@parts) { |
if (@parts) { |
foreach my $part (@parts) { |
foreach my $part (@parts) { |
Line 896 sub master_seq_to_person_seq {
|
Line 896 sub master_seq_to_person_seq {
|
my $iterator = $navmap->getIterator($start,$finish,{},1); |
my $iterator = $navmap->getIterator($start,$finish,{},1); |
|
|
# Iterate on the resource..select the items that are randomly selected |
# Iterate on the resource..select the items that are randomly selected |
# and that are in the seq_has. Presumably the iterator will take care |
# and that are in the seq_hash. Presumably the iterator will take care |
# of the random ordering part of the deal. |
# of the random ordering part of the deal. |
# |
# |
my $curres; |
my $curres; |
while ($curres = $iterator->next()) { |
while ($curres = $iterator->next()) { |
Line 973 sub set_font_size {
|
Line 973 sub set_font_size {
|
my ($text) = @_; |
my ($text) = @_; |
|
|
# There appear to be cases where the font directive is empty.. in which |
# There appear to be cases where the font directive is empty.. in which |
# case the first substituion would insert a spurious \ oh happy day. |
# case the first substitution would insert a spurious \ oh happy day. |
# as this has been the cause of much mystery and hair pulling _sigh_ |
# as this has been the cause of much mystery and hair pulling _sigh_ |
|
|
if ($font_size ne '') { |
if ($font_size ne '') { |
Line 992 sub set_font_size {
|
Line 992 sub set_font_size {
|
# - The PDF, if necessary, is replicated. |
# - The PDF, if necessary, is replicated. |
# - The PDF is added to the list of files to convert to postscript (along with the images). |
# - The PDF is added to the list of files to convert to postscript (along with the images). |
# - The LaTeX is added to include the final converted postscript in the file as an included |
# - The LaTeX is added to include the final converted postscript in the file as an included |
# job. The assumption is that the includedpsheader.ps header will be included. |
# job. The assumption is that the includepsheader.ps header will be included. |
# |
# |
# Parameters: |
# Parameters: |
# pdf_uri - URI of the PDF file to include. |
# pdf_uri - URI of the PDF file to include. |
Line 1016 sub include_pdf {
|
Line 1016 sub include_pdf {
|
$file = &Apache::lonnet::filelocation('',$pdf_uri); |
$file = &Apache::lonnet::filelocation('',$pdf_uri); |
} |
} |
|
|
# The file isn ow replicated locally.. or it did not exist in the first place |
# The file is now replicated locally ... or it did not exist in the first place |
# (unlikely). If it did exist, add the pdf to the set of files/images that |
# (unlikely). If it did exist, add the pdf to the set of files/images that |
# need tob e converted for this print job: |
# need to be converted for this print job: |
|
|
my $londocroot = $Apache::lonnet::perlvar{'lonDocRoot'}; |
my $londocroot = $Apache::lonnet::perlvar{'lonDocRoot'}; |
$file =~ s{(.*)/res/}{$londocroot/res/}; |
$file =~ s{(.*)/res/}{$londocroot/res/}; |
Line 1155 sub printf_style_subst {
|
Line 1155 sub printf_style_subst {
|
if ($size ne "") { |
if ($size ne "") { |
$subst = substr($subst, 0, $size); |
$subst = substr($subst, 0, $size); |
|
|
# Here's a nice edge case.. supose the end of the |
# Here's a nice edge case ... suppose the end of the |
# substring is a \. In that case may have just |
# substring is a \. In that case may have just |
# chopped off a TeX escape... in that case, we append |
# chopped off a TeX escape... in that case, we append |
# " " for the trailing character, and let the field |
# " " for the trailing character, and let the field |
# spill over a bit (sigh). |
# spill over a bit (sigh). |
Line 1440 sub compare_names {
|
Line 1440 sub compare_names {
|
} |
} |
|
|
# Break the tie on the first name, but there are leading (possibly trailing |
# Break the tie on the first name, but there are leading (possibly trailing |
# whitespaces to get rid of first |
# whitespaces to get rid of first) |
# |
# |
$f1 =~ s/^\s+//; # Remove leading... |
$f1 =~ s/^\s+//; # Remove leading... |
$f1 =~ s/\s+$//; # Trailing spaces from first 1... |
$f1 =~ s/\s+$//; # Trailing spaces from first 1... |
Line 1865 my %page_formats=
|
Line 1865 my %page_formats=
|
}, |
}, |
'album' => { |
'album' => { |
'1' => [ '8.8 in', '6.8 in','-0.55 in', '-0.55 in','0.394 in'], |
'1' => [ '8.8 in', '6.8 in','-0.55 in', '-0.55 in','0.394 in'], |
'2' => [ '4.8 in', '6.8 in','-0.5 in', '-1.0 in','3.5 in'] |
'2' => [ '4.8 in', '6.8 in','-0.5 in', '-1.0 in','3.0 in'] |
}, |
}, |
}, |
}, |
'legal' => { |
'legal' => { |
Line 1925 my %page_formats=
|
Line 1925 my %page_formats=
|
}, |
}, |
'album' => { |
'album' => { |
'1' => ['21.59 cm','19.558 cm','-1.397cm','-2.11 cm','0 cm'], |
'1' => ['21.59 cm','19.558 cm','-1.397cm','-2.11 cm','0 cm'], |
'2' => ['9.91 cm','19.558 cm','-1.397 cm','-2.11 cm','0 cm'] |
'2' => ['9.91 cm','19.558 cm','-1.397 cm','-2.11 cm','-1 cm'] |
}, |
}, |
}, |
}, |
'a5' => { |
'a5' => { |
Line 2012 sub page_format_transformation {
|
Line 2012 sub page_format_transformation {
|
} else { |
} else { |
$fancypagestatement="\\rhead{}\\chead{}\\lhead{$header_text}"; |
$fancypagestatement="\\rhead{}\\chead{}\\lhead{$header_text}"; |
} |
} |
|
my ($paperwidth,$paperheight); |
if ($layout eq 'album') { |
if ($layout eq 'album') { |
$text =~ s/\\begin\{document}/\\setlength{\\oddsidemargin}{$oddoffset}\\setlength{\\evensidemargin}{$evenoffset}$topmargintoinsert\n\\setlength{\\textwidth}{$textwidth}\\setlength{\\textheight}{$textheight}\\setlength{\\textfloatsep}{8pt plus 2\.0pt minus 4\.0pt}\n\\newlength{\\minipagewidth}\\setlength{\\minipagewidth}{\\textwidth\/\$number_of_columns-0\.2cm}\\usepackage{fancyhdr}\\addtolength{\\headheight}{\\baselineskip}\n\\pagestyle{fancy}$fancypagestatement\\usepackage{booktabs}\\begin{document}\\voffset=-0\.8 cm\\setcounter{page}{1}\n /; |
$text =~ s/\\begin\{document}/\\setlength{\\oddsidemargin}{$oddoffset}\\setlength{\\evensidemargin}{$evenoffset}$topmargintoinsert\n\\setlength{\\textwidth}{$textwidth}\\setlength{\\textheight}{$textheight}\\setlength{\\textfloatsep}{8pt plus 2\.0pt minus 4\.0pt}\n\\newlength{\\minipagewidth}\\setlength{\\minipagewidth}{\\textwidth\/\$number_of_columns-0\.2cm}\\usepackage{fancyhdr}\\addtolength{\\headheight}{\\baselineskip}\n\\pagestyle{fancy}$fancypagestatement\\usepackage{booktabs}\\begin{document}\\voffset=-0\.8 cm\\setcounter{page}{1}\n /; |
|
if ($papersize eq 'a4') { |
|
$paperwidth = '29.7cm'; |
|
$paperheight = '21cm'; |
|
} elsif ($numberofcolumns eq '1') { |
|
if ($papersize eq 'letter') { |
|
$paperwidth = '11in'; |
|
$paperheight = '8.5in'; |
|
} elsif ($papersize eq 'legal') { |
|
$paperwidth = '14in'; |
|
$paperheight = '8.5in'; |
|
} |
|
} |
} elsif ($layout eq 'book') { |
} elsif ($layout eq 'book') { |
if ($choice ne 'All class print') { |
if ($choice ne 'All class print') { |
$text =~ s/\\begin\{document}/\\textheight $textheight\\oddsidemargin = $evenoffset\\evensidemargin = $evenoffset $topmargintoinsert\n\\textwidth= $textwidth\\newlength{\\minipagewidth}\\setlength{\\minipagewidth}{\\textwidth\/\$number_of_columns-0\.2cm}\n\\renewcommand{\\ref}{\\keephidden\}\\usepackage{fancyhdr}\\addtolength{\\headheight}{\\baselineskip}\\pagestyle{fancy}$fancypagestatement\\usepackage{booktabs}\\begin{document}\n\\voffset=-0\.8 cm\\setcounter{page}{1}\n/; |
$text =~ s/\\begin\{document}/\\textheight $textheight\\oddsidemargin = $evenoffset\\evensidemargin = $evenoffset $topmargintoinsert\n\\textwidth= $textwidth\\newlength{\\minipagewidth}\\setlength{\\minipagewidth}{\\textwidth\/\$number_of_columns-0\.2cm}\n\\renewcommand{\\ref}{\\keephidden\}\\usepackage{fancyhdr}\\addtolength{\\headheight}{\\baselineskip}\\pagestyle{fancy}$fancypagestatement\\usepackage{booktabs}\\begin{document}\n\\voffset=-0\.8 cm\\setcounter{page}{1}\n/; |
} else { |
} else { |
$text =~ s/\\pagestyle\{fancy}\\rhead\{}\\chead\{}\s*\\begin\{document}/\\textheight = $textheight\\oddsidemargin = $evenoffset\n\\evensidemargin = $evenoffset $topmargintoinsert\\textwidth= $textwidth\\newlength{\\minipagewidth}\n\\setlength{\\minipagewidth}{\\textwidth\/\$number_of_columns-0\.2cm}\\renewcommand{\\ref}{\\keephidden\}\\pagestyle{fancy}\\rhead{}\\chead{}\\usepackage{booktabs}\\begin{document}\\voffset=-0\.8cm\n\\setcounter{page}{1} \\vskip 5 mm\n /; |
$text =~ s/\\pagestyle\{fancy}\\rhead\{}\\chead\{}\s*\\begin\{document}/\\textheight = $textheight\\oddsidemargin = $evenoffset\n\\evensidemargin = $evenoffset $topmargintoinsert\\textwidth= $textwidth\\newlength{\\minipagewidth}\n\\setlength{\\minipagewidth}{\\textwidth\/\$number_of_columns-0\.2cm}\\renewcommand{\\ref}{\\keephidden\}\\pagestyle{fancy}\\rhead{}\\chead{}\\usepackage{booktabs}\\begin{document}\\voffset=-0\.8cm\n\\setcounter{page}{1} \\vskip 5 mm\n /; |
} |
} |
if ($papersize eq 'a4') { |
if ($papersize eq 'a4') { |
my $papersize_text; |
$paperwidth = '21cm'; |
if ($perm{'pav'}) { |
$paperheight = '29.7cm'; |
$papersize_text = '\\special{papersize=210mm,297mm}'; |
} elsif ($papersize eq 'letter') { |
} else { |
$paperwidth = '8.5in'; |
$papersize_text = '\special{papersize=210mm,297mm}'; |
$paperheight = '11.5in'; |
} |
} elsif ($papersize eq 'legal') { |
$text =~ s/(\\begin\{document})/$1$papersize_text/; |
$paperwidth = '8.5in'; |
} |
$paperheight = '14.0in'; |
|
} |
|
} |
|
if ($paperwidth ne '' && $paperheight ne '') { |
|
my $papersize_text; |
|
if ($perm{'pav'}) { |
|
$papersize_text = '\\special{papersize='.$paperwidth.','.$paperheight.'}'; |
|
} else { |
|
$papersize_text = '\special{papersize='.$paperwidth.','.$paperheight.'}'; |
|
} |
|
$text =~ s/(\\begin\{document})/$1$papersize_text/; |
} |
} |
if ($tableofcontents eq 'yes') {$text=~s/(\\setcounter\{page\}\{1\})/$1 \\tableofcontents\\newpage /;} |
if ($tableofcontents eq 'yes') {$text=~s/(\\setcounter\{page\}\{1\})/$1 \\tableofcontents\\newpage /;} |
if ($indexlist eq 'yes') { |
if ($indexlist eq 'yes') { |
Line 2532 sub load_skips {
|
Line 2555 sub load_skips {
|
|
|
my ($helper) = @_; |
my ($helper) = @_; |
|
|
# If this is the first time, unrap the resources and extra spaces: |
# If this is the first time, unwrap the resources and extra spaces: |
|
|
if (!$skips_loaded) { |
if (!$skips_loaded) { |
@extraspace = (split(/\|\|\|/, $helper->{'VARS'}->{'EXTRASPACE'})); |
@extraspace = (split(/\|\|\|/, $helper->{'VARS'}->{'EXTRASPACE'})); |
Line 2839 ENDPART
|
Line 2862 ENDPART
|
my @student_names=(); |
my @student_names=(); |
|
|
|
|
# Common settings for the %form has: |
# Common settings for the %form hash: |
# In some cases these settings get overriddent by specific cases, but the |
# In some cases these settings get overridden by specific cases, but the |
# settings are common enough to make it worthwhile factoring them out |
# settings are common enough to make it worthwhile factoring them out |
# here. |
# here. |
# |
# |
Line 3304 ENDPART
|
Line 3327 ENDPART
|
|
|
my $map; |
my $map; |
if ($helper->{VARS}->{'symb'}) { |
if ($helper->{VARS}->{'symb'}) { |
($map, my $id, my $resource) = |
unless ((($print_type eq 'all_problems_students') || |
&Apache::lonnet::decode_symb($helper->{VARS}->{'symb'}); |
($print_type eq 'incomplete_problems_selpeople_course')) && |
|
$perm{'pfo'}) { |
|
($map, my $id, my $resource) = |
|
&Apache::lonnet::decode_symb($helper->{VARS}->{'symb'}); |
|
} |
|
} elsif (($helper->{'VARS'}->{'postdata'} eq '/adm/navmaps') && ($perm{'pfo'})) { |
|
$map = $helper->{'VARS'}->{'SEQUENCE'}; |
} |
} |
|
|
#loop over students |
#loop over students |
Line 3395 ENDPART
|
Line 3424 ENDPART
|
if ($helper->{VARS}{'symb'}) { |
if ($helper->{VARS}{'symb'}) { |
($map, my $id, my $resource) = |
($map, my $id, my $resource) = |
&Apache::lonnet::decode_symb($helper->{VARS}{'symb'}); |
&Apache::lonnet::decode_symb($helper->{VARS}{'symb'}); |
|
} elsif (($helper->{'VARS'}->{'postdata'} eq '/adm/navmaps') && ($perm{'pfo'})) { |
|
$map = $helper->{'VARS'}->{'SEQUENCE'}; |
} |
} |
my %moreenv = ('textwidth' => &get_textwidth($helper,$LaTeXwidth)); |
my %moreenv = ('textwidth' => &get_textwidth($helper,$LaTeXwidth)); |
$moreenv{'problem_split'} = $parmhash{'problem_stream_switch'}; |
$moreenv{'problem_split'} = $parmhash{'problem_stream_switch'}; |
|
$moreenv{'suppress_tries'} = $parmhash{'suppress_tries'}; |
$moreenv{'instructor_comments'}='hide'; |
$moreenv{'instructor_comments'}='hide'; |
$moreenv{'bubbles_per_row'} = $bubbles_per_row; |
$moreenv{'bubbles_per_row'} = $bubbles_per_row; |
my $seed=time+($$<<16)+($$); |
my $seed=time+($$<<16)+($$); |
Line 3793 sub print_resources {
|
Line 3825 sub print_resources {
|
# nice to put the special in as a postscript comment |
# nice to put the special in as a postscript comment |
# e.g. \special{ps:\ENDOFSTUDENTSTAMP} unfortunately, |
# e.g. \special{ps:\ENDOFSTUDENTSTAMP} unfortunately, |
# The special gets passed the \ and dvips puts it in the output file |
# The special gets passed the \ and dvips puts it in the output file |
# so we will just rely on prntout.pl to strip ENDOFSTUDENTSTAMP from the |
# so we will just rely on printout.pl to strip ENDOFSTUDENTSTAMP from the |
# postscript. Each ENDOFSTUDENTSTAMP will go on a line by itself. |
# postscript. Each ENDOFSTUDENTSTAMP will go on a line by itself. |
# |
# |
|
|
Line 3902 sub print_resources {
|
Line 3934 sub print_resources {
|
$rendered =~ s/\\end\{document}//; |
$rendered =~ s/\\end\{document}//; |
} |
} |
$current_output .= $rendered.'\vskip 0.5mm\noindent\makebox[\textwidth/$number_of_columns][b]{\hrulefill}\strut \vskip 0 mm \strut '; |
$current_output .= $rendered.'\vskip 0.5mm\noindent\makebox[\textwidth/$number_of_columns][b]{\hrulefill}\strut \vskip 0 mm \strut '; |
} elsif($res_url = ~/\.pdf$/) { |
} elsif($res_url =~ /\.pdf$/) { |
my $url = &Apache::lonnet::clutter($res_url); |
my $url = &Apache::lonnet::clutter($res_url); |
my $rendered = &include_pdf($url); |
my $rendered = &include_pdf($url); |
if ($remove_latex_header ne 'NO') { |
if ($remove_latex_header ne 'NO') { |
Line 4212 sub printHelper {
|
Line 4244 sub printHelper {
|
$helper->{VARS}->{'symb'} = $env{'form.symb'}; |
$helper->{VARS}->{'symb'} = $env{'form.symb'}; |
} |
} |
if ($env{'form.url'}) { |
if ($env{'form.url'}) { |
$helper->{VARS}->{'symb'} = &Apache::lonnet::symbread($helper->{VARS}->{'postdata'}); |
unless ($env{'form.url'} eq '/adm/navmaps') { |
|
$helper->{VARS}->{'symb'} = &Apache::lonnet::symbread($helper->{VARS}->{'postdata'}); |
|
} |
} |
} |
|
|
} |
} |
|
|
if ($env{'form.symb'}) { |
|
$helper->{VARS}->{'symb'} = $env{'form.symb'}; |
|
} |
|
if ($env{'form.url'}) { |
|
unless ($env{'form.url'} eq '/adm/navmaps') { |
|
$helper->{VARS}->{'symb'} = &Apache::lonnet::symbread($helper->{VARS}->{'postdata'}); |
|
} |
|
} |
|
if ($helper->{VARS}->{'symb'} ne '') { |
if ($helper->{VARS}->{'symb'} ne '') { |
$helper->{VARS}->{'symb'}= |
$helper->{VARS}->{'symb'}= |
&Apache::lonenc::check_encrypt($helper->{VARS}->{'symb'}); |
&Apache::lonenc::check_encrypt($helper->{VARS}->{'symb'}); |
Line 4500 sub printHelper {
|
Line 4525 sub printHelper {
|
$optionText = &mt('Selected [_1]Incomplete Problems[_2] [_3]not in a folder[_4]' . $textSuffix, |
$optionText = &mt('Selected [_1]Incomplete Problems[_2] [_3]not in a folder[_4]' . $textSuffix, |
'<b>','</b>','<i>','</i>'); |
'<b>','</b>','<i>','</i>'); |
} else { |
} else { |
$optionText = &mt('Selected [_1]Incomplete Problems[_2] from folder [_3]' . $textSuffix, |
$optionText = &mt('Selected [_1]Incomplete Problems[_2] from folder [_3]' . $textSuffix, |
'<b>','</b>','<b><i>'.$sequenceTitle.'</b></i>'); |
'<b>','</b>','<b><i>'.$sequenceTitle.'</b></i>'); |
} |
} |
push(@{$printChoices}, |
push(@{$printChoices}, |
Line 4824 CHOOSE_FROM_SUBDIR
|
Line 4849 CHOOSE_FROM_SUBDIR
|
'<b>','</b>','<b>','</b>','<b>','</b>'), |
'<b>','</b>','<b>','</b>','<b>','</b>'), |
'select_sequences_resources_for_anon','CHOOSE_SEQUENCE_ANON2']); |
'select_sequences_resources_for_anon','CHOOSE_SEQUENCE_ANON2']); |
if ($escapedSequenceName) { |
if ($escapedSequenceName) { |
&generate_common_choosers($r,$helper,$escapedSequenceName,$escapedSequenceName,$isProblem,$symbFilter,$start_new_option); |
my ($randomly_ordered_warning,$codechoice,$code_selection,$namechoice) = |
|
&generate_common_choosers($r,$helper,$escapedSequenceName,$escapedSequenceName, |
|
$isProblem,$symbFilter,$start_new_option); |
|
|
|
my $resource_selector = <<RESOURCE_SELECTOR; |
|
<state name="CHOOSE_STUDENTS2" title="Select Students and Resources"> |
|
<choices variable='student_sort'> |
|
<choice computer='0'>Sort by section then student</choice> |
|
<choice computer='1'>Sort by students across sections.</choice> |
|
</choices> |
|
<message><br /><hr /><br /></message> |
|
<student multichoice='1' variable="STUDENTS" nextstate="SELECT_RESOURCES" coursepersonnel="1" /> |
|
|
|
</state> |
|
<state name="SELECT_RESOURCES" title="Select Resources"> |
|
$randomly_ordered_warning |
|
<nextstate>PRINT_FORMATTING</nextstate> |
|
<message>(mark desired resources then click "next" button) <br /></message> |
|
<resource variable="RESOURCES" multichoice="1" addstatus="1" |
|
closeallpages="1" modallink="1" suppressNavmap="1" $nocurrloc> |
|
<filterfunc>return $isNotMap;</filterfunc> |
|
<mapurl>$escapedSequenceName</mapurl> |
|
<valuefunc>return $symbFilter;</valuefunc> |
|
$start_new_option |
|
</resource> |
|
</state> |
|
RESOURCE_SELECTOR |
|
|
|
my $anon3 = &generate_code_selector($helper, |
|
'CHOOSE_ANON3', |
|
'SELECT_RESOURCES', |
|
$codechoice, |
|
$code_selection, |
|
$namechoice) . $resource_selector; |
|
|
|
&Apache::lonxml::xmlparse($r, 'helper',$anon3); |
} |
} |
} |
} |
} |
} |
if (($subdir eq '') && ($url eq '/adm/navmaps') && ($perm{'pfo'})) { |
if (($subdir eq '') && ($url eq '/adm/navmaps') && ($perm{'pfo'})) { |
&Apache::lonxml::xmlparse($r, 'helper', <<CHOOSE_FROM_ANY_SEQUENCE); |
&Apache::lonxml::xmlparse($r, 'helper', <<CHOOSE_FROM_ANY_SEQUENCE); |
<state name="CHOOSE_SEQUENCE" title="Select Sequence To Print From"> |
<state name="CHOOSE_SEQUENCE" title="Select Sequence To Print From"> |
<message>Select the sequence to print resources from:</message> |
<message>Select the sequence to print resources from:</message> |
<resource variable="SEQUENCE"> |
<resource variable="SEQUENCE"> |
Line 4863 CHOOSE_FROM_SUBDIR
|
Line 4923 CHOOSE_FROM_SUBDIR
|
<state name="CHOOSE_SEQUENCE_STUDENTS1" title="Select Sequence To Print From"> |
<state name="CHOOSE_SEQUENCE_STUDENTS1" title="Select Sequence To Print From"> |
<message>Select the sequence to print resources from:</message> |
<message>Select the sequence to print resources from:</message> |
<resource variable="SEQUENCE"> |
<resource variable="SEQUENCE"> |
<nextstate>CHOOSE_STUDENTS</nextstate> |
<nextstate>CHOOSE_STUDENTS2</nextstate> |
<filterfunc>return &Apache::lonprintout::printable_sequence(\$res);</filterfunc> |
<filterfunc>return &Apache::lonprintout::printable_sequence(\$res);</filterfunc> |
<valuefunc>return $urlValue;</valuefunc> |
<valuefunc>return $urlValue;</valuefunc> |
<choicefunc>return \$res->hasResource(\$res,sub { return !\$_[0]->is_sequence() },0,0); |
<choicefunc>return \$res->hasResource(\$res,sub { return !\$_[0]->is_sequence() },0,0); |
Line 4873 CHOOSE_FROM_SUBDIR
|
Line 4933 CHOOSE_FROM_SUBDIR
|
<state name="CHOOSE_SEQUENCE_ANON2" title="Select Sequence To Print From"> |
<state name="CHOOSE_SEQUENCE_ANON2" title="Select Sequence To Print From"> |
<message>Select the sequence to print resources from:</message> |
<message>Select the sequence to print resources from:</message> |
<resource variable="SEQUENCE"> |
<resource variable="SEQUENCE"> |
<nextstate>CHOOSE_ANON1</nextstate> |
<nextstate>CHOOSE_ANON3</nextstate> |
<filterfunc>return &Apache::lonprintout::printable_sequence(\$res);</filterfunc> |
<filterfunc>return &Apache::lonprintout::printable_sequence(\$res);</filterfunc> |
<valuefunc>return $urlValue;</valuefunc> |
<valuefunc>return $urlValue;</valuefunc> |
<choicefunc>return \$res->hasResource(\$res,sub { return !\$_[0]->is_sequence() },0,0); |
<choicefunc>return \$res->hasResource(\$res,sub { return !\$_[0]->is_sequence() },0,0); |
Line 4883 CHOOSE_FROM_SUBDIR
|
Line 4943 CHOOSE_FROM_SUBDIR
|
<state name="CHOOSE_FROM_ANY_SEQUENCE" title="Select Resources To Print"> |
<state name="CHOOSE_FROM_ANY_SEQUENCE" title="Select Resources To Print"> |
<message>(mark desired resources then click "next" button) <br /></message> |
<message>(mark desired resources then click "next" button) <br /></message> |
<resource variable="RESOURCES" multichoice="1" toponly='1' addstatus="1" |
<resource variable="RESOURCES" multichoice="1" toponly='1' addstatus="1" |
closeallpages="1" modallink="1" $nocurrloc> |
closeallpages="1" modallink="1" suppressNavmap="1" $nocurrloc> |
<nextstate>PAGESIZE</nextstate> |
<nextstate>PAGESIZE</nextstate> |
<filterfunc>return $isNotMap</filterfunc> |
<filterfunc>return $isNotMap</filterfunc> |
<mapurl evaluate='1'>return '$escapedSequenceName';</mapurl> |
<mapurl evaluate='1'>return '$escapedSequenceName';</mapurl> |
Line 4907 CHOOSE_FROM_ANY_SEQUENCE
|
Line 4967 CHOOSE_FROM_ANY_SEQUENCE
|
<state name="CHOOSE_FROM_ANY_SEQUENCE" title="Select Resources To Print"> |
<state name="CHOOSE_FROM_ANY_SEQUENCE" title="Select Resources To Print"> |
<message>(mark desired resources then click "next" button) <br /></message> |
<message>(mark desired resources then click "next" button) <br /></message> |
<resource variable="RESOURCES" multichoice="1" toponly='1' addstatus="1" |
<resource variable="RESOURCES" multichoice="1" toponly='1' addstatus="1" |
closeallpages="1" modallink="1" $nocurrloc> |
closeallpages="1" modallink="1" suppressNavmap="1" $nocurrloc> |
<nextstate>PAGESIZE</nextstate> |
<nextstate>PAGESIZE</nextstate> |
<filterfunc>return $isNotMap</filterfunc> |
<filterfunc>return $isNotMap</filterfunc> |
<mapurl evaluate='1'>return '$escapedSequenceName';</mapurl> |
<mapurl evaluate='1'>return '$escapedSequenceName';</mapurl> |