[LON-CAPA-cvs] cvs: rat / lonpage.pm

raeburn raeburn at source.lon-capa.org
Fri Jan 17 20:09:11 EST 2020


raeburn		Sat Jan 18 01:09:11 2020 EDT

  Modified files:              
    /rat	lonpage.pm 
  Log:
  - Support for clicking "Show Resource" button in resources within a composite 
    page following changes in 1.127.
  
  
Index: rat/lonpage.pm
diff -u rat/lonpage.pm:1.128 rat/lonpage.pm:1.129
--- rat/lonpage.pm:1.128	Sun Aug 11 14:16:59 2019
+++ rat/lonpage.pm	Sat Jan 18 01:09:11 2020
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Page Handler
 #
-# $Id: lonpage.pm,v 1.128 2019/08/11 14:16:59 raeburn Exp $
+# $Id: lonpage.pm,v 1.129 2020/01/18 01:09:11 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -360,7 +360,9 @@
 				  if ($env{'form.all_submit_pressed'}) {
 				      $posthash{'all_submit'}='yes';
 				  }
-			      }
+			      } elsif ($env{'form.'.$prefix.'markaccess'} eq 'yes') {
+		                  $posthash{'markaccess'} = $env{'form.'.$prefix.'markaccess'};
+		              }
                               my $output=Apache::lonnet::ssi($src,%posthash);
 			      $output=~s|//(\s*<!--)? BEGIN LON-CAPA Internal.+?// END LON-CAPA Internal\s*(-->)?\s||gs;
                               if (($target eq 'tex') || ($target eq 'tex_answer')) {




More information about the LON-CAPA-cvs mailing list