[LON-CAPA-cvs] cvs: loncom /interface lonsearchcourse.pm
www
www@source.lon-capa.org
Mon, 17 Jan 2011 20:43:10 -0000
www Mon Jan 17 20:43:10 2011 EDT
Modified files:
/loncom/interface lonsearchcourse.pm
Log:
Fix breadcrumbs
Index: loncom/interface/lonsearchcourse.pm
diff -u loncom/interface/lonsearchcourse.pm:1.1 loncom/interface/lonsearchcourse.pm:1.2
--- loncom/interface/lonsearchcourse.pm:1.1 Mon Jan 17 20:18:02 2011
+++ loncom/interface/lonsearchcourse.pm Mon Jan 17 20:43:09 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Search Course
#
-# $Id: lonsearchcourse.pm,v 1.1 2011/01/17 20:18:02 www Exp $
+# $Id: lonsearchcourse.pm,v 1.2 2011/01/17 20:43:09 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -327,8 +327,16 @@
my $crstype = &Apache::loncommon::course_type();
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['phase']);
- &Apache::lonhtmlcommon::clear_breadcrumbs();
$r->print(&Apache::loncommon::start_page("$crstype Search"));
+ &Apache::lonhtmlcommon::clear_breadcrumbs();
+ &Apache::lonhtmlcommon::add_breadcrumb(
+ { href => '/adm/searchcourse',
+ text => "$crstype Search"});
+ if ($env{'form.phase'} eq 'results') {
+ &Apache::lonhtmlcommon::add_breadcrumb(
+ { href => '/adm/searchcourse?phase=results',
+ text => 'Search Results'});
+ }
$r->print(&Apache::lonhtmlcommon::breadcrumbs("$crstype Search"));
&Apache::londocs::startContentScreen($r,'coursesearch');
if ($env{'form.phase'} eq 'results') {