[LON-CAPA-cvs] cvs: loncom /interface lonsearchcat.pm
www
lon-capa-cvs@mail.lon-capa.org
Wed, 22 May 2002 16:08:52 -0000
www Wed May 22 12:08:52 2002 EDT
Modified files:
/loncom/interface lonsearchcat.pm
Log:
Passing on the value of "mode" to groupsort
Index: loncom/interface/lonsearchcat.pm
diff -u loncom/interface/lonsearchcat.pm:1.117 loncom/interface/lonsearchcat.pm:1.118
--- loncom/interface/lonsearchcat.pm:1.117 Fri Mar 8 13:36:00 2002
+++ loncom/interface/lonsearchcat.pm Wed May 22 12:08:52 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Search Catalog
#
-# $Id: lonsearchcat.pm,v 1.117 2002/03/08 18:36:00 matthew Exp $
+# $Id: lonsearchcat.pm,v 1.118 2002/05/22 16:08:52 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -68,6 +68,7 @@
# -- dynamically rendered interface components
my $closebutton; # button that closes the search window
my $importbutton; # button to take the selected results and go to group sorting
+my $hidden;
# -- miscellaneous variables
my $scrout; # string that holds portions of the screen output
@@ -143,7 +144,7 @@
}
# ----------------------------------- configure dynamic components of interface
- my $hidden='';
+
if ($ENV{'form.catalogmode'} eq 'interactive') {
$hidden="<input type='hidden' name='catalogmode' value='interactive'>".
"\n";
@@ -826,7 +827,8 @@
}
}
function select_group() {
- window.location="/adm/groupsort?catalogmode=groupsearch&acts="+
+ window.location=
+ "/adm/groupsort?mode=$ENV{'form.mode'}&catalogmode=groupsearch&acts="+
document.forms.results.acts.value;
}
</script>
@@ -857,6 +859,7 @@
CATALOGBEGIN
$r->print(<<CATALOGCONTROLS);
<form name='results' method="post" action="/adm/searchcat">
+$hidden
<input type='hidden' name='acts' value='' />
<input type='button' value='Revise search request'
onClick='this.form.submit();' />
@@ -1084,6 +1087,7 @@
$notes,$abstract,$mime,$lang,
$creationdate,$lastrevisiondate,$owner,$copyright)=@fields;
+ unless ($title) { $title='<i>Untitled</i>'; }
unless ($ENV{'user.adv'}) {
$keywords='<i>- not displayed -</i>';
$fields[4]=$keywords;
@@ -1135,7 +1139,8 @@
$hash{"pre_${fnum}_link"}=$url;
$hash{"pre_${fnum}_title"}=$title;
$compiledresult.=<<END;
-<font size='-1'><input type="checkbox" name="returnvalues" value="SELECT"
+<font size='-1'>
+<input type="checkbox" name="returnvalues" value="SELECT"
onClick="javascript:queue($fnum)" />
</font>
<br />