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

raeburn raeburn@source.lon-capa.org
Thu, 13 Aug 2009 12:46:30 -0000


raeburn		Thu Aug 13 12:46:30 2009 EDT

  Modified files:              (Branch: version_2_9_X)
    /loncom/interface	lonindexer.pm 
  Log:
  - Backport part of 1.198.
  
  
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.181.4.1 loncom/interface/lonindexer.pm:1.181.4.2
--- loncom/interface/lonindexer.pm:1.181.4.1	Thu May 21 00:36:16 2009
+++ loncom/interface/lonindexer.pm	Thu Aug 13 12:46:29 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Directory Indexer
 #
-# $Id: lonindexer.pm,v 1.181.4.1 2009/05/21 00:36:16 raeburn Exp $
+# $Id: lonindexer.pm,v 1.181.4.2 2009/08/13 12:46:29 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -407,8 +407,14 @@
 ENDHEADER
 
         my ($headerdom)=($uri=~m{^/res/($match_domain)/});
-	$r->print(&Apache::loncommon::start_page('Browse Resources',$js,
-						 {'domain' => $headerdom,}));
+        my %args = (
+                      'domain' => $headerdom,
+                   );
+        if ($env{'form.catalogmode'}) {
+            # "Popup mode"
+            $args{'only_body'} = 1;
+        }
+	$r->print(&Apache::loncommon::start_page('Browse Resources',$js,\%args));
 # ---------------------------------- get state of file types to be showing
 	if ($env{'form.only'}) {
 	    $typeselect = $env{'form.only'};