--- rat/lonsequence.pm 2008/11/11 16:40:38 1.33 +++ rat/lonsequence.pm 2009/02/16 13:52:04 1.37 @@ -2,7 +2,7 @@ # # Sequence Handler # -# $Id: lonsequence.pm,v 1.33 2008/11/11 16:40:38 jms Exp $ +# $Id: lonsequence.pm,v 1.37 2009/02/16 13:52:04 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -27,45 +27,7 @@ # http://www.lon-capa.org/ # -=head1 NAME - -Apache::lonsequence - -=head1 SYNOPSIS - -Handler for showing sequence objects of -educational resources. - -This is part of the LearningOnline Network with CAPA project -described at http://www.lon-capa.org. - -=head1 HANDLER SUBROUTINE - -handler() -and - -viewmap() - -=head1 OTHER SUBROUTINES - -=over - -=item * - -attemptread() - -=item * - -mapread() - -=item * - -start_fresh_session() - -=back - -=cut package Apache::lonsequence; @@ -164,7 +126,9 @@ ENDSELECT # ----------------------------- successtied is now '1' if in working selectmode my ($errtext,$fatal)=&mapread(&Apache::lonnet::filelocation('',$url),''); if ($fatal==1) { - $r->print('

'.&mt('Map contents are not shown in order.').'


'); + $r->print('

' + .&mt('Map contents are not shown in order.') + .'


'); } my $idx=0; foreach (&attemptread(&Apache::lonnet::filelocation('',$url))) { @@ -318,7 +282,8 @@ sub handler { &Apache::lonnet::symblist($requrl,$disurl => [$disurl,$dismapid], 'last_known' => [$disurl,$dismapid]); &Apache::loncommon::content_type($r,'text/html'); - $r->header_out(Location => 'http://'.$ENV{'HTTP_HOST'}.$disurl); + $r->header_out(Location => &Apache::lonnet::absolute_url($ENV{'SERVER_NAME'}). + $disurl); return REDIRECT; } else { &Apache::loncommon::content_type($r,'text/html'); @@ -362,7 +327,35 @@ ENDNONE 1; __END__ +=head1 NAME + +Apache::lonsequence + +=head1 SYNOPSIS + +Handler for showing sequence objects of +educational resources. + +This is part of the LearningOnline Network with CAPA project +described at http://www.lon-capa.org. + +=head1 SUBROUTINES + +=over + +=item handler() + +=item viewmap() +=item attemptread() + +=item mapread() + +=item start_fresh_session() + +=back + +=cut