232 |
$main::QueryReportMimeType = "application/x-wais-report"; |
$main::QueryReportMimeType = "application/x-wais-report"; |
233 |
|
|
234 |
|
|
|
|
|
|
# Hash of icon/images names that we use |
|
|
%main::ImageNames = ( |
|
|
'banner', 'banner.gif', |
|
|
'collapse', 'collapse.gif', |
|
|
'expand', 'expand.gif', |
|
|
'inactive-search', 'inactive-search.gif', |
|
|
'active-search', 'active-search.gif', |
|
|
'inactive-search-history', 'inactive-search-history.gif', |
|
|
'active-search-history', 'active-search-history.gif', |
|
|
'inactive-saved-searches', 'inactive-saved-searches.gif', |
|
|
'active-saved-searches', 'active-saved-searches.gif', |
|
|
'inactive-document-folders','inactive-document-folders.gif', |
|
|
'active-document-folders', 'active-document-folders.gif', |
|
|
'inactive-settings', 'inactive-settings.gif', |
|
|
'active-settings', 'active-settings.gif', |
|
|
); |
|
|
|
|
|
|
|
235 |
# Array of mime type names, we use this to map |
# Array of mime type names, we use this to map |
236 |
# mime types to mime type names (which are more readable) |
# mime types to mime type names (which are more readable) |
237 |
%main::MimeTypeNames = ( |
%main::MimeTypeNames = ( |
392 |
print("$JavaScript\n"); |
print("$JavaScript\n"); |
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">'; |
396 |
print("</HEAD>\n<BODY BGCOLOR=\"#FFFFFF\">\n"); |
print("</HEAD>\n<BODY BGCOLOR=\"#FFFFFF\">\n"); |
397 |
|
|
398 |
|
|
503 |
} |
} |
504 |
} |
} |
505 |
|
|
506 |
if ( %MenuBar && defined($MenuBar{'GetSearch'}) ) { |
my $DISABLED; |
|
print("<IMG SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'inactive-search'}\" ALT=\"Search\" BORDER=0>"); |
|
|
|
|
|
|
|
|
} |
|
|
else { |
|
|
|
|
|
print("<INPUT NAME=\"GetSearch\" TYPE=IMAGE SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'active-search'}\" ALT=\"Search\" BORDER=0>"); |
|
507 |
|
|
508 |
|
$DISABLED = ( %MenuBar && defined($MenuBar{'GetSearch'}) ) ? "DISABLED" : ""; |
509 |
|
print("<INPUT NAME=\"GetSearch\" TYPE=SUBMIT VALUE=\"Pretraživanje\" $DISABLED class=\"navigacija${DISABLED}\">"); |
|
} |
|
510 |
|
|
511 |
if ( defined($main::RemoteUser) ) { |
if ( defined($main::RemoteUser) ) { |
512 |
if ( %MenuBar && defined($MenuBar{'ListSearchHistory'}) ) { |
$DISABLED = ( %MenuBar && defined($MenuBar{'ListSearchHistory'}) ) ? "DISABLED" : ""; |
513 |
print("<IMG SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'inactive-search-history'}\" ALT=\"Search History\" BORDER=0>"); |
print"<INPUT NAME=\"ListSearchHistory\" TYPE=SUBMIT VALUE=\"Prijašnja pretraživanja\" $DISABLED class=\"navigacija${DISABLED}\">"; |
|
} |
|
|
else { |
|
|
print("<INPUT NAME=\"ListSearchHistory\" TYPE=IMAGE SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'active-search-history'}\" ALT=\"Search History\" BORDER=0>"); |
|
|
} |
|
514 |
|
|
515 |
if ( %MenuBar && defined($MenuBar{'ListSavedSearch'}) ) { |
$DISABLED = ( %MenuBar && defined($MenuBar{'ListSavedSearch'}) ) ? "DISABLED" : ""; |
516 |
print("<IMG SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'inactive-saved-searches'}\" ALT=\"Saved Searches\" BORDER=0>"); |
print"<INPUT NAME=\"ListSavedSearch\" TYPE=SUBMIT VALUE=\"Sačuvani upiti\" $DISABLED class=\"navigacija${DISABLED}\">"; |
|
} |
|
|
else { |
|
|
print("<INPUT NAME=\"ListSavedSearch\" TYPE=IMAGE SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'active-saved-searches'}\" ALT=\"Saved Searches\" BORDER=0>"); |
|
|
} |
|
517 |
|
|
518 |
if ( %MenuBar && defined($MenuBar{'ListFolder'}) ) { |
$DISABLED = ( %MenuBar && defined($MenuBar{'ListFolder'}) ) ? "DISABLED" : ""; |
519 |
print("<IMG SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'inactive-document-folders'}\" ALT=\"Doument Folders\" BORDER=0>"); |
print"<INPUT NAME=\"ListFolder\" TYPE=SUBMIT VALUE=\"Korisnički folderi\" $DISABLED class=\"navigacija${DISABLED}\">"; |
520 |
} |
|
521 |
else { |
$DISABLED = ( %MenuBar && defined($MenuBar{'GetUserSettings'}) ) ? "DISABLED" : ""; |
522 |
print("<INPUT NAME=\"ListFolder\" TYPE=IMAGE SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'active-document-folders'}\" ALT=\"Document Folders\" BORDER=0>"); |
print"<INPUT NAME=\"GetUserSettings\" TYPE=SUBMIT VALUE=\"Korisničke postavke\" $DISABLED class=\"navigacija${DISABLED}\">"; |
|
} |
|
|
|
|
|
if ( %MenuBar && defined($MenuBar{'GetUserSettings'}) ) { |
|
|
print("<IMG SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'inactive-settings'}\" ALT=\"My Preferences\" BORDER=0>"); |
|
|
} |
|
|
else { |
|
|
print("<INPUT NAME=\"GetUserSettings\" TYPE=IMAGE SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'active-settings'}\" ALT=\"My Settings\" BORDER=0>"); |
|
|
} |
|
523 |
} |
} |
524 |
|
|
525 |
|
|
1519 |
|
|
1520 |
my ($FieldName) = "FieldName" . $Value; |
my ($FieldName) = "FieldName" . $Value; |
1521 |
my ($FieldContent) = "FieldContent" . $Value; |
my ($FieldContent) = "FieldContent" . $Value; |
1522 |
|
|
1523 |
|
|
1524 |
|
if ( defined($Content{$FieldName}) && defined($Content{$FieldContent}) ) { |
1525 |
if ( defined($Content{$FieldName}) ) { |
# nuke accented chars |
1526 |
$SearchString .= defined($Content{$FieldContent}) ? |
$Content{$FieldContent} =~ tr/ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁčáíóúĄąŽžĘęźČşÁÂĚŞŻżĂăđĐĎËďŇÍÎěŢŮÓÔŃńňŠšŔÚŕŰýÝţ´˝˛ˇ˘¸¨˙Řř/CueaauccleOoiZACELlooLlSsOUTtLcaiouAaZzEezCsAAESZzAadDDEdNIIeTUOoNnnSsRUrUyYt'-".'',"'Rr/; |
1527 |
(($SearchString ne "") ? " AND " : "") . "$Content{$FieldName}=(" . $Content{$FieldContent} . ")" : ""; |
# convert search string to lower case -> make search case insensitive |
1528 |
|
$Content{$FieldContent} =~ tr/A-Z/a-z/; |
1529 |
|
|
1530 |
|
if ($Content{$FieldName} eq "ISBN") { |
1531 |
|
# fix stupid problem with dashes in data |
1532 |
|
$Content{$FieldContent} .= "*"; |
1533 |
|
} |
1534 |
|
|
1535 |
|
$SearchString .= ($SearchString ne "") ? " AND " : ""; |
1536 |
|
$SearchString .= "$Content{$FieldName}=(" . $Content{$FieldContent} . ")"; |
1537 |
} |
} |
1538 |
} |
} |
1539 |
|
|
|
# nuke accented chars |
|
|
$SearchString =~ tr/ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁčáíóúĄąŽžĘęźČşÁÂĚŞŻżĂăđĐĎËďŇÍÎěŢŮÓÔŃńňŠšŔÚŕŰýÝţ´˝˛ˇ˘¸¨˙Řř/CueaauccleOoiZACELlooLlSsOUTtLcaiouAaZzEezCsAAESZzAadDDEdNIIeTUOoNnnSsRUrUyYt'-".'',"'Rr/; |
|
|
|
|
1540 |
# Add the internal search terms |
# Add the internal search terms |
1541 |
|
|
|
|
|
1542 |
# Add the date restriction on the load time |
# Add the date restriction on the load time |
1543 |
if ( defined($Content{'LastRunTime'}) && ($Content{'LastRunTime'} > 0) ) { |
if ( defined($Content{'LastRunTime'}) && ($Content{'LastRunTime'} > 0) ) { |
1544 |
$SearchString .= (($SearchString ne "") ? " AND " : "") . "time_t>=$Content{'LastRunTime'}"; |
$SearchString .= (($SearchString ne "") ? " AND " : "") . "time_t>=$Content{'LastRunTime'}"; |
1958 |
# Print the title |
# Print the title |
1959 |
if ( $HTML ) { |
if ( $HTML ) { |
1960 |
printf("<TD ALIGN=LEFT VALIGN=TOP>%s%s:</TD><TD ALIGN=LEFT VALIGN=TOP>\n", |
printf("<TD ALIGN=LEFT VALIGN=TOP>%s%s:</TD><TD ALIGN=LEFT VALIGN=TOP>\n", |
1961 |
defined($Title) ? $Title : "Document", (scalar(@Documents) > 1) ? "s" : ""); |
# defined($Title) ? $Title : "Document", (scalar(@Documents) > 1) ? "s" : ""); |
1962 |
|
$Title); |
1963 |
} |
} |
1964 |
else { |
else { |
1965 |
printf("%s%s:\n", defined($Title) ? $Title : "Document", (scalar(@Documents) > 1) ? "s" : ""); |
# printf("%s%s:\n", defined($Title) ? $Title : "Document", (scalar(@Documents) > 1) ? "s" : ""); |
1966 |
|
print $Title; |
1967 |
} |
} |
1968 |
|
|
1969 |
|
|
1984 |
$Headline =~ s/ //gs; |
$Headline =~ s/ //gs; |
1985 |
$Headline =~ s/<.*?>//gs; |
$Headline =~ s/<.*?>//gs; |
1986 |
$Headline =~ s/\s+/ /gs; |
$Headline =~ s/\s+/ /gs; |
1987 |
|
# decode some basic html from headline <b> <i> |
1988 |
|
$Headline =~ s/<(\/?[bi])>/<$1>/g; |
1989 |
|
|
1990 |
# Create a generic link for this document |
# Create a generic link for this document |
1991 |
$Value = ""; |
$Value = ""; |
2016 |
|
|
2017 |
# 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 |
2018 |
if ( $HTML ) { |
if ( $HTML ) { |
2019 |
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"); |
2020 |
|
print("$SelectorText <A HREF=\"$LinkText\" OnMouseOver=\"self.status='Retrieve this document'; return true\"> $Headline </A> <BR>\n"); |
2021 |
|
|
2022 |
# if ( defined($URL) && ($URL ne "") ) { |
# if ( defined($URL) && ($URL ne "") ) { |
2023 |
# $Value = (length($URL) > $main::DefaultMaxVisibleUrlLength) ? substr($URL, 0, $main::DefaultMaxVisibleUrlLength) . "..." : $URL; |
# $Value = (length($URL) > $main::DefaultMaxVisibleUrlLength) ? substr($URL, 0, $main::DefaultMaxVisibleUrlLength) . "..." : $URL; |
2197 |
print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>\n"); |
print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>\n"); |
2198 |
|
|
2199 |
# Print the selector |
# Print the selector |
2200 |
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>Odabrani su svi rezultati ukoliko niste učinili nikakav dodatan odabir.</TD><TD ALIGN=RIGHT VALIGN=TOP> \n"); |
2201 |
|
|
2202 |
if ( $ResultCount > 0 ) { |
if ( $ResultCount > 0 ) { |
2203 |
|
|
2212 |
if ( $main::ConfigurationData{'allow-relevance-feedback-searches'} eq "yes" ) { |
if ( $main::ConfigurationData{'allow-relevance-feedback-searches'} eq "yes" ) { |
2213 |
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"); |
2214 |
} |
} |
2215 |
print("<OPTION VALUE=\"GetSaveSearch\">Sačuvaj rezultate pretraživanja\n"); |
print("<OPTION VALUE=\"GetSaveSearch\">Sačuvaj upit\n"); |
2216 |
print("<OPTION VALUE=\"GetSaveFolder\">Sačuvaj odabrane rezultate u novi folder\n"); |
print("<OPTION VALUE=\"GetSaveFolder\">Sačuvaj odabrane rezultate u novi folder\n"); |
2217 |
|
|
2218 |
# Get the document folder hash |
# Get the document folder hash |
2662 |
|
|
2663 |
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> "); |
2664 |
} else { |
} else { |
2665 |
printf("%3d $Headline ($main::DatabaseDescriptions{$Database})\n", $Score); |
printf("%3d $Headline \n", $Score); |
2666 |
} |
} |
2667 |
|
|
2668 |
if (0) { ## don't display description |
if (0) { ## don't display description |
2941 |
|
|
2942 |
|
|
2943 |
# Make sure that we send the header |
# Make sure that we send the header |
2944 |
$Value = ($ENV{'PATH_INFO'} eq "/GetExpandedSearch") ? "Pretraživanje s više kriterija" : "Jednostavno pretraživanje"; |
$Value = ($ENV{'PATH_INFO'} eq "/GetExpandedSearch") ? "Složeno pretraživanje" : "Jednostavno pretraživanje"; |
|
my $JavaScript = '<SCRIPT LANGUAGE="JavaScript"> |
|
|
<!-- hide |
|
|
function SetChecked(val) { |
|
|
dml=document.Search; |
|
|
len = dml.elements.length; |
|
|
var i=0; |
|
|
for( i=0 ; i<len ; i++) { |
|
|
if (dml.elements[i].name==\'Database\') { |
|
|
dml.elements[i].checked=val; |
|
|
} |
|
|
} |
|
|
} |
|
|
// --> |
|
|
</SCRIPT> |
|
|
'; |
|
2945 |
|
|
2946 |
&vSendHTMLHeader($Value, $JavaScript); |
&vSendHTMLHeader($Value, $main::JavaScript_SetChecked); |
2947 |
|
|
2948 |
undef(%Value); |
undef(%Value); |
2949 |
$Value{'GetSearch'} = "GetSearch"; |
$Value{'GetSearch'} = "GetSearch"; |
2982 |
|
|
2983 |
if ( $ENV{'PATH_INFO'} eq "/GetExpandedSearch" ) { |
if ( $ENV{'PATH_INFO'} eq "/GetExpandedSearch" ) { |
2984 |
print("<INPUT TYPE=HIDDEN NAME=\"Action\" VALUE=\"GetSimpleSearch\">\n"); |
print("<INPUT TYPE=HIDDEN NAME=\"Action\" VALUE=\"GetSimpleSearch\">\n"); |
2985 |
print("<INPUT SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'collapse'}\" BORDER=0 TYPE=IMAGE> Kliknite na trokutić da biste suzili formu.\n"); |
print("<INPUT SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'collapse'}\" BORDER=0 TYPE=IMAGE> Jednostavo pretraživanje (kliknite na trokutić)\n"); |
2986 |
} |
} |
2987 |
else { |
else { |
2988 |
print("<INPUT TYPE=HIDDEN NAME=\"Action\" VALUE=\"GetExpandedSearch\">\n"); |
print("<INPUT TYPE=HIDDEN NAME=\"Action\" VALUE=\"GetExpandedSearch\">\n"); |
2989 |
print("<INPUT SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'expand'}\" BORDER=0 TYPE=IMAGE> Kliknite na trokutić da biste proširili formu.\n"); |
print("<INPUT SRC=\"$main::ConfigurationData{'image-base-path'}/$main::ImageNames{'expand'}\" BORDER=0 TYPE=IMAGE> Složeno pretraživanje (kliknite na trokutić)\n"); |
2990 |
} |
} |
2991 |
print("</FORM></TD>\n"); |
print("</FORM></TD>\n"); |
2992 |
|
|
3014 |
|
|
3015 |
for (my $field=1; $field<= $nr_fields; $field++) { |
for (my $field=1; $field<= $nr_fields; $field++) { |
3016 |
|
|
3017 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP>"); |
print "<TR>"; |
3018 |
if ($field == 1 ) { |
if ($field == 1 ) { |
3019 |
print ("Pretraži u određenom polju:"); |
print "<TD ALIGN=LEFT VALIGN=TOP ROWSPAN=$nr_fields>"; |
3020 |
|
print "Pretraži u odabranom polju:"; |
3021 |
|
print "</td>"; |
3022 |
} |
} |
3023 |
print ("</TD><TD ALIGN=RIGHT VALIGN=TOP>"); |
print ("<TD ALIGN=RIGHT VALIGN=TOP>"); |
3024 |
|
|
3025 |
print ("<SELECT NAME=\"FieldName${field}\">"); |
print ("<SELECT NAME=\"FieldName${field}\">"); |
3026 |
for (my $i=0; $i<=$#SearchFieldNames; $i++) { |
for (my $i=0; $i<=$#SearchFieldNames; $i++) { |
3038 |
if (defined($main::FormData{"FieldContent${field}"})) { |
if (defined($main::FormData{"FieldContent${field}"})) { |
3039 |
$Value = "VALUE='".$main::FormData{"FieldContent${field}"}."'"; |
$Value = "VALUE='".$main::FormData{"FieldContent${field}"}."'"; |
3040 |
} |
} |
3041 |
print("</SELECT></TD><TD ALIGN=LEFT><INPUT NAME=\"FieldContent${field}\" TYPE=TEXT $Value SIZE=45> </TD></TR>\n"); |
print("</SELECT></TD><TD ALIGN=LEFT VALIGN=TOP><INPUT NAME=\"FieldContent${field}\" TYPE=TEXT $Value SIZE=45> </TD></TR>\n"); |
3042 |
} |
} |
3043 |
|
|
3044 |
|
|
3060 |
# Database selection |
# Database selection |
3061 |
if ( %main::DatabaseDescriptions ) { |
if ( %main::DatabaseDescriptions ) { |
3062 |
|
|
3063 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> Odaberite bazu koju želite pretraživati: |
print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> Odaberite knjižnicu čiji fond želite pretraživati:</TD></TR> |
3064 |
</td><td> |
<TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=4> |
|
<font size=-1>Označi |
|
|
<a href=\"javascript:SetChecked(1)\">sve</a>, |
|
|
<a href=\"javascript:SetChecked(0)\">niti jednu</a>. |
|
|
</font> |
|
|
</TD></TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=4> |
|
3065 |
"); |
"); |
3066 |
|
|
3067 |
# Parse out the database names and put them into a |
# Parse out the database names and put them into a |
3285 |
|
|
3286 |
# Check that at least one database was selected |
# Check that at least one database was selected |
3287 |
if ( !defined($main::FormData{'Database'}) ) { |
if ( !defined($main::FormData{'Database'}) ) { |
3288 |
print("<H3>Database Search:</H3>\n"); |
print("<H3>Pretraživanje baza:</H3>\n"); |
3289 |
print("<H3><CENTER>Sorry, no database(s) were selected for searching.</CENTER></H3>\n"); |
print("<H3><CENTER>Niste odabrali knjižnicu koju želite pretraživati.</CENTER></H3>\n"); |
3290 |
print("<P>\n"); |
print("<P>\n"); |
3291 |
print("There needs to be a least one database selected in order to perform the search.\n"); |
print("Potrebno je da barem jedna knjižnica bude odabrana, kako biste mogli pretraživati.\n"); |
3292 |
print("Click <B>'back'</B> on your browser, select at least one database and try again.\n"); |
print("Kliknite na <B>'back'</B> u svom browseru, odaberite barem jednu knjižnicu i pokušajte ponovo.\n"); |
3293 |
goto bailFromGetSearchResults; |
goto bailFromGetSearchResults; |
3294 |
} |
} |
3295 |
|
|
3962 |
|
|
3963 |
|
|
3964 |
# Make sure that we send the header |
# Make sure that we send the header |
3965 |
&vSendHTMLHeader("My Settings", undef); |
&vSendHTMLHeader("My Settings", $main::JavaScript_SetChecked); |
3966 |
undef(%Value); |
undef(%Value); |
3967 |
$Value{'GetUserSettings'} = "GetUserSettings"; |
$Value{'GetUserSettings'} = "GetUserSettings"; |
3968 |
&vSendMenuBar(%Value); |
&vSendMenuBar(%Value); |
4000 |
print("<H3> Postavke: </H3>\n"); |
print("<H3> Postavke: </H3>\n"); |
4001 |
|
|
4002 |
print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>\n"); |
print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>\n"); |
4003 |
print("<FORM ACTION=\"$ENV{'SCRIPT_NAME'}/SetUserSettings\" METHOD=POST>\n"); |
print("<FORM ACTION=\"$ENV{'SCRIPT_NAME'}/SetUserSettings\" NAME=\"Search\" METHOD=POST>\n"); |
4004 |
|
|
4005 |
# Send the buttons |
# Send the buttons |
4006 |
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=RESET VALUE=\"Pobriši polja\"> <INPUT TYPE=SUBMIT VALUE=\"Sačuvaj postavke\"> </TD></TR>\n"); |
4062 |
|
|
4063 |
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"); |
4064 |
|
|
4065 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Označite baze koje uvijek želite pretraživati:</TD> <TD ALIGN=LEFT VALIGN=TOP>\n"); |
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"); |
4066 |
|
|
4067 |
# Parse out the database names and put them into a |
# Parse out the database names and put them into a |
4068 |
# hash table, they should be separated with a '\n' |
# hash table, they should be separated with a '\n' |
4069 |
if ( defined($SelectedDatabases) && ($SelectedDatabases ne "") ) { |
if ( defined($SelectedDatabases) && ($SelectedDatabases ne "") ) { |
4070 |
@ItemList = split(",", $SelectedDatabases); |
@ItemList = split(",", $SelectedDatabases); |
4071 |
} |
} |
4072 |
|
|
4073 |
&ShowDatabaseCheckBoxes(@ItemList); |
&ShowDatabaseCheckBoxes(@ItemList); |
4074 |
|
|
4075 |
print("</TD></TR>\n"); |
print("</TD></TR>\n"); |
4215 |
$Value{'UserName'} = $main::FormData{'UserName'}; |
$Value{'UserName'} = $main::FormData{'UserName'}; |
4216 |
$Value{'EmailAddress'} = $main::FormData{'EmailAddress'}; |
$Value{'EmailAddress'} = $main::FormData{'EmailAddress'}; |
4217 |
$Value{'DefaultSearch'} = $main::FormData{'DefaultSearch'}; |
$Value{'DefaultSearch'} = $main::FormData{'DefaultSearch'}; |
4218 |
$Value{'SelectedDatabases'} = $main::FormData{'SelectedDatabases'}; |
$Value{'SelectedDatabases'} = $main::FormData{'Database'}; |
4219 |
if ( defined($Value{'SelectedDatabases'}) ) { |
if ( defined($Value{'SelectedDatabases'}) ) { |
4220 |
$Value{'SelectedDatabases'} =~ s/\0/,/g; |
$Value{'SelectedDatabases'} =~ s/\0/,/g; |
4221 |
} |
} |
4643 |
|
|
4644 |
|
|
4645 |
# Give the user a form to fill out |
# Give the user a form to fill out |
4646 |
print("<H3> Saving a search: </H3>\n"); |
print("<H3> Čuvanje upita: </H3>\n"); |
4647 |
|
|
4648 |
|
|
4649 |
|
|
4696 |
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"); |
4697 |
|
|
4698 |
# Send the search name and search description fields |
# Send the search name and search description fields |
4699 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Search Name (required): </TD> <TD ALIGN=LEFT VALIGN=TOP> <INPUT NAME=\"SearchName\" TYPE=TEXT SIZE=45> </TD></TR>\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Naziv (obavezno): </TD> <TD ALIGN=LEFT VALIGN=TOP> <INPUT NAME=\"SearchName\" TYPE=TEXT SIZE=45> </TD></TR>\n"); |
4700 |
|
|
4701 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Search Description: </TD> <TD ALIGN=LEFT VALIGN=TOP> <TEXTAREA INPUT NAME=\"SearchDescription\" COLS=45 ROWS=6 WRAP=VIRTUAL></TEXTAREA> </TD></TR>\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Opis: </TD> <TD ALIGN=LEFT VALIGN=TOP> <TEXTAREA INPUT NAME=\"SearchDescription\" COLS=45 ROWS=6 WRAP=VIRTUAL></TEXTAREA> </TD></TR>\n"); |
4702 |
|
|
4703 |
if ( defined($main::FormData{'RfDocument'}) ) { |
if ( defined($main::FormData{'RfDocument'}) ) { |
4704 |
print("<TR>\n"); |
print("<TR>\n"); |
4709 |
|
|
4710 |
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"); |
4711 |
|
|
4712 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Kliknite na ovaj kvadratić ako želite postojeći folder s istim imenom zamijeniti ovim novim: </TD> <TD ALIGN=LEFT VALIGN=TOP><INPUT TYPE=\"checkbox\" NAME=\"OverWrite\" VALUE=\"yes\"> </TD></TR>\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Kliknite na ovaj kvadratić ako želite postojeći upit s istim imenom zamijeniti ovim novim: </TD> <TD ALIGN=LEFT VALIGN=TOP><INPUT TYPE=\"checkbox\" NAME=\"OverWrite\" VALUE=\"yes\"> </TD></TR>\n"); |
4713 |
|
|
4714 |
|
|
4715 |
|
|
4718 |
|
|
4719 |
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"); |
4720 |
|
|
4721 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Check to run this search on a regular basis: </TD> <TD ALIGN=LEFT VALIGN=TOP> <INPUT TYPE=CHECKBOX VALUE=\"yes\" NAME=\"Regular\"> </TD></TR>\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Kliknite ovaj kvadratić ukoliko želite automatsko periodičko pretraživanje po ovom upitu: </TD> <TD ALIGN=LEFT VALIGN=TOP> <INPUT TYPE=CHECKBOX VALUE=\"yes\" NAME=\"Regular\"> </TD></TR>\n"); |
4722 |
|
|
4723 |
# Send a pull-down which allows the user to select the automatic search frequency |
# Send a pull-down which allows the user to select the automatic search frequency |
4724 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Select the search frequency: </TD> <TD ALIGN=LEFT VALIGN=TOP> <SELECT NAME=\"SearchFrequency\">\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Odaberite frekvenciju automatskog pretraživanja: </TD> <TD ALIGN=LEFT VALIGN=TOP> <SELECT NAME=\"SearchFrequency\">\n"); |
4725 |
foreach $ValueEntry ( @main::SearchFrequencies ) { |
foreach $ValueEntry ( @main::SearchFrequencies ) { |
4726 |
$Value = (defined($SearchFrequency) && ($SearchFrequency eq $ValueEntry)) ? "SELECTED" : ""; |
$Value = (defined($SearchFrequency) && ($SearchFrequency eq $ValueEntry)) ? "SELECTED" : ""; |
4727 |
print("<OPTION VALUE=\"$ValueEntry\" $Value> $ValueEntry \n"); |
print("<OPTION VALUE=\"$ValueEntry\" $Value> $ValueEntry \n"); |
4729 |
print("</SELECT> </TD></TR>\n"); |
print("</SELECT> </TD></TR>\n"); |
4730 |
|
|
4731 |
# 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 |
4732 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Select the delivery format: </TD> <TD ALIGN=LEFT VALIGN=TOP> <SELECT NAME=\"DeliveryFormat\">\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Odaberite format za isporuku rezultata pretraživanja: </TD> <TD ALIGN=LEFT VALIGN=TOP> <SELECT NAME=\"DeliveryFormat\">\n"); |
4733 |
foreach $ValueEntry ( sort(keys(%main::DeliveryFormats)) ) { |
foreach $ValueEntry ( sort(keys(%main::DeliveryFormats)) ) { |
4734 |
$Value = (defined($DeliveryFormat) && ($DeliveryFormat eq $ValueEntry)) ? "SELECTED" : ""; |
$Value = (defined($DeliveryFormat) && ($DeliveryFormat eq $ValueEntry)) ? "SELECTED" : ""; |
4735 |
print("<OPTION VALUE=\"$ValueEntry\" $Value> $main::DeliveryFormats{$ValueEntry}\n"); |
print("<OPTION VALUE=\"$ValueEntry\" $Value> $main::DeliveryFormats{$ValueEntry}\n"); |
4737 |
print("</SELECT> </TD></TR>\n"); |
print("</SELECT> </TD></TR>\n"); |
4738 |
|
|
4739 |
# Send a pull-down which allows the user to select the automatic search delivery method |
# Send a pull-down which allows the user to select the automatic search delivery method |
4740 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Select the delivery method: </TD> <TD ALIGN=LEFT VALIGN=TOP> <SELECT NAME=\"DeliveryMethod\">\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP> Odaberite metodu isporuke: </TD> <TD ALIGN=LEFT VALIGN=TOP> <SELECT NAME=\"DeliveryMethod\">\n"); |
4741 |
foreach $ValueEntry ( sort(keys(%main::DeliveryMethods)) ) { |
foreach $ValueEntry ( sort(keys(%main::DeliveryMethods)) ) { |
4742 |
$Value = (defined($DeliveryMethod) && ($DeliveryMethod eq $ValueEntry)) ? "SELECTED" : ""; |
$Value = (defined($DeliveryMethod) && ($DeliveryMethod eq $ValueEntry)) ? "SELECTED" : ""; |
4743 |
print("<OPTION VALUE=\"$ValueEntry\" $Value> $main::DeliveryMethods{$ValueEntry}\n"); |
print("<OPTION VALUE=\"$ValueEntry\" $Value> $main::DeliveryMethods{$ValueEntry}\n"); |
4858 |
&& !(defined($main::FormData{'OverWrite'}) && ($main::FormData{'OverWrite'} eq "yes")) ) { |
&& !(defined($main::FormData{'OverWrite'}) && ($main::FormData{'OverWrite'} eq "yes")) ) { |
4859 |
|
|
4860 |
# There is already a saved search with this name, so we suggest corrective action to the user. |
# There is already a saved search with this name, so we suggest corrective action to the user. |
4861 |
print("<H3> Saving a Search: </H3>\n"); |
print("<H3> Čuvanje upita: </H3>\n"); |
4862 |
print("<H3><CENTER> Sorry, there is already a saved search with this name. </CENTER></H3>\n"); |
print("<H3><CENTER> Već postoji upit pod ovim imenom. </CENTER></H3>\n"); |
4863 |
print("<P>\n"); |
print("<P>\n"); |
4864 |
print("Click <B>'back'</B> on your browser, change the <B>'search name'</B> and try again, \n"); |
print("Kliknite <B>'back'</B> u browseru, promijenite <B>'Naziv'</B> i pokušajte ponovo, \n"); |
4865 |
print("alternatively you can check the box which allows you to automatically over-write a saved search with the same name.\n"); |
print("ili kliknuti na kvadratić koji vam omogućava da automatski presnimite sačuvani upit s istim imenom.\n"); |
4866 |
print("<P>\n"); |
print("<P>\n"); |
4867 |
|
|
4868 |
goto bailFromSetSaveSearch; |
goto bailFromSetSaveSearch; |
4876 |
if ( !defined($Value) && (defined($main::FormData{'Regular'}) && ($main::FormData{'Regular'} eq "yes")) ) { |
if ( !defined($Value) && (defined($main::FormData{'Regular'}) && ($main::FormData{'Regular'} eq "yes")) ) { |
4877 |
|
|
4878 |
# Regular delivery was requested, but the email address was not specified in the settings |
# Regular delivery was requested, but the email address was not specified in the settings |
4879 |
print("<H3> Saving a Search: </H3>\n"); |
print("<H3> Čuvanje upita: </H3>\n"); |
4880 |
print("<H3><CENTER> Sorry, your email address is not specified in your settings. </CENTER></H3>\n"); |
print("<H3><CENTER> E-mail adresa nije specificirana u vašim postavkama. </CENTER></H3>\n"); |
4881 |
print("<P>\n"); |
print("<P>\n"); |
4882 |
print("You need to specify your email address in your settings if you want this search to run on a regular basis, \n"); |
print("Potrebno je specificirati e-mail adresu ukoliko želite da se pretraživanje po ovom upitu odvije periodično. \n"); |
4883 |
print("without your email address, we are not able to send you the search result. <P>\n"); |
print("bez e-mail adrese, nismo vam u mogućnosti isporučiti rezultate. <P>\n"); |
4884 |
print("Click the <B>'Settings'</B> option from the menu sidebar, fill in your email address and save the settings, \n"); |
print("Kliknite na <B>'Korisničke postavke'</B>, upišite e-mail adresu i sačuvajte postavke, \n"); |
4885 |
print("then click <B>'back'</B> on your browser three times to go back to the form which allows you to save a search.\n"); |
print("nakon toga kliknite na <B>'back'</B> u svom browseru tri puta kako biste se vratili na formu koja vam nudi da sačuvate upit.\n"); |
4886 |
print("<P>\n"); |
print("<P>\n"); |
4887 |
|
|
4888 |
goto bailFromSetSaveSearch; |
goto bailFromSetSaveSearch; |
5009 |
|
|
5010 |
|
|
5011 |
# Print out the saved searches |
# Print out the saved searches |
5012 |
print("<H3> Sačuvana pretraživanja: </H3>\n"); |
print("<H3> Sačuvani upiti: </H3>\n"); |
5013 |
|
|
5014 |
|
|
5015 |
|
|
5025 |
|
|
5026 |
print("<TR><TD ALIGN=RIGHT VALIGN=TOP COLSPAN=3> \n"); |
print("<TR><TD ALIGN=RIGHT VALIGN=TOP COLSPAN=3> \n"); |
5027 |
print("<SELECT NAME=\"Action\">\n"); |
print("<SELECT NAME=\"Action\">\n"); |
5028 |
print("<OPTION VALUE=\"ActivateSavedSearch\">Aktiviraj označena sačuvana pretraživanja\n"); |
print("<OPTION VALUE=\"ActivateSavedSearch\">Uključi periodično automatsko pretraživanje po odabranim upitima\n"); |
5029 |
print("<OPTION VALUE=\"SuspendSavedSearch\">Stavi u mirovanje označena sačuvana pretraživanja\n"); |
print("<OPTION VALUE=\"SuspendSavedSearch\">Isključi periodično automatsko pretraživanje po odabranim upitima\n"); |
5030 |
print("<OPTION VALUE=\"DeleteSavedSearch\">Obriši označena sačuvana pretraživanja\n"); |
print("<OPTION VALUE=\"DeleteSavedSearch\">Obriši označene sačuvane upite\n"); |
5031 |
print("</SELECT>\n"); |
print("</SELECT>\n"); |
5032 |
print("<INPUT TYPE=SUBMIT VALUE=\"Do It!\">\n"); |
print("<INPUT TYPE=SUBMIT VALUE=\"Do It!\">\n"); |
5033 |
print("</TD></TR>\n"); |
print("</TD></TR>\n"); |
5125 |
|
|
5126 |
} |
} |
5127 |
|
|
5128 |
print("<TR><TD ALIGN=LEFT VALIGN=TOP></TD><TD ALIGN=LEFT VALIGN=TOP></TD> <TD ALIGN=LEFT VALIGN=TOP> <A HREF=\"$ENV{'SCRIPT_NAME'}/GetSavedSearch?SavedSearchObject=$SavedSearchEntry\" OnMouseOver=\"self.status='Display the search form with this search'; return true\"> [ Otvori formu za pretraživanje s upisanim ovim pretraživanjem ] </A> </TD></TR>\n"); |
print("<TR><TD ALIGN=LEFT VALIGN=TOP></TD><TD ALIGN=LEFT VALIGN=TOP></TD> <TD ALIGN=LEFT VALIGN=TOP> <A HREF=\"$ENV{'SCRIPT_NAME'}/GetSavedSearch?SavedSearchObject=$SavedSearchEntry\" OnMouseOver=\"self.status='Display the search form with this search'; return true\"> [ Otvori formu za pretraživanje s upisanim ovim upitom ] </A> </TD></TR>\n"); |
5129 |
} |
} |
5130 |
|
|
5131 |
print("</FORM></TABLE>\n"); |
print("</FORM></TABLE>\n"); |
5262 |
|
|
5263 |
# Set the title |
# Set the title |
5264 |
if ( $ENV{'PATH_INFO'} eq "/DeleteSavedSearch" ) { |
if ( $ENV{'PATH_INFO'} eq "/DeleteSavedSearch" ) { |
5265 |
$Title = "Obriši sačuvana pretraživanja"; |
$Title = "Brisanje sačuvanih pretraživanja"; |
5266 |
} |
} |
5267 |
elsif ( $ENV{'PATH_INFO'} eq "/ActivateSavedSearch" ) { |
elsif ( $ENV{'PATH_INFO'} eq "/ActivateSavedSearch" ) { |
5268 |
$Title = "Aktiviraj sačuvana pretraživanja"; |
$Title = "Uključivanje automatskog periodičnog pretraživanja"; |
5269 |
} |
} |
5270 |
elsif ( $ENV{'PATH_INFO'} eq "/SuspendSavedSearch" ) { |
elsif ( $ENV{'PATH_INFO'} eq "/SuspendSavedSearch" ) { |
5271 |
$Title = "Stavi u mirovanje sačuvana pretraživanja"; |
$Title = "Isključivanje automatskog periodičnog pretraživanja"; |
5272 |
} |
} |
5273 |
|
|
5274 |
|
|
5283 |
# Check to see if the saved search object is defined |
# Check to see if the saved search object is defined |
5284 |
if ( ! defined($main::FormData{'SavedSearchObject'}) ) { |
if ( ! defined($main::FormData{'SavedSearchObject'}) ) { |
5285 |
# Could not find the saved search object |
# Could not find the saved search object |
5286 |
print("<H3><CENTER> Sorry, no searches were selected. </CENTER></H3>\n"); |
print("<H3><CENTER>Niste odabrali niti jedan upit. </CENTER></H3>\n"); |
5287 |
print("<P>\n"); |
print("<P>\n"); |
5288 |
print("You need to select at least one saved search in order to be able to perform an action on it.\n"); |
print("Potrebno je odabrati barem jedan sačuvani upit nad kojim će se izvršiti akcija.\n"); |
5289 |
print("<P>\n"); |
print("<P>\n"); |
5290 |
goto bailFromProcessSavedSearch; |
goto bailFromProcessSavedSearch; |
5291 |
} |
} |
5314 |
|
|
5315 |
if ( $ENV{'PATH_INFO'} eq "/DeleteSavedSearch" ) { |
if ( $ENV{'PATH_INFO'} eq "/DeleteSavedSearch" ) { |
5316 |
if ( unlink($SavedSearchFilePath) ) { |
if ( unlink($SavedSearchFilePath) ) { |
5317 |
printf("<P>Successfully deleted: %s\n", $Value{'SearchName'}); |
printf("<P>Uspješno pobrisano: %s\n", $Value{'SearchName'}); |
5318 |
} |
} |
5319 |
else { |
else { |
5320 |
printf("<P>Failed to delete: %s\n", $Value{'SearchName'}); |
printf("<P>Nije pobrisano: %s\n", $Value{'SearchName'}); |
5321 |
} |
} |
5322 |
} |
} |
5323 |
elsif ( ($ENV{'PATH_INFO'} eq "/ActivateSavedSearch") || ($ENV{'PATH_INFO'} eq "/SuspendSavedSearch") ) { |
elsif ( ($ENV{'PATH_INFO'} eq "/ActivateSavedSearch") || ($ENV{'PATH_INFO'} eq "/SuspendSavedSearch") ) { |
5331 |
$Value{'SearchStatus'} = ($ENV{'PATH_INFO'} eq "/ActivateSavedSearch") ? "Active" : "Inactive" ; |
$Value{'SearchStatus'} = ($ENV{'PATH_INFO'} eq "/ActivateSavedSearch") ? "Active" : "Inactive" ; |
5332 |
|
|
5333 |
if ( &iSaveXMLFileFromHash($SavedSearchFilePath, "SavedSearch", %Value) ) { |
if ( &iSaveXMLFileFromHash($SavedSearchFilePath, "SavedSearch", %Value) ) { |
5334 |
printf("<P>Successfully %s: %s\n", |
printf("<P>Uspješno %s: %s\n", |
5335 |
($ENV{'PATH_INFO'} eq "/ActivateSavedSearch") ? "activated" : "suspended", $Value{'SearchName'}); |
($ENV{'PATH_INFO'} eq "/ActivateSavedSearch") ? "uključeno" : "isključeno", $Value{'SearchName'}); |
5336 |
} |
} |
5337 |
else { |
else { |
5338 |
printf("<P>Failed to %s: %s\n", |
printf("<P>Nije %s: %s\n", |
5339 |
($ENV{'PATH_INFO'} eq "/ActivateSavedSearch") ? "activated" : "suspended", $Value{'SearchName'}); |
($ENV{'PATH_INFO'} eq "/ActivateSavedSearch") ? "uključeno" : "isključeno", $Value{'SearchName'}); |
5340 |
} |
} |
5341 |
} |
} |
5342 |
} |
} |
5438 |
|
|
5439 |
|
|
5440 |
# Print up the title |
# Print up the title |
5441 |
print("<H3> Snimanje foldera s dokumentima: </H3>\n"); |
print("<H3> Kreiranje korisničkog foldera: </H3>\n"); |
5442 |
|
|
5443 |
# Print up the form |
# Print up the form |
5444 |
printf("<FORM ACTION=\"$ENV{'SCRIPT_NAME'}/SetSaveFolder\" onSubmit=\"return checkForm(this)\" METHOD=POST>\n"); |
printf("<FORM ACTION=\"$ENV{'SCRIPT_NAME'}/SetSaveFolder\" onSubmit=\"return checkForm(this)\" METHOD=POST>\n"); |
5487 |
# Delete the old content |
# Delete the old content |
5488 |
delete($main::FormData{'Documents'}); |
delete($main::FormData{'Documents'}); |
5489 |
|
|
5490 |
|
###FIX |
5491 |
if ( defined($main::FormData{'Document'}) ) { |
if ( defined($main::FormData{'Document'}) ) { |
5492 |
print("<TR>\n"); |
print("<TR>\n"); |
5493 |
&bDisplayDocuments("Document", $main::FormData{'Document'}, "Document", undef, undef, 1); |
&bDisplayDocuments("Document", $main::FormData{'Document'}, "Document", undef, undef, 1); |
5898 |
|
|
5899 |
|
|
5900 |
# Print out the document folders |
# Print out the document folders |
5901 |
print("<H3> Folderi: </H3>\n"); |
print("<H3> Korisnički folderi: </H3>\n"); |
5902 |
|
|
5903 |
|
|
5904 |
# Get the document folder hash |
# Get the document folder hash |
7109 |
} |
} |
7110 |
|
|
7111 |
|
|
7112 |
if ( defined($main::FormData{'GetSearch.x'}) ) { |
if ( defined($main::FormData{'GetSearch'}) ) { |
7113 |
$ENV{'PATH_INFO'} = "/GetSearch"; |
$ENV{'PATH_INFO'} = "/GetSearch"; |
7114 |
delete($main::FormData{'GetSearch.x'}); |
delete($main::FormData{'GetSearch'}); |
7115 |
delete($main::FormData{'GetSearch.y'}); |
delete($main::FormData{'GetSearch'}); |
7116 |
} |
} |
7117 |
|
|
7118 |
if ( defined($main::FormData{'ListSearchHistory.x'}) ) { |
if ( defined($main::FormData{'ListSearchHistory'}) ) { |
7119 |
$ENV{'PATH_INFO'} = "/ListSearchHistory"; |
$ENV{'PATH_INFO'} = "/ListSearchHistory"; |
7120 |
delete($main::FormData{'ListSearchHistory.x'}); |
delete($main::FormData{'ListSearchHistory'}); |
7121 |
delete($main::FormData{'ListSearchHistory.y'}); |
delete($main::FormData{'ListSearchHistory'}); |
7122 |
} |
} |
7123 |
|
|
7124 |
if ( defined($main::FormData{'ListSavedSearch.x'}) ) { |
if ( defined($main::FormData{'ListSavedSearch'}) ) { |
7125 |
$ENV{'PATH_INFO'} = "/ListSavedSearch"; |
$ENV{'PATH_INFO'} = "/ListSavedSearch"; |
7126 |
delete($main::FormData{'ListSavedSearch.x'}); |
delete($main::FormData{'ListSavedSearch'}); |
7127 |
delete($main::FormData{'ListSavedSearch.y'}); |
delete($main::FormData{'ListSavedSearch'}); |
7128 |
} |
} |
7129 |
|
|
7130 |
if ( defined($main::FormData{'ListFolder.x'}) ) { |
if ( defined($main::FormData{'ListFolder'}) ) { |
7131 |
$ENV{'PATH_INFO'} = "/ListFolder"; |
$ENV{'PATH_INFO'} = "/ListFolder"; |
7132 |
delete($main::FormData{'ListFolder.x'}); |
delete($main::FormData{'ListFolder'}); |
7133 |
delete($main::FormData{'ListFolder.y'}); |
delete($main::FormData{'ListFolder'}); |
7134 |
} |
} |
7135 |
|
|
7136 |
if ( defined($main::FormData{'GetUserSettings.x'}) ) { |
if ( defined($main::FormData{'GetUserSettings'}) ) { |
7137 |
$ENV{'PATH_INFO'} = "/GetUserSettings"; |
$ENV{'PATH_INFO'} = "/GetUserSettings"; |
7138 |
delete($main::FormData{'GetUserSettings.x'}); |
delete($main::FormData{'GetUserSettings'}); |
7139 |
delete($main::FormData{'GetUserSettings.y'}); |
delete($main::FormData{'GetUserSettings'}); |
7140 |
} |
} |
7141 |
|
|
7142 |
|
|
7394 |
} |
} |
7395 |
|
|
7396 |
print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>\n"); |
print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>\n"); |
7397 |
|
print "<tr><td colspan=3 align=\"center\"> |
7398 |
|
<font size=-1>Označi |
7399 |
|
<a href=\"javascript:SetChecked(1)\">sve</a>, |
7400 |
|
<a href=\"javascript:SetChecked(0)\">niti jednu</a>. |
7401 |
|
</font> |
7402 |
|
</td></tr>"; |
7403 |
|
|
7404 |
my @html_database; |
my @html_database; |
7405 |
|
|