[LON-CAPA-cvs] cvs: loncom /publisher lonpubdir.pm

bisitz bisitz at source.lon-capa.org
Tue Apr 24 06:29:53 EDT 2012


bisitz		Tue Apr 24 10:29:53 2012 EDT

  Modified files:              
    /loncom/publisher	lonpubdir.pm 
  Log:
  Always offer link to "Edit Metadata" to allow editing metadata of unpublished resources. The current functionality directly offers the possibility to edit even so far non-existing meta files; just the link was missing.
  
  
Index: loncom/publisher/lonpubdir.pm
diff -u loncom/publisher/lonpubdir.pm:1.141 loncom/publisher/lonpubdir.pm:1.142
--- loncom/publisher/lonpubdir.pm:1.141	Fri Dec 23 19:07:50 2011
+++ loncom/publisher/lonpubdir.pm	Tue Apr 24 10:29:53 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Construction Space Directory Lister
 #
-# $Id: lonpubdir.pm,v 1.141 2011/12/23 19:07:50 www Exp $
+# $Id: lonpubdir.pm,v 1.142 2012/04/24 10:29:53 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -608,6 +608,9 @@
 	$status.="\n".'<br />'.
              &Apache::loncommon::modal_link(
                  '/adm/retrieve?filename='.$linkfilename.'&inhibitmenu=yes&add_modal=yes',&mt('Retrieve'),600,500);
+    } else {
+        # Allow editing metadata of unpublished resources
+        $title .= '<a href="'.$linkfilename.'.meta">'.&mt('Edit Metadata').'</a>';
     }
     my $editlink='';
     my $editlink2='';




More information about the LON-CAPA-cvs mailing list