[LON-CAPA-cvs] cvs: loncom(GCI_3) /interface lonnavdisplay.pm

raeburn raeburn@source.lon-capa.org
Mon, 04 Oct 2010 21:51:22 -0000


raeburn		Mon Oct  4 21:51:22 2010 EDT

  Modified files:              (Branch: GCI_3)
    /loncom/interface	lonnavdisplay.pm 
  Log:
  - Customization for GCI_3
     - Simplify title
     - Breadcrumbs
  
  
Index: loncom/interface/lonnavdisplay.pm
diff -u loncom/interface/lonnavdisplay.pm:1.13.6.2 loncom/interface/lonnavdisplay.pm:1.13.6.3
--- loncom/interface/lonnavdisplay.pm:1.13.6.2	Mon Oct  4 21:46:32 2010
+++ loncom/interface/lonnavdisplay.pm	Mon Oct  4 21:51:22 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavdisplay.pm,v 1.13.6.2 2010/10/04 21:46:32 raeburn Exp $
+# $Id: lonnavdisplay.pm,v 1.13.6.3 2010/10/04 21:51:22 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -156,21 +156,27 @@
     # Header
     my $course_type = &Apache::loncommon::course_type();
     my ($title,$breadcrumb_text,$start_page,$args);
-    if ($course_type eq 'Community') {
-        $title = 'Community Contents';
-        $breadcrumb_text = &mt('Community Contents');
-    } else {
-        $title = 'Course Contents';
-        $breadcrumb_text = &mt('Course Contents');
-    }
+    $title = 'Contents';
+    $breadcrumb_text = &mt('Contents');
     if ($env{'form.register'}) {
-        $args = {'force_register' => $env{'form.register'},
-                 'only_body'      => $body_only};
+        $args = {'force_register' => $env{'form.register'}};
+        my $brcrum = [{href    => '/adm/navmaps',
+                       text    => $breadcrumb_text,
+                       no_mt   => 1,},
+                     ];
+        $args = {'bread_crumbs' => $brcrum,
+                 'only_body'    => $body_only};
         $start_page = &Apache::loncommon::start_page($title,$js,$args);
     } else {
-        my $brcrum = [{href => '/adm/navmaps',
-                       text => $breadcrumb_text,
-                       no_mt => 1},
+        my $nomenu = 0;
+        if ((&Apache::loncommon::needs_gci_custom()) || 
+            ($env{'user.domain'} eq 'gcitest' && $env{'request.course.id'})) {
+            $nomenu = 1;
+        }
+        my $brcrum = [{href    => '/adm/navmaps',
+                       text    => $breadcrumb_text,
+                       no_mt   => 1,
+                       _nomenu => $nomenu,},
                      ];
         $args = {'bread_crumbs' => $brcrum,
                  'only_body'    => $body_only};