[LON-CAPA-cvs] cvs: loncom /interface lonsearchcourse.pm
raeburn
raeburn at source.lon-capa.org
Sun Feb 11 15:32:42 EST 2024
raeburn Sun Feb 11 20:32:42 2024 EDT
Modified files:
/loncom/interface lonsearchcourse.pm
Log:
- In list of matches in course search, if matched item is a folder set link
to display listing of folder contents.
Index: loncom/interface/lonsearchcourse.pm
diff -u loncom/interface/lonsearchcourse.pm:1.7 loncom/interface/lonsearchcourse.pm:1.8
--- loncom/interface/lonsearchcourse.pm:1.7 Tue Nov 30 15:55:37 2021
+++ loncom/interface/lonsearchcourse.pm Sun Feb 11 20:32:42 2024
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Search Course
#
-# $Id: lonsearchcourse.pm,v 1.7 2021/11/30 15:55:37 raeburn Exp $
+# $Id: lonsearchcourse.pm,v 1.8 2024/02/11 20:32:42 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -261,10 +261,18 @@
}
my $href=$url;
if ($hash{'encrypted_'.$id} && !$env{'request.role.adv'}) {
- $href=&Apache::lonenc::encrypted($href)
- .'?symb='.&Apache::lonenc::encrypted($symb);
+ $href=&Apache::lonenc::encrypted($href);
+ if ($href =~ /\.sequence$/) {
+ $href .= '?navmap=1';
+ } else {
+ $href .= '?symb='.&Apache::lonenc::encrypted($symb);
+ }
} else {
- $href.='?symb='.&escape($symb);
+ if ($href =~ /\.sequence$/) {
+ $href .= '?navmap=1';
+ } else {
+ $href .= '?symb='.&escape($symb);
+ }
}
$r->print('<a href="'.$href.'" target="cat">'.($title?$title:$url).
'</a><br />');
More information about the LON-CAPA-cvs
mailing list