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

banghart lon-capa-cvs@mail.lon-capa.org
Mon, 21 Aug 2006 18:04:20 -0000


banghart		Mon Aug 21 14:04:20 2006 EDT

  Modified files:              
    /loncom/interface	lonmeta.pm 
  Log:
  	Allow group repository files to have editable metadata.
  
  
Index: loncom/interface/lonmeta.pm
diff -u loncom/interface/lonmeta.pm:1.170 loncom/interface/lonmeta.pm:1.171
--- loncom/interface/lonmeta.pm:1.170	Wed Aug 16 14:06:47 2006
+++ loncom/interface/lonmeta.pm	Mon Aug 21 14:04:20 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Metadata display handler
 #
-# $Id: lonmeta.pm,v 1.170 2006/08/16 18:06:47 banghart Exp $
+# $Id: lonmeta.pm,v 1.171 2006/08/21 18:04:20 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -719,7 +719,6 @@
 # Main Handler
 sub handler {
     my $r=shift;
-    #
     &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},
          ['currentpath']);
     my $uri=$r->uri;
@@ -728,7 +727,6 @@
     &Apache::loncommon::content_type($r,'text/html');
     $r->send_http_header;
     return OK if $r->header_only;
-    #
     my ($resdomain,$resuser)=
         (&Apache::lonnet::declutter($uri)=~/^(\w+)\/(\w+)\//);
     if ($uri=~m:/adm/bombs/(.*)$:) {
@@ -746,6 +744,11 @@
         } else {
             &pre_select_course($r,$uri);
         }
+    } elsif ($uri=~m|^/editupload/[^/]+/[^/]+/groups/|) {
+       $r->print(&Apache::loncommon::start_page('Edit Group Portfolio File Catalog Information',
+						 undef,
+						 {'domain' => $resdomain,}));
+        &present_editable_metadata($r,$uri,'portfolio');    
     } elsif ($uri=~m|^/~|) { 
         # Construction space
         $r->print(&Apache::loncommon::start_page('Edit Catalog nformation',