--- loncom/interface/lonprintout.pm 2005/09/01 18:35:15 1.390 +++ loncom/interface/lonprintout.pm 2005/09/16 20:45:00 1.392 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.390 2005/09/01 18:35:15 albertel Exp $ +# $Id: lonprintout.pm,v 1.392 2005/09/16 20:45:00 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -42,8 +42,6 @@ use Apache::lonratedt; use POSIX qw(strftime); use Apache::lonlocal; -my $resources_printed = ''; - # # Convert a numeric code to letters # @@ -927,6 +925,7 @@ sub get_page_breaks { sub output_data { my ($r,$helper,$rparmhash) = @_; my %parmhash = %$rparmhash; + my $resources_printed = ''; my $html=&Apache::lonxml::xmlbegin(); my $bodytag=&Apache::loncommon::bodytag('Preparing Printout'); $r->print(<CHOOSE_FROM_ANY_SEQUENCE return \$res->is_sequence; return $urlValue; + return \$res->hasResource(\$res,sub { return !\$_[0]->is_sequence() },0,0); +