version 1.152, 2002/08/07 12:37:16
|
version 1.154, 2002/08/21 17:18:08
|
Line 390 Returns a scalar which holds html for th
|
Line 390 Returns a scalar which holds html for th
|
|
|
sub print_basic_search_form{ |
sub print_basic_search_form{ |
my ($r,$closebutton) = @_; |
my ($r,$closebutton) = @_; |
|
my $bodytag=&Apache::loncommon::bodytag('Catalog Search'); |
my $scrout=<<"ENDDOCUMENT"; |
my $scrout=<<"ENDDOCUMENT"; |
<html> |
<html> |
<head> |
<head> |
Line 402 sub print_basic_search_form{
|
Line 403 sub print_basic_search_form{
|
} |
} |
</script> |
</script> |
</head> |
</head> |
<body bgcolor="#FFFFFF"> |
$bodytag |
<img align='right' src='/adm/lonIcons/lonlogos.gif' /> |
|
<h1>Search Catalog</h1> |
|
<form method="post" action="/adm/searchcat"> |
<form method="post" action="/adm/searchcat"> |
<input type="hidden" name="phase" value="basic_search" /> |
<input type="hidden" name="phase" value="basic_search" /> |
$hidden_fields |
$hidden_fields |
<h3>Basic Search</h3> |
|
<p> |
<p> |
Enter terms or phrases separated by AND, OR, or NOT |
Enter terms or phrases separated by AND, OR, or NOT |
then press SEARCH below. |
then press SEARCH below. |
Line 474 END
|
Line 472 END
|
if (!defined($ENV{'form.viewselect'})) { |
if (!defined($ENV{'form.viewselect'})) { |
$ENV{'form.viewselect'} ="Detailed Citation View"; |
$ENV{'form.viewselect'} ="Detailed Citation View"; |
} |
} |
|
my $bodytag=&Apache::loncommon::bodytag('Advanced Catalog Search'); |
my $scrout=<<"ENDHEADER"; |
my $scrout=<<"ENDHEADER"; |
<html> |
<html> |
<head> |
<head> |
Line 486 END
|
Line 485 END
|
} |
} |
</script> |
</script> |
</head> |
</head> |
<body bgcolor="#FFFFFF"> |
$bodytag |
<img align='right' src='/adm/lonIcons/lonlogos.gif' /> |
|
<h1>Advanced Catalog Search</h1> |
|
<hr /> |
|
Enter terms or phrases separated by search operators |
Enter terms or phrases separated by search operators |
such as AND, OR, or NOT.<br /> |
such as AND, OR, or NOT.<br /> |
<form method="post" action="/adm/searchcat"> |
<form method="post" action="/adm/searchcat"> |
Line 1673 sub print_sort_form {
|
Line 1669 sub print_sort_form {
|
</head> |
</head> |
<body> |
<body> |
<form name="statusform" action="" method="post"> |
<form name="statusform" action="" method="post"> |
|
<input type="hidden" name="Queue" value="" /> |
END |
END |
|
|
#<h2>Sort Results</h2> |
#<h2>Sort Results</h2> |
Line 2051 END
|
Line 2048 END
|
# We have run out of time or run out of servers to talk to and |
# We have run out of time or run out of servers to talk to and |
# results to get. |
# results to get. |
$r->print("</body></html>"); |
$r->print("</body></html>"); |
$r->print("<script>window.location='/adm/searchcat?phase=sort&persistent_db_id=$ENV{'form.persistent_db_id'}';</script>"); |
if ($ENV{'form.catalogmode'} ne 'groupsearch') { |
|
$r->print("<script>". |
|
"window.location='/adm/searchcat?". |
|
"phase=sort&". |
|
"persistent_db_id=$ENV{'form.persistent_db_id'}';". |
|
"</script>"); |
|
} |
return; |
return; |
} |
} |
|
|
Line 2484 sub search_results_header {
|
Line 2487 sub search_results_header {
|
parent.close(); |
parent.close(); |
} |
} |
function changeTitle(val) { |
function changeTitle(val) { |
if (opener.inf.document.forms.resinfo.elements.t) { |
if (parent.opener.inf.document.forms.resinfo.elements.t) { |
opener.inf.document.forms.resinfo.elements.t.value=val; |
parent.opener.inf.document.forms.resinfo.elements.t.value=val; |
} |
} |
} |
} |
function changeURL(val) { |
function changeURL(val) { |
if (opener.inf.document.forms.resinfo.elements.u) { |
if (parent.opener.inf.document.forms.resinfo.elements.u) { |
opener.inf.document.forms.resinfo.elements.u.value=val; |
parent.opener.inf.document.forms.resinfo.elements.u.value=val; |
} |
} |
} |
} |
</script> |
</script> |