[LON-CAPA-cvs] cvs: loncom /interface lonsearchcat.pm

bisitz bisitz@source.lon-capa.org
Fri, 03 Jul 2009 08:18:48 -0000


bisitz		Fri Jul  3 08:18:48 2009 EDT

  Modified files:              
    /loncom/interface	lonsearchcat.pm 
  Log:
  Added breadcrumbs to Course Search
  
  
Index: loncom/interface/lonsearchcat.pm
diff -u loncom/interface/lonsearchcat.pm:1.310 loncom/interface/lonsearchcat.pm:1.311
--- loncom/interface/lonsearchcat.pm:1.310	Thu Jul  2 17:23:53 2009
+++ loncom/interface/lonsearchcat.pm	Fri Jul  3 08:18:48 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Search Catalog
 #
-# $Id: lonsearchcat.pm,v 1.310 2009/07/02 17:23:53 bisitz Exp $
+# $Id: lonsearchcat.pm,v 1.311 2009/07/03 08:18:48 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -488,7 +488,20 @@
     my $discuss=$env{'form.crsdiscuss'};
     my @allwords=($search_string,@New_Words);
     $totalfound=0;
-    $r->print(&Apache::loncommon::start_page('Course Search').
+
+    &Apache::lonhtmlcommon::add_breadcrumb
+        ({href=>'/adm/searchcat?'.&Apache::loncommon::inhibit_menu_check().
+              '&phase=disp_adv'.
+              'catalogmode='.$env{'form.catalogmode'}.
+              '&launch='.$env{'form.launch'}.
+              '&mode='.$env{'form.mode'},
+              text=>"Course Search",
+              bug=>'Searching',});
+    $r->print(&Apache::loncommon::start_page('Course Search'));
+    $r->print(&Apache::lonhtmlcommon::breadcrumbs('Searching','Searching',
+                        $env{'form.catalogmode'} ne 'import'));
+
+    $r->print(
 	      '<hr /><center><font size="+2" face="arial">'.
 	      $pretty_search_string.'</font></center>'.
 	      '<hr /><b>'.&mt('Course content').':</b><br />');