393 |
} |
} |
394 |
print '<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2">'; |
print '<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2">'; |
395 |
print '<link rel="STYLESHEET" type="text/css" href="'.$main::ConfigurationData{'image-base-path'}.'/stil.css">'; |
print '<link rel="STYLESHEET" type="text/css" href="'.$main::ConfigurationData{'image-base-path'}.'/stil.css">'; |
396 |
print("</HEAD>\n<BODY BGCOLOR=\"#FFFFFF\">\n"); |
print("</HEAD>\n<BODY BGCOLOR=\"ffffe8\">\n"); |
397 |
|
|
398 |
|
|
399 |
# Send the header snippet file |
# Send the header snippet file |
1509 |
# Initialize the search string |
# Initialize the search string |
1510 |
$SearchString = ""; |
$SearchString = ""; |
1511 |
|
|
1512 |
|
# tip gradje |
1513 |
|
if ( defined($main::FormData{'tip'}) ) { |
1514 |
|
my @t; |
1515 |
|
foreach my $tip ( split(/\0/, $main::FormData{'tip'}) ) { |
1516 |
|
push @t,"tip=$tip"; |
1517 |
|
} |
1518 |
|
$SearchString .= "(".join(" or ",@t).") and "; |
1519 |
|
} |
1520 |
|
|
1521 |
# Add the search terms |
# Add the search terms |
1522 |
$SearchString .= defined($Content{'Any'}) ? ((($SearchString ne "") ? " AND " : "") . $Content{'Any'}) : ""; |
$SearchString .= defined($Content{'Any'}) ? ((($SearchString ne "") ? " AND " : "") . nuke_accents($Content{'Any'}) ) : ""; |
1523 |
|
|
1524 |
|
|
1525 |
# Add the generic field names |
# Add the generic field names |
1530 |
|
|
1531 |
|
|
1532 |
if ( defined($Content{$FieldName}) && defined($Content{$FieldContent}) ) { |
if ( defined($Content{$FieldName}) && defined($Content{$FieldContent}) ) { |
1533 |
# nuke accented chars |
|
|
$Content{$FieldContent} =~ tr/Çüéâäùæç³ëÕõî¬ÄÆÉÅåôö¥µ¦¶ÖÜ«»£èáíóú¡±®¾Êê¼ÈºÁÂ̪¯¿ÃãðÐÏËïÒÍÎìÞÙÓÔÑñò©¹ÀÚàÛýÝþ´½²·¢¸¨ÿØø/CueaauccleOoiZACELlooLlSsOUTtLcaiouAaZzEezCsAAESZzAadDDEdNIIeTUOoNnnSsRUrUyYt'-".'',"'Rr/; |
|
|
# convert search string to lower case -> make search case insensitive |
|
|
$Content{$FieldContent} =~ tr/A-Z/a-z/; |
|
|
|
|
1534 |
if ($Content{$FieldName} eq "ISBN") { |
if ($Content{$FieldName} eq "ISBN") { |
1535 |
# fix stupid problem with dashes in data |
# fix stupid problem with dashes in data |
1536 |
$Content{$FieldContent} .= "*"; |
$Content{$FieldContent} .= "*"; |
1537 |
} |
} |
1538 |
|
|
1539 |
$SearchString .= ($SearchString ne "") ? " AND " : ""; |
$SearchString .= ($SearchString ne "") ? " AND " : ""; |
1540 |
$SearchString .= "$Content{$FieldName}=(" . $Content{$FieldContent} . ")"; |
$SearchString .= "$Content{$FieldName}=(" . nuke_accents($Content{$FieldContent}) . ")"; |
1541 |
} |
} |
1542 |
} |
} |
1543 |
|
|
1988 |
$Headline =~ s/ //gs; |
$Headline =~ s/ //gs; |
1989 |
$Headline =~ s/<.*?>//gs; |
$Headline =~ s/<.*?>//gs; |
1990 |
$Headline =~ s/\s+/ /gs; |
$Headline =~ s/\s+/ /gs; |
1991 |
|
# decode some basic html from headline <b> <i> |
1992 |
|
$Headline =~ s/<(\/?[bi])>/<$1>/g; |
1993 |
|
|
1994 |
# Create a generic link for this document |
# Create a generic link for this document |
1995 |
$Value = ""; |
$Value = ""; |
2020 |
|
|
2021 |
# 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 |
2022 |
if ( $HTML ) { |
if ( $HTML ) { |
2023 |
print("$SelectorText <A HREF=\"$LinkText\" OnMouseOver=\"self.status='Retrieve this document'; return true\"> $Headline <I> ( $main::DatabaseDescriptions{$Value{'Database'}} ) </I> </A> <BR>\n"); |
# print("$SelectorText <A HREF=\"$LinkText\" OnMouseOver=\"self.status='Retrieve this document'; return true\"> $Headline <I> ( $main::DatabaseDescriptions{$Value{'Database'}} ) </I> </A> <BR>\n"); |
2024 |
|
print("$SelectorText <A HREF=\"$LinkText\" OnMouseOver=\"self.status='Retrieve this document'; return true\"> $Headline </A> <BR>\n"); |
2025 |
|
|
2026 |
# if ( defined($URL) && ($URL ne "") ) { |
# if ( defined($URL) && ($URL ne "") ) { |
2027 |
# $Value = (length($URL) > $main::DefaultMaxVisibleUrlLength) ? substr($URL, 0, $main::DefaultMaxVisibleUrlLength) . "..." : $URL; |
# $Value = (length($URL) > $main::DefaultMaxVisibleUrlLength) ? substr($URL, 0, $main::DefaultMaxVisibleUrlLength) . "..." : $URL; |
2352 |
|
|
2353 |
|
|
2354 |
if ( $HTML ) { |
if ( $HTML ) { |
2355 |
printf("<TR><TD ALIGN=LEFT VALIGN=TOP> Pronaðeno: </TD> <TD ALIGN=LEFT VALIGN=TOP> %s rezultata (Maksimalni broj pode¹en na: $Content{'Max'} ) </TD></TR>\n", |
printf("<TR><TD ALIGN=LEFT VALIGN=TOP> Pronaðeno: </TD> <TD ALIGN=LEFT VALIGN=TOP> <font color=\"#990000\"> %s rezultata </font>(Maksimalni broj pode¹en na: $Content{'Max'} ) </TD></TR>\n", |
2356 |
($ResultCount > 0) ? $ResultCount : "no"); |
($ResultCount > 0) ? $ResultCount : "no"); |
2357 |
|
|
2358 |
print("</TABLE>\n"); |
print("</TABLE>\n"); |
2666 |
|
|
2667 |
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> "); |
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> "); |
2668 |
} else { |
} else { |
2669 |
printf("%3d $Headline ($main::DatabaseDescriptions{$Database})\n", $Score); |
printf("%3d $Headline \n", $Score); |
2670 |
} |
} |
2671 |
|
|
2672 |
if (0) { ## don't display description |
if (0) { ## don't display description |
2986 |
|
|
2987 |
if ( $ENV{'PATH_INFO'} eq "/GetExpandedSearch" ) { |
if ( $ENV{'PATH_INFO'} eq "/GetExpandedSearch" ) { |
2988 |
print("<INPUT TYPE=HIDDEN NAME=\"Action\" VALUE=\"GetSimpleSearch\">\n"); |
print("<INPUT TYPE=HIDDEN NAME=\"Action\" VALUE=\"GetSimpleSearch\">\n"); |
2989 |
print("<INPUT SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'collapse'}\" BORDER=0 TYPE=IMAGE> Jednostavo pretra¾ivanje (kliknite na trokutiæ)\n"); |
print("<INPUT SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'collapse'}\" BORDER=0 TYPE=IMAGE> Jednostavno pretra¾ivanje (kliknite na trokutiæ)\n"); |
2990 |
} |
} |
2991 |
else { |
else { |
2992 |
print("<INPUT TYPE=HIDDEN NAME=\"Action\" VALUE=\"GetExpandedSearch\">\n"); |
print("<INPUT TYPE=HIDDEN NAME=\"Action\" VALUE=\"GetExpandedSearch\">\n"); |
2998 |
|
|
2999 |
# Send the start of the form and the buttons |
# Send the start of the form and the buttons |
3000 |
print("<TD ALIGN=RIGHT VALIGN=TOP>\n"); |
print("<TD ALIGN=RIGHT VALIGN=TOP>\n"); |
3001 |
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"); |
print("<FORM ACTION=\"$ENV{'SCRIPT_NAME'}/GetSearchResults\" NAME=\"Search\" METHOD=POST> <INPUT TYPE=SUBMIT VALUE=\"Pretra¾i bazu\"> <INPUT TYPE=RESET VALUE=\"Vrati poèetne vrijednosti\">\n"); |
3002 |
print("</TD></TR>\n"); |
print("</TD></TR>\n"); |
3003 |
|
|
3004 |
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"); |
3035 |
} elsif ($i == ($field - 1)) { |
} elsif ($i == ($field - 1)) { |
3036 |
$Selected = "SELECTED"; |
$Selected = "SELECTED"; |
3037 |
} |
} |
|
|
|
3038 |
print("<OPTION VALUE=\"$ItemEntry\" $Selected> $main::SearchFieldDescriptions{$ItemEntry}\n"); |
print("<OPTION VALUE=\"$ItemEntry\" $Selected> $main::SearchFieldDescriptions{$ItemEntry}\n"); |
3039 |
} |
} |
3040 |
my $Value = ""; |
my $Value = ""; |
3055 |
print("<OPTION VALUE=\"OR\" $Value> Bilo koju rijeè (OR)\n"); |
print("<OPTION VALUE=\"OR\" $Value> Bilo koju rijeè (OR)\n"); |
3056 |
print("</SELECT> </TD></TR>\n"); |
print("</SELECT> </TD></TR>\n"); |
3057 |
|
|
3058 |
|
print "<tr><td align=left valign=top> Prika¾i samo tip graðe: </td><td align=left valign=top colspan=2>"; |
3059 |
|
foreach my $tip (keys %default::tip) { |
3060 |
|
print '<input TYPE="checkbox" NAME="tip" VALUE="',nuke_accents($default::tip{$tip}),'" >',$default::tip{$tip},"  "; |
3061 |
|
} |
3062 |
|
print "</td></tr>\n"; |
3063 |
|
|
3064 |
print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=3><HR WIDTH=50%></TD></TR>\n"); |
print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=3><HR WIDTH=50%></TD></TR>\n"); |
3065 |
|
|
3135 |
|
|
3136 |
|
|
3137 |
# Send the end date |
# Send the end date |
3138 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> Ogranièi na knjige izdane prije godine:: </TD> <TD ALIGN=LEFT VALIGN=TOP> <SELECT NAME=\"Before\">\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> Ogranièi na knjige izdane prije godine: </TD> <TD ALIGN=LEFT VALIGN=TOP> <SELECT NAME=\"Before\">\n"); |
3139 |
$Value = (!defined($main::FormData{'Before'})) ? "SELECTED" : ""; |
$Value = (!defined($main::FormData{'Before'})) ? "SELECTED" : ""; |
3140 |
print("<OPTION VALUE=\"\" $Value>Bez ogranièenja...\n"); |
print("<OPTION VALUE=\"\" $Value>Bez ogranièenja...\n"); |
3141 |
|
|
3180 |
|
|
3181 |
|
|
3182 |
print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=3><HR WIDTH=50%></TD></TR>\n"); |
print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=3><HR WIDTH=50%></TD></TR>\n"); |
3183 |
print("<TR><TD ALIGN=RIGHT COLSPAN=3><INPUT TYPE=SUBMIT VALUE=\"Pretra¾i bazu\"> <INPUT TYPE=RESET VALUE=\"Pobri¹i polja\"></TD></TR>\n"); |
print("<TR><TD ALIGN=RIGHT COLSPAN=3><INPUT TYPE=SUBMIT VALUE=\"Pretra¾i bazu\"> <INPUT TYPE=RESET VALUE=\"Vrati poèetne vrijednosti\"></TD></TR>\n"); |
3184 |
|
|
3185 |
print("</FORM>\n"); |
print("</FORM>\n"); |
3186 |
print("</TABLE>\n"); |
print("</TABLE>\n"); |
3227 |
my ($DatabaseRelevanceFeedbackFilterKey, $DatabaseRelevanceFeedbackFilterFunction); |
my ($DatabaseRelevanceFeedbackFilterKey, $DatabaseRelevanceFeedbackFilterFunction); |
3228 |
my (@Values, %Value, $Value); |
my (@Values, %Value, $Value); |
3229 |
|
|
|
|
|
|
|
|
3230 |
# Check to see if there are any documents selected, if there are, they need |
# Check to see if there are any documents selected, if there are, they need |
3231 |
# to be converted to RF documents before we put up the header, this is because |
# to be converted to RF documents before we put up the header, this is because |
3232 |
# the header creates a search link from existing search fields, we also deduplicate |
# the header creates a search link from existing search fields, we also deduplicate |
3281 |
$main::FormData{'Database'} = join("\0", keys(%Databases)); |
$main::FormData{'Database'} = join("\0", keys(%Databases)); |
3282 |
} |
} |
3283 |
|
|
3284 |
|
# now add all databases that had to be included always |
3285 |
|
foreach (my $db = @main::always_selected_databases) { |
3286 |
|
$Databases{$db} = $Value{$db}; |
3287 |
|
} |
3288 |
|
|
3289 |
# Make sure that we send the header |
# Make sure that we send the header |
3290 |
&vSendHTMLHeader("Rezultati pretra¾ivanja", undef); |
&vSendHTMLHeader("Rezultati pretra¾ivanja", undef); |
3291 |
undef(%Value); |
undef(%Value); |
3292 |
&vSendMenuBar(%Value); |
&vSendMenuBar(%Value); |
3293 |
|
|
|
|
|
3294 |
# Check that at least one database was selected |
# Check that at least one database was selected |
3295 |
if ( !defined($main::FormData{'Database'}) ) { |
if ( !defined($main::FormData{'Database'}) && $#main::always_selected_databases < 0 ) { |
3296 |
print("<H3>Pretra¾ivanje baza:</H3>\n"); |
print("<H3>Pretra¾ivanje baza:</H3>\n"); |
3297 |
print("<H3><CENTER>Niste odabrali knji¾nicu koju ¾elite pretra¾ivati.</CENTER></H3>\n"); |
print("<H3><CENTER>Niste odabrali knji¾nicu koju ¾elite pretra¾ivati.</CENTER></H3>\n"); |
3298 |
print("<P>\n"); |
print("<P>\n"); |
3326 |
|
|
3327 |
# Convert all the '\0' to ',' |
# Convert all the '\0' to ',' |
3328 |
$Databases =~ tr/\0/,/; |
$Databases =~ tr/\0/,/; |
3329 |
|
|
3330 |
|
# add always selected databases |
3331 |
|
if (@main::always_selected_databases) { |
3332 |
|
$Databases .= ",".join(",",@main::always_selected_databases); |
3333 |
|
} |
3334 |
|
|
3335 |
# Add the max doc restriction |
# Add the max doc restriction |
3336 |
if ( !defined($main::FormData{'Max'}) ) { |
if ( !defined($main::FormData{'Max'}) ) { |
3337 |
$main::FormData{'Max'} = $main::DefaultMaxDoc; |
$main::FormData{'Max'} = $main::DefaultMaxDoc; |
3338 |
} |
} |
3339 |
|
|
|
|
|
3340 |
# Generate the search string |
# Generate the search string |
3341 |
$SearchString = &sMakeSearchString(%main::FormData); |
$SearchString = &sMakeSearchString(%main::FormData); |
3342 |
|
|
3747 |
if ( $main::ConfigurationData{'allow-relevance-feedback-searches'} eq "yes" ) { |
if ( $main::ConfigurationData{'allow-relevance-feedback-searches'} eq "yes" ) { |
3748 |
print("<OPTION VALUE=\"GetSearchResults\">Run search with selected documents as relevance feedback\n"); |
print("<OPTION VALUE=\"GetSearchResults\">Run search with selected documents as relevance feedback\n"); |
3749 |
} |
} |
3750 |
print("<OPTION VALUE=\"GetSaveFolder\">Save selected documents to a new document folder\n"); |
print("<OPTION VALUE=\"GetSaveFolder\">Saèuvaj odabrane jedinice u novi folder\n"); |
3751 |
|
|
3752 |
# Get the document folder hash |
# Get the document folder hash |
3753 |
%QualifiedDocumentFolders = &hGetDocumentFolders; |
%QualifiedDocumentFolders = &hGetDocumentFolders; |
4014 |
print("<FORM ACTION=\"$ENV{'SCRIPT_NAME'}/SetUserSettings\" NAME=\"Search\" METHOD=POST>\n"); |
print("<FORM ACTION=\"$ENV{'SCRIPT_NAME'}/SetUserSettings\" NAME=\"Search\" METHOD=POST>\n"); |
4015 |
|
|
4016 |
# Send the buttons |
# Send the buttons |
4017 |
print("<TR><TD ALIGN=RIGHT VALIGN=TOP COLSPAN=2> <INPUT TYPE=RESET VALUE=\"Pobri¹i polja\"> <INPUT TYPE=SUBMIT VALUE=\"Saèuvaj postavke\"> </TD></TR>\n"); |
print("<TR><TD ALIGN=RIGHT VALIGN=TOP COLSPAN=2> <INPUT TYPE=SUBMIT VALUE=\"Saèuvaj postavke\"> <INPUT TYPE=RESET VALUE=\"Vrati poèetne vrijednosti\"> </TD></TR>\n"); |
4018 |
|
|
4019 |
|
|
4020 |
|
|
4046 |
|
|
4047 |
print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=2><HR WIDTH=50%></TD></TR>\n"); |
print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=2><HR WIDTH=50%></TD></TR>\n"); |
4048 |
|
|
4049 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> <B> Search Preferences: </B> </TD></TR>\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> <B> Postavke pretra¾ivanja: </B> </TD></TR>\n"); |
4050 |
|
|
4051 |
# Send a pull-down which allows the user to select which search form to default to |
# Send a pull-down which allows the user to select which search form to default to |
4052 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Forma za pretra¾ivanje: </TD> <TD ALIGN=LEFT VALIGN=TOP> <SELECT NAME=\"DefaultSearch\">\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Forma za pretra¾ivanje: </TD> <TD ALIGN=LEFT VALIGN=TOP> <SELECT NAME=\"DefaultSearch\">\n"); |
4053 |
$Value = (defined($DefaultSearch) && ($DefaultSearch eq "Simple")) ? "SELECTED" : ""; |
$Value = (defined($DefaultSearch) && ($DefaultSearch eq "Simple")) ? "SELECTED" : ""; |
4054 |
print("<OPTION VALUE=\"Simple\" $Value> Jednostavna forma za pretra¾ivanje\n"); |
print("<OPTION VALUE=\"Simple\" $Value>Forma za jednostavno pretra¾ivanje\n"); |
4055 |
$Value = (defined($DefaultSearch) && ($DefaultSearch eq "Expanded")) ? "SELECTED" : ""; |
$Value = (defined($DefaultSearch) && ($DefaultSearch eq "Expanded")) ? "SELECTED" : ""; |
4056 |
print("<OPTION VALUE=\"Expanded\" $Value>Forma za pretra¾ivanje s vi¹e kriterija\n"); |
print("<OPTION VALUE=\"Expanded\" $Value>Forma za slo¾eno pretra¾ivanje\n"); |
4057 |
print("</SELECT> </TD></TR>\n"); |
print("</SELECT> </TD></TR>\n"); |
4058 |
|
|
4059 |
# Send a pull-down which allows the user to select how many previous searches to store |
# Send a pull-down which allows the user to select how many previous searches to store |
4073 |
|
|
4074 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> <B> Odabrane baze: </B> </TD></TR>\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> <B> Odabrane baze: </B> </TD></TR>\n"); |
4075 |
|
|
4076 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> Oznaèite baze koje uvijek ¾elite pretra¾ivati:</TD></TR><TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=2>\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> Oznaèite knji¾nice koje uvijek ¾elite pretra¾ivati:</TD></TR><TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=2>\n"); |
4077 |
|
|
4078 |
# Parse out the database names and put them into a |
# Parse out the database names and put them into a |
4079 |
# hash table, they should be separated with a '\n' |
# hash table, they should be separated with a '\n' |
4111 |
} |
} |
4112 |
|
|
4113 |
|
|
4114 |
print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=2><HR WIDTH=50%></TD></TR>\n"); |
# print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=2><HR WIDTH=50%></TD></TR>\n"); |
4115 |
|
|
4116 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> <B> Document Retrieval Preferences: </B> </TD></TR>\n"); |
# print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> <B> Document Retrieval Preferences: </B> </TD></TR>\n"); |
4117 |
|
|
4118 |
# Send a pull-down which allows the user to select whether to display summaries or not, and how long we want them |
# Send a pull-down which allows the user to select whether to display summaries or not, and how long we want them |
4119 |
if ( defined($main::ConfigurationData{'allow-similiar-search'}) && ($main::ConfigurationData{'allow-similiar-search'} eq "yes") ) { |
if ( defined($main::ConfigurationData{'allow-similiar-search'}) && ($main::ConfigurationData{'allow-similiar-search'} eq "yes") ) { |
4134 |
|
|
4135 |
print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=2><HR WIDTH=50%></TD></TR>\n"); |
print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=2><HR WIDTH=50%></TD></TR>\n"); |
4136 |
|
|
4137 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> <B> Saved Searches Defaults: </B> </TD></TR>\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> <B> Postavke saèuvanih upita: </B> </TD></TR>\n"); |
4138 |
|
|
4139 |
# Send a pull-down which allows the user to select the automatic search frequency (default to weekly) |
# Send a pull-down which allows the user to select the automatic search frequency (default to weekly) |
4140 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Saved search frequency: </TD> <TD ALIGN=LEFT VALIGN=TOP> <SELECT NAME=\"SearchFrequency\">\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Frekvencija pretra¾ivanja: </TD> <TD ALIGN=LEFT VALIGN=TOP> <SELECT NAME=\"SearchFrequency\">\n"); |
4141 |
foreach $ItemEntry ( @main::SearchFrequencies ) { |
foreach $ItemEntry ( @main::SearchFrequencies ) { |
4142 |
$Value = (defined($SearchFrequency) && ($SearchFrequency eq $ItemEntry)) ? "SELECTED" : ""; |
$Value = (defined($SearchFrequency) && ($SearchFrequency eq $ItemEntry)) ? "SELECTED" : ""; |
4143 |
print("<OPTION VALUE=\"$ItemEntry\" $Value> $ItemEntry \n"); |
print("<OPTION VALUE=\"$ItemEntry\" $Value> $ItemEntry \n"); |
4145 |
print("</SELECT> </TD></TR>\n"); |
print("</SELECT> </TD></TR>\n"); |
4146 |
|
|
4147 |
# Send a pull-down which allows the user to select the automatic search delivery format |
# Send a pull-down which allows the user to select the automatic search delivery format |
4148 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Saved search delivery format: </TD> <TD ALIGN=LEFT VALIGN=TOP> <SELECT NAME=\"DeliveryFormat\">\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Format za isporuku rezultata: </TD> <TD ALIGN=LEFT VALIGN=TOP> <SELECT NAME=\"DeliveryFormat\">\n"); |
4149 |
foreach $ItemEntry ( sort(keys(%main::DeliveryFormats)) ) { |
foreach $ItemEntry ( sort(keys(%main::DeliveryFormats)) ) { |
4150 |
$Value = (defined($DeliveryFormat) && ($DeliveryFormat eq $ItemEntry)) ? "SELECTED" : ""; |
$Value = (defined($DeliveryFormat) && ($DeliveryFormat eq $ItemEntry)) ? "SELECTED" : ""; |
4151 |
print("<OPTION VALUE=\"$ItemEntry\" $Value> $main::DeliveryFormats{$ItemEntry}\n"); |
print("<OPTION VALUE=\"$ItemEntry\" $Value> $main::DeliveryFormats{$ItemEntry}\n"); |
4153 |
print("</SELECT> </TD></TR>\n"); |
print("</SELECT> </TD></TR>\n"); |
4154 |
|
|
4155 |
# Send a pull-down which allows the user to select the automatic delivery method |
# Send a pull-down which allows the user to select the automatic delivery method |
4156 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Saved search delivery method: </TD> <TD ALIGN=LEFT VALIGN=TOP> <SELECT NAME=\"DeliveryMethod\">\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Metoda isporuke rezultata: </TD> <TD ALIGN=LEFT VALIGN=TOP> <SELECT NAME=\"DeliveryMethod\">\n"); |
4157 |
foreach $ItemEntry ( sort(keys(%main::DeliveryMethods)) ) { |
foreach $ItemEntry ( sort(keys(%main::DeliveryMethods)) ) { |
4158 |
$Value = (defined($DeliveryMethod) && ($DeliveryMethod eq $ItemEntry)) ? "SELECTED" : ""; |
$Value = (defined($DeliveryMethod) && ($DeliveryMethod eq $ItemEntry)) ? "SELECTED" : ""; |
4159 |
print("<OPTION VALUE=\"$ItemEntry\" $Value> $main::DeliveryMethods{$ItemEntry}\n"); |
print("<OPTION VALUE=\"$ItemEntry\" $Value> $main::DeliveryMethods{$ItemEntry}\n"); |
4674 |
print("<FORM ACTION=\"$ENV{'SCRIPT_NAME'}/SetSaveSearch\" onSubmit=\"return checkForm(this)\" METHOD=POST>\n"); |
print("<FORM ACTION=\"$ENV{'SCRIPT_NAME'}/SetSaveSearch\" onSubmit=\"return checkForm(this)\" METHOD=POST>\n"); |
4675 |
|
|
4676 |
# Send the buttons |
# Send the buttons |
4677 |
print("<TR><TD ALIGN=RIGHT VALIGN=TOP COLSPAN=2> <INPUT TYPE=RESET VALUE=\"Pobri¹i polja\"> <INPUT TYPE=SUBMIT VALUE=\"Save this Search\"> </TD></TR>\n"); |
print("<TR><TD ALIGN=RIGHT VALIGN=TOP COLSPAN=2> <INPUT TYPE=SUBMIT VALUE=\"Saèuvaj upit\"> <INPUT TYPE=RESET VALUE=\"Vrati poèetne vrijednosti\"></TD></TR>\n"); |
4678 |
|
|
4679 |
print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=2><HR WIDTH=50%></TD></TR>\n"); |
print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=2><HR WIDTH=50%></TD></TR>\n"); |
4680 |
|
|
5115 |
|
|
5116 |
|
|
5117 |
if ( defined($SearchFrequency) || defined($DeliveryFormat) || defined($DeliveryMethod) ) { |
if ( defined($SearchFrequency) || defined($DeliveryFormat) || defined($DeliveryMethod) ) { |
5118 |
print("<TR><TD></TD><TD ALIGN=LEFT VALIGN=TOP> Run: </TD> <TD ALIGN=LEFT VALIGN=TOP> $SearchFrequency </TD></TR>\n"); |
print("<TR><TD></TD><TD ALIGN=LEFT VALIGN=TOP NOWRAP> Automatsko pokretanje: </TD> <TD ALIGN=LEFT VALIGN=TOP> $SearchFrequency </TD></TR>\n"); |
5119 |
print("<TR><TD></TD><TD ALIGN=LEFT VALIGN=TOP> Delivery format: </TD> <TD ALIGN=LEFT VALIGN=TOP> $main::DeliveryFormats{$DeliveryFormat} </TD></TR>\n"); |
print("<TR><TD></TD><TD ALIGN=LEFT VALIGN=TOP> Format isporuke: </TD> <TD ALIGN=LEFT VALIGN=TOP> $main::DeliveryFormats{$DeliveryFormat} </TD></TR>\n"); |
5120 |
print("<TR><TD></TD><TD ALIGN=LEFT VALIGN=TOP> Delivery method : </TD> <TD ALIGN=LEFT VALIGN=TOP> $main::DeliveryMethods{$DeliveryMethod} </TD></TR>\n"); |
print("<TR><TD></TD><TD ALIGN=LEFT VALIGN=TOP> Methoda isporuke: </TD> <TD ALIGN=LEFT VALIGN=TOP> $main::DeliveryMethods{$DeliveryMethod} </TD></TR>\n"); |
5121 |
} |
} |
5122 |
|
|
5123 |
$Value = &sGetPrintableDateFromTime($CreationTime); |
$Value = &sGetPrintableDateFromTime($CreationTime); |
5124 |
print("<TR><TD></TD><TD ALIGN=LEFT VALIGN=TOP> Datum kreiranja: </TD> <TD ALIGN=LEFT VALIGN=TOP> $Value </TD></TR>\n"); |
print("<TR><TD></TD><TD ALIGN=LEFT VALIGN=TOP NOWRAP> Datum kreiranja: </TD> <TD ALIGN=LEFT VALIGN=TOP> $Value </TD></TR>\n"); |
5125 |
|
|
5126 |
|
|
5127 |
if ( defined($SearchFrequency) || defined($DeliveryFormat) || defined($DeliveryMethod) ) { |
if ( defined($SearchFrequency) || defined($DeliveryFormat) || defined($DeliveryMethod) ) { |
5128 |
|
|
5129 |
if ( defined($LastRunTime) ) { |
if ( defined($LastRunTime) ) { |
5130 |
$Value = &sGetPrintableDateFromTime($LastRunTime); |
$Value = &sGetPrintableDateFromTime($LastRunTime); |
5131 |
print("<TR><TD></TD><TD ALIGN=LEFT VALIGN=TOP> Last Run: </TD> <TD ALIGN=LEFT VALIGN=TOP> $Value </TD></TR>\n"); |
print("<TR><TD></TD><TD ALIGN=LEFT VALIGN=TOP NOWRAP> Zadnje pokretanje: </TD> <TD ALIGN=LEFT VALIGN=TOP> $Value </TD></TR>\n"); |
5132 |
} |
} |
5133 |
|
|
5134 |
printf("<TR><TD></TD><TD ALIGN=LEFT VALIGN=TOP> Status: </TD> <TD ALIGN=LEFT VALIGN=TOP> %s </TD></TR>", |
printf("<TR><TD></TD><TD ALIGN=LEFT VALIGN=TOP> Status: </TD> <TD ALIGN=LEFT VALIGN=TOP> %s </TD></TR>", |
5142 |
print("</FORM></TABLE>\n"); |
print("</FORM></TABLE>\n"); |
5143 |
} |
} |
5144 |
else { |
else { |
5145 |
print("<H3><CENTER> Sorry, currently, there are no saved searches. </CENTER></H3>\n"); |
print("<H3><CENTER> Trenutno nemate saèuvanih upita!. </CENTER></H3>\n"); |
5146 |
} |
} |
5147 |
|
|
5148 |
|
|
5458 |
print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>\n"); |
print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>\n"); |
5459 |
|
|
5460 |
# Send the buttons |
# Send the buttons |
5461 |
print("<TR><TD ALIGN=RIGHT VALIGN=TOP COLSPAN=2> <INPUT TYPE=RESET VALUE=\"Pobri¹i polja\"> <INPUT TYPE=SUBMIT VALUE=\"Save this Folder\"> </TD></TR>\n"); |
print("<TR><TD ALIGN=RIGHT VALIGN=TOP COLSPAN=2> <INPUT TYPE=SUBMIT VALUE=\"Saèuvaj folder\"> <INPUT TYPE=RESET VALUE=\"Vrati poèetne vrijednosti\"> </TD></TR>\n"); |
5462 |
|
|
5463 |
print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=2><HR WIDTH=50%></TD></TR>\n"); |
print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=2><HR WIDTH=50%></TD></TR>\n"); |
5464 |
|
|
5835 |
} |
} |
5836 |
} |
} |
5837 |
|
|
5838 |
print("<H3> Saving a Document Folder: </H3>\n"); |
print("<H3> Èuvanje korisnièkog foldera: </H3>\n"); |
5839 |
print("<P>\n"); |
print("<P>\n"); |
5840 |
print("<H3><CENTER> Your document folder was successfully saved. </CENTER></H3>\n"); |
print("<H3><CENTER> Va¹ folder je uspje¹no saèuvan! </CENTER></H3>\n"); |
5841 |
|
|
5842 |
|
|
5843 |
} |
} |
6306 |
undef(%Value); |
undef(%Value); |
6307 |
&vSendMenuBar(%Value); |
&vSendMenuBar(%Value); |
6308 |
|
|
6309 |
print("<H3> Document Folder: </H3>\n"); |
print("<H3> Korisnièki folder: </H3>\n"); |
6310 |
|
|
6311 |
|
|
6312 |
# Start the form |
# Start the form |
6318 |
print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>\n"); |
print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>\n"); |
6319 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP>Odabranima se smatraju svi rezultati ukoliko niste uèinili nikakav dodatan odabir.</TD><TD ALIGN=RIGHT VALIGN=TOP> \n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP>Odabranima se smatraju svi rezultati ukoliko niste uèinili nikakav dodatan odabir.</TD><TD ALIGN=RIGHT VALIGN=TOP> \n"); |
6320 |
print("<SELECT NAME=\"Action\">\n"); |
print("<SELECT NAME=\"Action\">\n"); |
6321 |
print("<OPTION VALUE=\"GetDocument\">Prika¾i odabrane rezultates\n"); |
print("<OPTION VALUE=\"GetDocument\">Prika¾i odabrane rezultate\n"); |
6322 |
if ( $main::ConfigurationData{'allow-similiar-search'} eq "yes" ) { |
if ( $main::ConfigurationData{'allow-similiar-search'} eq "yes" ) { |
6323 |
print("<OPTION VALUE=\"GetSimilarDocument\">Prika¾i rezultate sliène odabranim rezultatima\n"); |
print("<OPTION VALUE=\"GetSimilarDocument\">Prika¾i rezultate sliène odabranim rezultatima\n"); |
6324 |
} |
} |
6325 |
if ( $main::ConfigurationData{'allow-relevance-feedback-searches'} eq "yes" ) { |
if ( $main::ConfigurationData{'allow-relevance-feedback-searches'} eq "yes" ) { |
6326 |
print("<OPTION VALUE=\"GetSearchResults\">Run search with selected documents as relevance feedback\n"); |
print("<OPTION VALUE=\"GetSearchResults\">Run search with selected documents as relevance feedback\n"); |
6327 |
} |
} |
6328 |
print("<OPTION VALUE=\"DeleteDocument&DocumentFolderObject=$main::FormData{'DocumentFolderObject'}\">Delete selected documents from this document folder\n"); |
print("<OPTION VALUE=\"DeleteDocument&DocumentFolderObject=$main::FormData{'DocumentFolderObject'}\">Obri¹i odabrane jedinice iz ovog foldera\n"); |
6329 |
print("<OPTION VALUE=\"GetSaveFolder&FromDocumentFolderObject=$main::FormData{'DocumentFolderObject'}\">Move selected documents to a new document folder\n"); |
print("<OPTION VALUE=\"GetSaveFolder&FromDocumentFolderObject=$main::FormData{'DocumentFolderObject'}\">Preseli odabrane jedinice u novi folder\n"); |
6330 |
|
|
6331 |
|
|
6332 |
# Get the document folder hash |
# Get the document folder hash |
6345 |
$DocumentFolderEntry = ($DocumentFolderEntry =~ /^$main::UserAccountDirectoryPath\/(.*)/) ? $1 : $DocumentFolderEntry; |
$DocumentFolderEntry = ($DocumentFolderEntry =~ /^$main::UserAccountDirectoryPath\/(.*)/) ? $1 : $DocumentFolderEntry; |
6346 |
$DocumentFolderEntry = &lEncodeURLData($DocumentFolderEntry); |
$DocumentFolderEntry = &lEncodeURLData($DocumentFolderEntry); |
6347 |
|
|
6348 |
print("<OPTION VALUE=\"SetSaveFolder&DocumentFolderObject=$DocumentFolderEntry&FromDocumentFolderObject=$main::FormData{'DocumentFolderObject'}\">Move selected documents to the '$FolderName' document folder\n"); |
print("<OPTION VALUE=\"SetSaveFolder&DocumentFolderObject=$DocumentFolderEntry&FromDocumentFolderObject=$main::FormData{'DocumentFolderObject'}\">Preseli odabrane jedinice u folder '$FolderName' \n"); |
6349 |
} |
} |
6350 |
|
|
6351 |
print("</SELECT>\n"); |
print("</SELECT>\n"); |
6362 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Naziv: </TD> <TD ALIGN=LEFT VALIGN=TOP> $ArticleFolder{'FolderName'} </TD></TR>\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Naziv: </TD> <TD ALIGN=LEFT VALIGN=TOP> $ArticleFolder{'FolderName'} </TD></TR>\n"); |
6363 |
|
|
6364 |
# Print the folder description |
# Print the folder description |
6365 |
$ArticleFolder{'FolderDescription'} = defined($ArticleFolder{'FolderDescription'}) ? $ArticleFolder{'FolderDescription'} : "(No description defined)"; |
$ArticleFolder{'FolderDescription'} = defined($ArticleFolder{'FolderDescription'}) ? $ArticleFolder{'FolderDescription'} : "(Nije naveden)"; |
6366 |
$ArticleFolder{'FolderDescription'} =~ s/\n/<BR>/g; |
$ArticleFolder{'FolderDescription'} =~ s/\n/<BR>/g; |
6367 |
$ArticleFolder{'FolderDescription'} =~ s/\r/<BR>/g; |
$ArticleFolder{'FolderDescription'} =~ s/\r/<BR>/g; |
6368 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Opis: </TD> <TD ALIGN=LEFT VALIGN=TOP> $ArticleFolder{'FolderDescription'} </TD></TR>\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Opis: </TD> <TD ALIGN=LEFT VALIGN=TOP> $ArticleFolder{'FolderDescription'} </TD></TR>\n"); |
6372 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Datum kreiranja: </TD> <TD ALIGN=LEFT VALIGN=TOP> $Value </TD></TR>\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Datum kreiranja: </TD> <TD ALIGN=LEFT VALIGN=TOP> $Value </TD></TR>\n"); |
6373 |
|
|
6374 |
$Value = &sGetPrintableDateFromTime($ArticleFolder{'UpdateTime'}); |
$Value = &sGetPrintableDateFromTime($ArticleFolder{'UpdateTime'}); |
6375 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Datum zadnje promijene: </TD> <TD ALIGN=LEFT VALIGN=TOP> $Value </TD></TR>\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP NOWRAP> Datum zadnje promijene: </TD> <TD ALIGN=LEFT VALIGN=TOP> $Value </TD></TR>\n"); |
6376 |
|
|
6377 |
print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=2><HR WIDTH=50%></TD></TR>\n"); |
print("<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=2><HR WIDTH=50%></TD></TR>\n"); |
6378 |
|
|
7387 |
my ($FieldName, $FieldDescription, undef) = split(/\t/, $FieldInformation, 3); |
my ($FieldName, $FieldDescription, undef) = split(/\t/, $FieldInformation, 3); |
7388 |
$main::SearchFieldDescriptions{$FieldName} = $FieldDescription; |
$main::SearchFieldDescriptions{$FieldName} = $FieldDescription; |
7389 |
} |
} |
7390 |
|
} else { |
7391 |
|
&vLog("Error - cant read database description from '$Database'\n"); |
7392 |
} |
} |
7393 |
} |
} |
7394 |
|
|
7405 |
foreach my $ItemEntry ( @_ ) { |
foreach my $ItemEntry ( @_ ) { |
7406 |
$Value{$ItemEntry} = $ItemEntry; |
$Value{$ItemEntry} = $ItemEntry; |
7407 |
} |
} |
7408 |
|
|
7409 |
print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>\n"); |
print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>\n"); |
7410 |
print "<tr><td colspan=3 align=\"center\"> |
print "<tr><td colspan=3 align=\"center\"> |
7411 |
<font size=-1>Oznaèi |
<font size=-1>Oznaèi |
7449 |
} |
} |
7450 |
|
|
7451 |
print("</TABLE>\n"); |
print("</TABLE>\n"); |
7452 |
|
|
7453 |
|
} |
7454 |
|
|
7455 |
|
#-------------------------------------------------------------------------- |
7456 |
|
# |
7457 |
|
sub nuke_accents { |
7458 |
|
my $tmp = $_[0]; |
7459 |
|
$tmp =~ tr/Çüéâäùæç³ëÕõî¬ÄÆÉÅåôö¥µ¦¶ÖÜ«»£èáíóú¡±®¾Êê¼ÈºÁÂ̪¯¿ÃãðÐÏËïÒÍÎìÞÙÓÔÑñò©¹ÀÚàÛýÝþ´½²·¢¸¨ÿØø/CueaauccleOoiZACELlooLlSsOUTtLcaiouAaZzEezCsAAESZzAadDDEdNIIeTUOoNnnSsRUrUyYt'".'',"'Rr/; |
7460 |
|
# convert search string to lower case -> make search case insensitive |
7461 |
|
$tmp =~ tr/A-Z/a-z/; |
7462 |
|
return $tmp; |
7463 |
} |
} |
7464 |
|
|