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

raeburn lon-capa-cvs@mail.lon-capa.org
Tue, 16 Jan 2007 07:26:49 -0000


raeburn		Tue Jan 16 02:26:49 2007 EDT

  Modified files:              
    /loncom/interface	lonmeta.pm 
  Log:
  Removing unused item.
  
  Check for added field i &prettyinput() needs to check if %env contains an added metadata item for the course associated with the resource, not for the course of the user's current role. 
  
  
Index: loncom/interface/lonmeta.pm
diff -u loncom/interface/lonmeta.pm:1.198 loncom/interface/lonmeta.pm:1.199
--- loncom/interface/lonmeta.pm:1.198	Mon Jan 15 18:39:16 2007
+++ loncom/interface/lonmeta.pm	Tue Jan 16 02:26:45 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Metadata display handler
 #
-# $Id: lonmeta.pm,v 1.198 2007/01/15 23:39:16 banghart Exp $
+# $Id: lonmeta.pm,v 1.199 2007/01/16 07:26:45 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -614,11 +614,10 @@
             return (&select_course());
             # return ('<input type="hidden" name="new_courserestricted" value="'.$course_key.'" />');
         }
-        my $course = $env{'request.course.id'};
         if (($type eq 'keywords') || ($type eq 'subject')
              || ($type eq 'author')||($type eq  'notes')
              || ($type eq  'abstract')|| ($type eq  'title')|| ($type eq  'standards')
-             || (exists($env{'course.'.$env{'request.course.id'}.'.metadata.'.$type.'.added'}))) {
+             || (exists($env{$course_key.'.metadata.'.$type.'.added'}))) {
             
             if ($values) {
                 if ($only_one) {