181 |
# |
# |
182 |
|
|
183 |
|
|
|
# List of default configuration settings |
|
|
%main::DefaultSettings = ( |
|
|
'lowest-year', '1990', |
|
|
'max-score', '1000', |
|
|
'allow-summary-displays','no', |
|
|
'allow-similiar-search','no', |
|
|
'allow-regular-searches','no', |
|
|
'deliver-empty-results-from-regular-search','no', |
|
|
# 'allow-relevance-feedback-searches','no', |
|
|
'mailer-application','/usr/lib/sendmail', |
|
|
'server-log','mps.log', |
|
|
'output-colums','yes', |
|
|
'show-nr-colums',3, |
|
|
'show-past-date-list','no', |
|
|
'database-for-SearchFieldDescriptions','ps', |
|
|
); |
|
|
|
|
184 |
# read configuration fields |
# read configuration fields |
185 |
require "config.pm"; |
require "config.pm"; |
186 |
|
|
418 |
|
|
419 |
# Send the banner |
# Send the banner |
420 |
print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>\n"); |
print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>\n"); |
421 |
print("<TR><TD VALIGN=TOP ALIGN=RIGHT> <A HREF=\"/\" OnMouseOver=\"self.status='Return Home'; return true\"><IMG SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'banner'}\" ALT=\"Return Home\" BORDER=0></A> </TD></TR>\n"); |
# print("<TR><TD VALIGN=TOP ALIGN=RIGHT> <A HREF=\"/\" OnMouseOver=\"self.status='Return Home'; return true\"><IMG SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'banner'}\" ALT=\"Return Home\" BORDER=0></A> </TD></TR>\n"); |
422 |
print("</TABLE>\n"); |
|
423 |
|
print("<TR><TD VALIGN=TOP ALIGN=RIGHT> <A HREF=\"/\" OnMouseOver=\"self.status='Return Home'; return true\"><H3>Katalozi knjižnica Filozofskog fakulteta</H3> </A> </TD></TR>\n"); |
424 |
|
|
425 |
|
print("</TABLE>\n"); |
426 |
|
|
427 |
|
|
428 |
# Set the flag saying that the header has been sent |
# Set the flag saying that the header has been sent |
521 |
|
|
522 |
if ( %MenuBar && defined($MenuBar{'GetSearch'}) ) { |
if ( %MenuBar && defined($MenuBar{'GetSearch'}) ) { |
523 |
print("<IMG SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'inactive-search'}\" ALT=\"Search\" BORDER=0>"); |
print("<IMG SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'inactive-search'}\" ALT=\"Search\" BORDER=0>"); |
524 |
|
|
525 |
|
|
526 |
} |
} |
527 |
else { |
else { |
528 |
|
|
529 |
print("<INPUT NAME=\"GetSearch\" TYPE=IMAGE SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'active-search'}\" ALT=\"Search\" BORDER=0>"); |
print("<INPUT NAME=\"GetSearch\" TYPE=IMAGE SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'active-search'}\" ALT=\"Search\" BORDER=0>"); |
530 |
|
|
531 |
|
|
532 |
|
|
533 |
} |
} |
534 |
|
|
535 |
if ( defined($main::RemoteUser) ) { |
if ( defined($main::RemoteUser) ) { |
2688 |
# Put up the headline and the score, this one links to the document |
# Put up the headline and the score, this one links to the document |
2689 |
if ( $HTML ) { |
if ( $HTML ) { |
2690 |
print("<!-- resultItem -->\n"); |
print("<!-- resultItem -->\n"); |
2691 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP WIDTH=1%> $SelectorText </TD> <TD ALIGN=LEFT VALIGN=TOP WIDTH=1%> <!-- relevance --> <B> $Score </B> <!-- /relevance --> </TD> <TD ALIGN=LEFT VALIGN=TOP> <A HREF=\"$LinkText\" OnMouseOver=\"self.status='Retrieve this document'; return true\"> $Headline <I> ( $main::DatabaseDescriptions{$Database} ) </I> </A> <BR> <FONT SIZE=-2>"); |
#print("<TR><TD ALIGN=LEFT VALIGN=TOP WIDTH=1%> $SelectorText </TD> <TD ALIGN=LEFT VALIGN=TOP WIDTH=1%> <!-- relevance --> <B> $Score </B> <!-- /relevance --> </TD> <TD ALIGN=LEFT VALIGN=TOP> <A HREF=\"$LinkText\" OnMouseOver=\"self.status='Retrieve this document'; return true\"> $Headline <I> ( $main::DatabaseDescriptions{$Database} ) </I> </A> <BR> <FONT SIZE=-2>"); |
2692 |
} |
print("<TR><TD ALIGN=LEFT VALIGN=TOP WIDTH=1%> $SelectorText </TD><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> <A HREF=\"$LinkText\" OnMouseOver=\"self.status='Retrieve this document'; return true\"> $Headline </A> <BR> <FONT SIZE=-2> "); |
2693 |
else { |
} else { |
2694 |
printf("%3d $Headline ($main::DatabaseDescriptions{$Database})\n", $Score); |
printf("%3d $Headline ($main::DatabaseDescriptions{$Database})\n", $Score); |
2695 |
} |
} |
2696 |
|
|
2697 |
|
if (0) { ## don't display description |
2698 |
|
|
2699 |
# Put up the summary |
# Put up the summary |
2700 |
if ( defined($SummaryText) && ($SummaryText ne "") ) { |
if ( defined($SummaryText) && ($SummaryText ne "") ) { |
2711 |
if ( ! defined($Remainder) ) { |
if ( ! defined($Remainder) ) { |
2712 |
if ( $HTML ) { |
if ( $HTML ) { |
2713 |
print("Formatttt: $MimeTypeName, "); |
print("Formatttt: $MimeTypeName, "); |
2714 |
|
|
2715 |
} |
} |
2716 |
else { |
else { |
2717 |
print(" Format: $MimeTypeName, "); |
print(" Format: $MimeTypeName, "); |
2720 |
|
|
2721 |
|
|
2722 |
# Put up the date if we got it |
# Put up the date if we got it |
2723 |
if ( defined($Date) && ($Date ne "") ) { |
if ( defined($Date) && ($Date ne "") ) { |
2724 |
print("Date: $Date"); |
print("Date: $Date"); |
2725 |
|
|
2726 |
# Put up the time if we got it |
# Put up the time if we got it |
2727 |
if ( defined($Time) && ($Time ne "") ) { |
if ( defined($Time) && ($Time ne "") ) { |
2728 |
print(" $Time"); |
print(" $Time"); |
2729 |
} |
} |
2730 |
|
|
2855 |
} |
} |
2856 |
print("\n"); |
print("\n"); |
2857 |
|
|
2858 |
|
} #if |
2859 |
# Finish off the entry |
# Finish off the entry |
2860 |
if ( $HTML ) { |
if ( $HTML ) { |
2861 |
print("</FONT></TD></TR>\n"); |
print("</FONT></TD></TR>\n"); |
2971 |
|
|
2972 |
# Make sure that we send the header |
# Make sure that we send the header |
2973 |
$Value = ($ENV{'PATH_INFO'} eq "/GetExpandedSearch") ? "Pretraživanje s više kriterija" : "Jednostavno pretraživanje"; |
$Value = ($ENV{'PATH_INFO'} eq "/GetExpandedSearch") ? "Pretraživanje s više kriterija" : "Jednostavno pretraživanje"; |
2974 |
&vSendHTMLHeader($Value, undef); |
my $JavaScript = '<SCRIPT LANGUAGE="JavaScript"> |
2975 |
|
<!-- hide |
2976 |
|
function SetChecked(val) { |
2977 |
|
dml=document.Search; |
2978 |
|
len = dml.elements.length; |
2979 |
|
var i=0; |
2980 |
|
for( i=0 ; i<len ; i++) { |
2981 |
|
if (dml.elements[i].name==\'Database\') { |
2982 |
|
dml.elements[i].checked=val; |
2983 |
|
} |
2984 |
|
} |
2985 |
|
} |
2986 |
|
// --> |
2987 |
|
</SCRIPT> |
2988 |
|
'; |
2989 |
|
|
2990 |
|
&vSendHTMLHeader($Value, $JavaScript); |
2991 |
|
|
2992 |
undef(%Value); |
undef(%Value); |
2993 |
$Value{'GetSearch'} = "GetSearch"; |
$Value{'GetSearch'} = "GetSearch"; |
3038 |
|
|
3039 |
# Send the start of the form and the buttons |
# Send the start of the form and the buttons |
3040 |
print("<TD ALIGN=RIGHT VALIGN=TOP>\n"); |
print("<TD ALIGN=RIGHT VALIGN=TOP>\n"); |
3041 |
print("<FORM ACTION=\"$ENV{'SCRIPT_NAME'}/GetSearchResults\" METHOD=POST> <INPUT TYPE=SUBMIT VALUE=\"Pretraži bazu\"> <INPUT TYPE=RESET VALUE=\"Pobriši polja\">\n"); |
print("<FORM ACTION=\"$ENV{'SCRIPT_NAME'}/GetSearchResults\" NAME=\"Search\" METHOD=POST> <INPUT TYPE=SUBMIT VALUE=\"Pretraži bazu\"> <INPUT TYPE=RESET VALUE=\"Pobriši polja\">\n"); |
3042 |
print("</TD></TR>\n"); |
print("</TD></TR>\n"); |
3043 |
|
|
3044 |
print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=3><BR></TD></TR>\n"); |
print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=3><BR></TD></TR>\n"); |
3102 |
# Database selection |
# Database selection |
3103 |
if ( %main::DatabaseDescriptions ) { |
if ( %main::DatabaseDescriptions ) { |
3104 |
|
|
3105 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> Odaberite bazu koju želite pretraživati: </TD> <TD ALIGN=LEFT VALIGN=TOP>\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=3> Odaberite bazu koju želite pretraživati: </TD></TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=4> |
3106 |
|
"); |
3107 |
|
|
3108 |
# Parse out the database names and put them into a |
# Parse out the database names and put them into a |
3109 |
# hash table, they should be separated with a '\0' |
# hash table, they should be separated with a '\0' |
3124 |
|
|
3125 |
|
|
3126 |
$Flag = 0; |
$Flag = 0; |
3127 |
|
|
3128 |
|
print(' |
3129 |
|
<a href="javascript:SetChecked(1)">all</a> |
3130 |
|
<a href="javascript:SetChecked(0)">none</a> |
3131 |
|
'); |
3132 |
|
|
3133 |
print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>\n"); |
print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>\n"); |
3134 |
|
|
3135 |
my @html_database; |
my @html_database; |