--- search/Search.cgi 2002/06/25 16:47:58 1.17
+++ search/Search.cgi 2002/06/25 19:31:07 1.20
@@ -513,7 +513,7 @@
print" ";
$DISABLED = ( %MenuBar && defined($MenuBar{'ListSavedSearch'}) ) ? "DISABLED" : "";
- print" ";
+ print" ";
$DISABLED = ( %MenuBar && defined($MenuBar{'ListFolder'}) ) ? "DISABLED" : "";
print" ";
@@ -1519,22 +1519,26 @@
my ($FieldName) = "FieldName" . $Value;
my ($FieldContent) = "FieldContent" . $Value;
+
-
- if ( defined($Content{$FieldName}) ) {
- $SearchString .= defined($Content{$FieldContent}) ?
- (($SearchString ne "") ? " AND " : "") . "$Content{$FieldName}=(" . $Content{$FieldContent} . ")" : "";
+ if ( defined($Content{$FieldName}) && defined($Content{$FieldContent}) ) {
+ # 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/;
+
+ if ($Content{$FieldName} eq "ISBN") {
+ # fix stupid problem with dashes in data
+ $Content{$FieldContent} .= "*";
+ }
+
+ $SearchString .= ($SearchString ne "") ? " AND " : "";
+ $SearchString .= "$Content{$FieldName}=(" . $Content{$FieldContent} . ")";
}
}
- # nuke accented chars
- $SearchString =~ tr/ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁčáíóúĄąŽžĘęźČşÁÂĚŞŻżĂăđĐĎËďŇÍÎěŢŮÓÔŃńňŠšŔÚŕŰýÝţ´˝˛ˇ˘¸¨˙Řř/CueaauccleOoiZACELlooLlSsOUTtLcaiouAaZzEezCsAAESZzAadDDEdNIIeTUOoNnnSsRUrUyYt'-".'',"'Rr/;
- # convert search string to lower case -> make search case insensitive
- $SearchString =~ tr/A-Z/a-z/;
-
# Add the internal search terms
-
# Add the date restriction on the load time
if ( defined($Content{'LastRunTime'}) && ($Content{'LastRunTime'} > 0) ) {
$SearchString .= (($SearchString ne "") ? " AND " : "") . "time_t>=$Content{'LastRunTime'}";
@@ -1954,10 +1958,12 @@
# Print the title
if ( $HTML ) {
printf("
%s%s: \n",
- defined($Title) ? $Title : "Document", (scalar(@Documents) > 1) ? "s" : "");
+# defined($Title) ? $Title : "Document", (scalar(@Documents) > 1) ? "s" : "");
+ $Title);
}
else {
- printf("%s%s:\n", defined($Title) ? $Title : "Document", (scalar(@Documents) > 1) ? "s" : "");
+# printf("%s%s:\n", defined($Title) ? $Title : "Document", (scalar(@Documents) > 1) ? "s" : "");
+ print $Title;
}
@@ -2188,7 +2194,7 @@
print("\n");
# Print the selector
- print("Odabranima se smatraju svi rezultati ukoliko niste učinili nikakav dodatan odabir. \n");
+ print(" Odabrani su svi rezultati ukoliko niste učinili nikakav dodatan odabir. \n");
if ( $ResultCount > 0 ) {
@@ -2203,7 +2209,7 @@
if ( $main::ConfigurationData{'allow-relevance-feedback-searches'} eq "yes" ) {
print("Run search with selected documents as relevance feedback\n");
}
- print(" Sačuvaj rezultate pretraživanja\n");
+ print(" Sačuvaj upit\n");
print(" Sačuvaj odabrane rezultate u novi folder\n");
# Get the document folder hash
@@ -2992,7 +2998,7 @@
# Send the standard fields
$Value = defined($main::FormData{'Any'}) ? "VALUE='$main::FormData{'Any'}'" : "";
- print(" Tražene riječi neka budu u bilo kojem polju: \n");
+ print(" Pretraži u bilo kojem polju: \n");
my $nr_fields = $main::NormalSearchDropdowns;
@@ -3008,7 +3014,7 @@
print "";
if ($field == 1 ) {
print "";
- print "Tražene riječi neka budu u odabranom polju:";
+ print "Pretraži u odabranom polju:";
print " ";
}
print ("");
@@ -3051,7 +3057,7 @@
# Database selection
if ( %main::DatabaseDescriptions ) {
- print(" Odaberite bazu koju želite pretraživati:
+ print(" Odaberite knjižnicu čiji fond želite pretraživati:
");
@@ -3276,11 +3282,11 @@
# Check that at least one database was selected
if ( !defined($main::FormData{'Database'}) ) {
- print("Database Search: \n");
- print("Sorry, no database(s) were selected for searching. \n");
+ print("Pretraživanje baza: \n");
+ print("Niste odabrali knjižnicu koju želite pretraživati. \n");
print("\n");
- print("There needs to be a least one database selected in order to perform the search.\n");
- print("Click 'back' on your browser, select at least one database and try again.\n");
+ print("Potrebno je da barem jedna knjižnica bude odabrana, kako biste mogli pretraživati.\n");
+ print("Kliknite na 'back' u svom browseru, odaberite barem jednu knjižnicu i pokušajte ponovo.\n");
goto bailFromGetSearchResults;
}
@@ -4634,7 +4640,7 @@
# Give the user a form to fill out
- print("
Saving a search: \n");
+ print(" Čuvanje upita: \n");
@@ -4687,9 +4693,9 @@
print(" \n");
# Send the search name and search description fields
- print(" Search Name (required): \n");
+ print(" Naziv (obavezno): \n");
- print(" Search Description: \n");
+ print(" Opis: \n");
if ( defined($main::FormData{'RfDocument'}) ) {
print("\n");
@@ -4700,7 +4706,7 @@
print(" \n");
- print(" Kliknite na ovaj kvadratić ako želite postojeći folder s istim imenom zamijeniti ovim novim: \n");
+ print(" Kliknite na ovaj kvadratić ako želite postojeći upit s istim imenom zamijeniti ovim novim: \n");
@@ -4709,10 +4715,10 @@
print(" \n");
- print(" Check to run this search on a regular basis: \n");
+ print(" Kliknite ovaj kvadratić ukoliko želite automatsko periodičko pretraživanje po ovom upitu: \n");
# Send a pull-down which allows the user to select the automatic search frequency
- print(" Select the search frequency: \n");
+ print(" Odaberite frekvenciju automatskog pretraživanja: \n");
foreach $ValueEntry ( @main::SearchFrequencies ) {
$Value = (defined($SearchFrequency) && ($SearchFrequency eq $ValueEntry)) ? "SELECTED" : "";
print(" $ValueEntry \n");
@@ -4720,7 +4726,7 @@
print(" \n");
# Send a pull-down which allows the user to select the automatic search delivery format
- print(" Select the delivery format: \n");
+ print(" Odaberite format za isporuku rezultata pretraživanja: \n");
foreach $ValueEntry ( sort(keys(%main::DeliveryFormats)) ) {
$Value = (defined($DeliveryFormat) && ($DeliveryFormat eq $ValueEntry)) ? "SELECTED" : "";
print(" $main::DeliveryFormats{$ValueEntry}\n");
@@ -4728,7 +4734,7 @@
print(" \n");
# Send a pull-down which allows the user to select the automatic search delivery method
- print(" Select the delivery method: \n");
+ print(" Odaberite metodu isporuke: \n");
foreach $ValueEntry ( sort(keys(%main::DeliveryMethods)) ) {
$Value = (defined($DeliveryMethod) && ($DeliveryMethod eq $ValueEntry)) ? "SELECTED" : "";
print(" $main::DeliveryMethods{$ValueEntry}\n");
@@ -4849,11 +4855,11 @@
&& !(defined($main::FormData{'OverWrite'}) && ($main::FormData{'OverWrite'} eq "yes")) ) {
# There is already a saved search with this name, so we suggest corrective action to the user.
- print(" Saving a Search: \n");
- print(" Sorry, there is already a saved search with this name. \n");
+ print(" Čuvanje upita: \n");
+ print(" Već postoji upit pod ovim imenom. \n");
print("\n");
- print("Click 'back' on your browser, change the 'search name' and try again, \n");
- print("alternatively you can check the box which allows you to automatically over-write a saved search with the same name.\n");
+ print("Kliknite 'back' u browseru, promijenite 'Naziv' i pokušajte ponovo, \n");
+ print("ili kliknuti na kvadratić koji vam omogućava da automatski presnimite sačuvani upit s istim imenom.\n");
print("
\n");
goto bailFromSetSaveSearch;
@@ -4867,13 +4873,13 @@
if ( !defined($Value) && (defined($main::FormData{'Regular'}) && ($main::FormData{'Regular'} eq "yes")) ) {
# Regular delivery was requested, but the email address was not specified in the settings
- print("
Saving a Search: \n");
- print(" Sorry, your email address is not specified in your settings. \n");
+ print(" Čuvanje upita: \n");
+ print(" E-mail adresa nije specificirana u vašim postavkama. \n");
print("\n");
- print("You need to specify your email address in your settings if you want this search to run on a regular basis, \n");
- print("without your email address, we are not able to send you the search result.
\n");
- print("Click the 'Settings' option from the menu sidebar, fill in your email address and save the settings, \n");
- print("then click 'back' on your browser three times to go back to the form which allows you to save a search.\n");
+ print("Potrebno je specificirati e-mail adresu ukoliko želite da se pretraživanje po ovom upitu odvije periodično. \n");
+ print("bez e-mail adrese, nismo vam u mogućnosti isporučiti rezultate.
\n");
+ print("Kliknite na 'Korisničke postavke' , upišite e-mail adresu i sačuvajte postavke, \n");
+ print("nakon toga kliknite na 'back' u svom browseru tri puta kako biste se vratili na formu koja vam nudi da sačuvate upit.\n");
print("
\n");
goto bailFromSetSaveSearch;
@@ -5000,7 +5006,7 @@
# Print out the saved searches
- print("
Sačuvana pretraživanja: \n");
+ print(" Sačuvani upiti: \n");
@@ -5016,9 +5022,9 @@
print(" \n");
print("\n");
- print("Aktiviraj označena sačuvana pretraživanja\n");
- print(" Stavi u mirovanje označena sačuvana pretraživanja\n");
- print(" Obriši označena sačuvana pretraživanja\n");
+ print(" Uključi periodično automatsko pretraživanje po odabranim upitima\n");
+ print(" Isključi periodično automatsko pretraživanje po odabranim upitima\n");
+ print(" Obriši označene sačuvane upite\n");
print(" \n");
print(" \n");
print(" \n");
@@ -5116,7 +5122,7 @@
}
- print(" [ Otvori formu za pretraživanje s upisanim ovim pretraživanjem ] \n");
+ print(" [ Otvori formu za pretraživanje s upisanim ovim upitom ] \n");
}
print("
\n");
@@ -5253,13 +5259,13 @@
# Set the title
if ( $ENV{'PATH_INFO'} eq "/DeleteSavedSearch" ) {
- $Title = "Obriši sačuvana pretraživanja";
+ $Title = "Brisanje sačuvanih pretraživanja";
}
elsif ( $ENV{'PATH_INFO'} eq "/ActivateSavedSearch" ) {
- $Title = "Aktiviraj sačuvana pretraživanja";
+ $Title = "Uključivanje automatskog periodičnog pretraživanja";
}
elsif ( $ENV{'PATH_INFO'} eq "/SuspendSavedSearch" ) {
- $Title = "Stavi u mirovanje sačuvana pretraživanja";
+ $Title = "Isključivanje automatskog periodičnog pretraživanja";
}
@@ -5274,9 +5280,9 @@
# Check to see if the saved search object is defined
if ( ! defined($main::FormData{'SavedSearchObject'}) ) {
# Could not find the saved search object
- print(" Sorry, no searches were selected. \n");
+ print("Niste odabrali niti jedan upit. \n");
print("\n");
- 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");
print("
\n");
goto bailFromProcessSavedSearch;
}
@@ -5305,10 +5311,10 @@
if ( $ENV{'PATH_INFO'} eq "/DeleteSavedSearch" ) {
if ( unlink($SavedSearchFilePath) ) {
- printf("
Successfully deleted: %s\n", $Value{'SearchName'});
+ printf("
Uspješno pobrisano: %s\n", $Value{'SearchName'});
}
else {
- printf("
Failed to delete: %s\n", $Value{'SearchName'});
+ printf("
Nije pobrisano: %s\n", $Value{'SearchName'});
}
}
elsif ( ($ENV{'PATH_INFO'} eq "/ActivateSavedSearch") || ($ENV{'PATH_INFO'} eq "/SuspendSavedSearch") ) {
@@ -5322,12 +5328,12 @@
$Value{'SearchStatus'} = ($ENV{'PATH_INFO'} eq "/ActivateSavedSearch") ? "Active" : "Inactive" ;
if ( &iSaveXMLFileFromHash($SavedSearchFilePath, "SavedSearch", %Value) ) {
- printf("
Successfully %s: %s\n",
- ($ENV{'PATH_INFO'} eq "/ActivateSavedSearch") ? "activated" : "suspended", $Value{'SearchName'});
+ printf("
Uspješno %s: %s\n",
+ ($ENV{'PATH_INFO'} eq "/ActivateSavedSearch") ? "uključeno" : "isključeno", $Value{'SearchName'});
}
else {
- printf("
Failed to %s: %s\n",
- ($ENV{'PATH_INFO'} eq "/ActivateSavedSearch") ? "activated" : "suspended", $Value{'SearchName'});
+ printf("
Nije %s: %s\n",
+ ($ENV{'PATH_INFO'} eq "/ActivateSavedSearch") ? "uključeno" : "isključeno", $Value{'SearchName'});
}
}
}
@@ -5429,7 +5435,7 @@
# Print up the title
- print("
Snimanje foldera s dokumentima: \n");
+ print(" Kreiranje korisničkog foldera: \n");
# Print up the form
printf("