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

raeburn raeburn at source.lon-capa.org
Thu Jul 5 15:22:47 EDT 2012


raeburn		Thu Jul  5 19:22:47 2012 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  - No evaluate or catalog_info icons/links in inline menu for documents
    uploaded directly to a course.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.381 loncom/interface/lonmenu.pm:1.382
--- loncom/interface/lonmenu.pm:1.381	Tue May 29 19:40:44 2012
+++ loncom/interface/lonmenu.pm	Thu Jul  5 19:22:47 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.381 2012/05/29 19:40:44 raeburn Exp $
+# $Id: lonmenu.pm,v 1.382 2012/07/05 19:22:47 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -732,13 +732,17 @@
 $menuitems.="Make notes and annotations about this resource&&1\n";
 
             unless ($env{'request.noversionuri'}=~/\/(bulletinboard|smppg|navmaps|syllabus|aboutme|viewclasslist|portfolio)(\?|$)/) {
-		if ((!$env{'request.enc'}) && ($env{'request.noversionuri'} !~ m{^/adm/wrapper/ext/})) {
+		if ((!$env{'request.enc'}) && ($env{'request.noversionuri'} !~ m{^/adm/wrapper/ext/}) && ($env{'request.noversionuri'} !~ m{^/uploaded/$match_domain/$match_courseid/docs/})) {
 		    $menuitems.=(<<ENDREALRES);
 s&6&3&catalog.png&Info&info[_1]&catalog_info()&Show Metadata
 ENDREALRES
                 }
-	        $menuitems.=(<<ENDREALRES);
+                unless ($env{'request.noversionuri'} =~ m{^/uploaded/$match_domain/$match_courseid/docs/}) {
+                    $menuitems.=(<<ENDREALRES);
 s&8&1&eval.png&Evaluate&this[_1]&gopost('/adm/evaluate',currentURL,1)&Provide my evaluation of this resource
+ENDREALRES
+                }
+                $menuitems.=(<<ENDREALRES);
 s&8&2&fdbk.png&Communicate&discuss[_1]&gopost('/adm/feedback',currentURL,1)&Provide feedback messages or contribute to the course discussion about this resource
 ENDREALRES
 	    }




More information about the LON-CAPA-cvs mailing list