[LON-CAPA-cvs] cvs: loncom /interface lonparmset.pm
raeburn
raeburn at source.lon-capa.org
Fri Apr 29 23:11:05 EDT 2022
raeburn Sat Apr 30 03:11:05 2022 EDT
Modified files:
/loncom/interface lonparmset.pm
Log:
- Edit Resource Parameters - Overview Mode
When Parameter Level = "Resource" don't display folder/map items.
To set parameters for those need to set Parameter Level = "Map/Folder".
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.608 loncom/interface/lonparmset.pm:1.609
--- loncom/interface/lonparmset.pm:1.608 Fri Apr 29 23:24:59 2022
+++ loncom/interface/lonparmset.pm Sat Apr 30 03:11:05 2022
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set parameters for assessments
#
-# $Id: lonparmset.pm,v 1.608 2022/04/29 23:24:59 raeburn Exp $
+# $Id: lonparmset.pm,v 1.609 2022/04/30 03:11:05 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -4899,6 +4899,7 @@
$realm='<span class="LC_parm_scope_folder">'.$leveltitle.': '.$title.' <br /><span class="LC_parm_folder">('.$mapurl.')</span></span>';
} elsif ($middle) {
my ($map,$id,$url)=&Apache::lonnet::decode_symb($middle);
+ next if (($url =~ /\.(page|sequence)$/) && ($parmlev eq 'full') && ($caller eq 'newoverview'));
$realm='<span class="LC_parm_scope_resource">'.&mt('Resource').
': '.&Apache::lonnet::gettitle($middle).
' <br /><span class="LC_parm_symb">('.$url.' in '.$map.' id: '.
More information about the LON-CAPA-cvs
mailing list