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

bisitz bisitz@source.lon-capa.org
Fri, 03 Jul 2009 09:59:07 -0000


bisitz		Fri Jul  3 09:59:07 2009 EDT

  Modified files:              
    /loncom/interface	lonindexer.pm 
  Log:
  Changes related to modification of LON-CAPA screen header.
  - Added breadcrumbs to "Browse Resources" page
  - Adjusted page header for popup mode (Edit Course >> Import)
  - Consistent Wording: Replaced "Content Library" by "Browse published resources"
  
  
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.197 loncom/interface/lonindexer.pm:1.198
--- loncom/interface/lonindexer.pm:1.197	Wed Apr 22 17:19:10 2009
+++ loncom/interface/lonindexer.pm	Fri Jul  3 09:59:06 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Directory Indexer
 #
-# $Id: lonindexer.pm,v 1.197 2009/04/22 17:19:10 bisitz Exp $
+# $Id: lonindexer.pm,v 1.198 2009/07/03 09:59:06 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -409,8 +409,25 @@
 ENDHEADER
 
         my ($headerdom)=($uri=~m{^/res/($match_domain)/});
-	$r->print(&Apache::loncommon::start_page('Content Library',$js,
-						 {'domain' => $headerdom,}));
+
+        if ($env{'form.catalogmode'}) {
+            # "Popup mode"
+            $r->print(&Apache::loncommon::start_page('Browse published resources',$js,
+                                                     {'only_body' => 1,
+                                                      'domain' => $headerdom,}));
+        } else {
+            # Only display page header and breadcrumbs in non-popup mode
+            &Apache::lonhtmlcommon::clear_breadcrumbs();
+            &Apache::lonhtmlcommon::add_breadcrumb({
+                'text'  => 'Browse published resources',
+                'href'  => '/res/fhwfdev/?launch=1',
+            });
+            $r->print(&Apache::loncommon::start_page('Browse published resources',$js,
+                                                     {'domain' => $headerdom,})
+                     .&Apache::lonhtmlcommon::breadcrumbs()
+            );
+        }
+
 # ---------------------------------- get state of file types to be showing
 	if ($env{'form.only'}) {
 	    $typeselect = $env{'form.only'};