--- search/Search.cgi 2002/06/24 16:39:10 1.7 +++ search/Search.cgi 2002/10/24 18:25:20 1.26 @@ -1,19 +1,21 @@ #!/usr/bin/perl -w #***************************************************************************** -# Copyright (C) 1993-2000, FS Consulting Inc. All rights reserved * -# * -# * -# This notice is intended as a precaution against inadvertent publication * -# and does not constitute an admission or acknowledgement that publication * -# has occurred or constitute a waiver of confidentiality. * -# * -# This software is the proprietary and confidential property * -# of FS Consulting, Inc. * +# Copyright (C) 1993-2000, FS Consulting Inc. All rights reserved * +# * +# * +# This notice is intended as a precaution against inadvertent publication * +# and does not constitute an admission or acknowledgement that publication * +# has occurred or constitute a waiver of confidentiality. * +# * +# This software is the proprietary and confidential property * +# of FS Consulting, Inc. * #***************************************************************************** #print "Content-type: text/plain\n\n"; +#use Data::Dumper; + #-------------------------------------------------------------------------- # # Author: Francois Schiettecatte (FS Consulting, Inc.) @@ -230,25 +232,6 @@ $main::QueryReportMimeType = "application/x-wais-report"; - -# 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', -); - - # Array of mime type names, we use this to map # mime types to mime type names (which are more readable) %main::MimeTypeNames = ( @@ -409,7 +392,8 @@ print("$JavaScript\n"); } print ''; - print("\n\n"); + print ''; + print("\n\n"); # Send the header snippet file @@ -519,47 +503,23 @@ } } - if ( %MenuBar && defined($MenuBar{'GetSearch'}) ) { - print("\"Search\""); - - - } - else { - - print(""); - + my $DISABLED; - - } + $DISABLED = ( %MenuBar && defined($MenuBar{'GetSearch'}) ) ? "DISABLED" : ""; + print(""); if ( defined($main::RemoteUser) ) { - if ( %MenuBar && defined($MenuBar{'ListSearchHistory'}) ) { - print("\"Search"); - } - else { - print(""); - } + $DISABLED = ( %MenuBar && defined($MenuBar{'ListSearchHistory'}) ) ? "DISABLED" : ""; + print""; - if ( %MenuBar && defined($MenuBar{'ListSavedSearch'}) ) { - print("\"Saved"); - } - else { - print(""); - } + $DISABLED = ( %MenuBar && defined($MenuBar{'ListSavedSearch'}) ) ? "DISABLED" : ""; + print""; - if ( %MenuBar && defined($MenuBar{'ListFolder'}) ) { - print("\"Doument"); - } - else { - print(""); - } - - if ( %MenuBar && defined($MenuBar{'GetUserSettings'}) ) { - print("\"My"); - } - else { - print(""); - } + $DISABLED = ( %MenuBar && defined($MenuBar{'ListFolder'}) ) ? "DISABLED" : ""; + print""; + + $DISABLED = ( %MenuBar && defined($MenuBar{'GetUserSettings'}) ) ? "DISABLED" : ""; + print""; } @@ -1549,9 +1509,17 @@ # Initialize the search string $SearchString = ""; + # tip gradje + if ( defined($main::FormData{'tip'}) ) { + my @t; + foreach my $tip ( split(/\0/, $main::FormData{'tip'}) ) { + push @t,"tip=$tip"; + } + $SearchString .= "(".join(" or ",@t).") and "; + } # Add the search terms - $SearchString .= defined($Content{'Any'}) ? ((($SearchString ne "") ? " AND " : "") . $Content{'Any'}) : ""; + $SearchString .= defined($Content{'Any'}) ? ((($SearchString ne "") ? " AND " : "") . nuke_accents($Content{'Any'}) ) : ""; # Add the generic field names @@ -1559,20 +1527,22 @@ my ($FieldName) = "FieldName" . $Value; my ($FieldContent) = "FieldContent" . $Value; + + if ( defined($Content{$FieldName}) && defined($Content{$FieldContent}) ) { - if ( defined($Content{$FieldName}) ) { - $SearchString .= defined($Content{$FieldContent}) ? - (($SearchString ne "") ? " AND " : "") . "$Content{$FieldName}=(" . $Content{$FieldContent} . ")" : ""; + if ($Content{$FieldName} eq "ISBN") { + # fix stupid problem with dashes in data + $Content{$FieldContent} .= "*"; + } + + $SearchString .= ($SearchString ne "") ? " AND " : ""; + $SearchString .= "$Content{$FieldName}=(" . nuke_accents($Content{$FieldContent}) . ")"; } } - # nuke accented chars - $SearchString =~ tr/ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁčáíóúĄąŽžĘęźČşÁÂĚŞŻżĂăđĐĎËďŇÍÎěŢŮÓÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘¸¨˙Řř/CueaauccleOoiZACELlooLlSsOUTtLcaiouAaZzEezCsAAESZzAadDDEdNIIeTUOoNnnSsRUrUyYt'-".'',"'Rr/; - # 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'}"; @@ -1992,10 +1962,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; } @@ -2016,6 +1988,8 @@ $Headline =~ s/ //gs; $Headline =~ s/<.*?>//gs; $Headline =~ s/\s+/ /gs; + # decode some basic html from headline + $Headline =~ s/<(\/?[bi])>/<$1>/g; # Create a generic link for this document $Value = ""; @@ -2046,7 +2020,8 @@ # Put up the headline and the score, this one links to the document if ( $HTML ) { - print("$SelectorText $Headline ( $main::DatabaseDescriptions{$Value{'Database'}} )
\n"); +# print("$SelectorText $Headline ( $main::DatabaseDescriptions{$Value{'Database'}} )
\n"); + print("$SelectorText $Headline
\n"); # if ( defined($URL) && ($URL ne "") ) { # $Value = (length($URL) > $main::DefaultMaxVisibleUrlLength) ? substr($URL, 0, $main::DefaultMaxVisibleUrlLength) . "..." : $URL; @@ -2110,18 +2085,15 @@ my (@Words, $Word, @OffsetPairs, $OffsetPair, %Offsets, $Offset, $Start, $End, $OldStart, $OldEnd, $CurrentSummaryLength); my ($DatabaseSummaryFilterKey, $DatabaseSummaryFilterFunction); my ($Value, %Value, @Values, $ValueEntry); - - + + # Check input parameters if ( !defined($SearchResults) || !%Content ) { return (0); } - - # Split the search results text into a search results list @SearchResults = split(/\n/, $SearchResults); - # First we count up the number of results and scoop up @@ -2229,7 +2201,7 @@ print("\n"); # Print the selector - print("\n", + printf("\n", ($ResultCount > 0) ? $ResultCount : "no"); 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 ) { @@ -2244,7 +2216,7 @@ if ( $main::ConfigurationData{'allow-relevance-feedback-searches'} eq "yes" ) { print("
Pronađeno: %s rezultata (Maksimalni broj podešen na: $Content{'Max'} )
Pronađeno: %s rezultata (Maksimalni broj podešen na: $Content{'Max'} )
\n"); @@ -2431,7 +2403,7 @@ } - +### FIX:: ADD SORT HERE if ( $ResultCount > 0 ) { # Loop over each entry in the hits list @@ -2689,9 +2661,12 @@ if ( $HTML ) { print("\n"); #print(" $SelectorText $Score $Headline ( $main::DatabaseDescriptions{$Database} )
"); + # decode some basic html from headline + $Headline =~ s/<(\/?[bi])>/<$1>/g; + print(" $SelectorText $Headline
 "); } else { - printf("%3d $Headline ($main::DatabaseDescriptions{$Database})\n", $Score); + printf("%3d $Headline \n", $Score); } if (0) { ## don't display description @@ -2970,24 +2945,9 @@ # Make sure that we send the header - $Value = ($ENV{'PATH_INFO'} eq "/GetExpandedSearch") ? "Pretraživanje s više kriterija" : "Jednostavno pretraživanje"; - my $JavaScript = ' - '; + $Value = ($ENV{'PATH_INFO'} eq "/GetExpandedSearch") ? "Složeno pretraživanje" : "Jednostavno pretraživanje"; - &vSendHTMLHeader($Value, $JavaScript); + &vSendHTMLHeader($Value, $main::JavaScript_SetChecked); undef(%Value); $Value{'GetSearch'} = "GetSearch"; @@ -3026,11 +2986,11 @@ if ( $ENV{'PATH_INFO'} eq "/GetExpandedSearch" ) { print("\n"); - print(" Kliknite na trokutić da biste suzili formu.\n"); + print(" Jednostavno pretraživanje (kliknite na trokutić)\n"); } else { print("\n"); - print(" Kliknite na trokutić da biste proširili formu.\n"); + print(" Složeno pretraživanje (kliknite na trokutić)\n"); } print("\n"); @@ -3038,7 +2998,7 @@ # Send the start of the form and the buttons print("\n"); - print("
\n"); + print(" \n"); print("\n"); print("
\n"); @@ -3058,11 +3018,13 @@ for (my $field=1; $field<= $nr_fields; $field++) { - print(""); + print ""; if ($field == 1 ) { - print ("Pretraži u određenom polju:"); + print ""; + print "Pretraži u odabranom polju:"; + print ""; } - print (""); + print (""); print (" \n"); + print(" \n"); } @@ -3094,6 +3055,11 @@ print("
\n"); print("\n"); @@ -3263,8 +3227,6 @@ my ($DatabaseRelevanceFeedbackFilterKey, $DatabaseRelevanceFeedbackFilterFunction); my (@Values, %Value, $Value); - - # Check to see if there are any documents selected, if there are, they need # to be converted to RF documents before we put up the header, this is because # the header creates a search link from existing search fields, we also deduplicate @@ -3319,21 +3281,23 @@ $main::FormData{'Database'} = join("\0", keys(%Databases)); } - + # now add all databases that had to be included always + foreach (my $db = @main::always_selected_databases) { + $Databases{$db} = $Value{$db}; + } # Make sure that we send the header &vSendHTMLHeader("Rezultati pretraživanja", undef); undef(%Value); &vSendMenuBar(%Value); - # 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"); + if ( !defined($main::FormData{'Database'}) && $#main::always_selected_databases < 0 ) { + 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; } @@ -3362,14 +3326,17 @@ # Convert all the '\0' to ',' $Databases =~ tr/\0/,/; - + + # add always selected databases + if (@main::always_selected_databases) { + $Databases .= ",".join(",",@main::always_selected_databases); + } # Add the max doc restriction if ( !defined($main::FormData{'Max'}) ) { $main::FormData{'Max'} = $main::DefaultMaxDoc; } - # Generate the search string $SearchString = &sMakeSearchString(%main::FormData); @@ -3780,7 +3747,7 @@ if ( $main::ConfigurationData{'allow-relevance-feedback-searches'} eq "yes" ) { print("

Postavke:

\n"); print("\n"); - print("\n"); + print("\n"); # Send the buttons - print("\n"); + print("\n"); @@ -4079,14 +4046,14 @@ print("\n"); - print("\n"); + print("\n"); # Send a pull-down which allows the user to select which search form to default to print("\n"); # Send a pull-down which allows the user to select how many previous searches to store @@ -4106,14 +4073,14 @@ print("\n"); - print("\n"); @@ -4144,9 +4111,9 @@ } - print("\n"); +# print("\n"); - print("\n"); +# print("\n"); # Send a pull-down which allows the user to select whether to display summaries or not, and how long we want them if ( defined($main::ConfigurationData{'allow-similiar-search'}) && ($main::ConfigurationData{'allow-similiar-search'} eq "yes") ) { @@ -4167,10 +4134,10 @@ print("\n"); - print("\n"); + print("\n"); # Send a pull-down which allows the user to select the automatic search frequency (default to weekly) - print("\n"); # Send a pull-down which allows the user to select the automatic search delivery format - print("\n"); # Send a pull-down which allows the user to select the automatic delivery method - print("\n"); + print("\n"); print("\n"); @@ -4740,9 +4707,9 @@ print("\n"); # Send the search name and search description fields - print("\n"); + print("\n"); - print("\n"); + print("\n"); if ( defined($main::FormData{'RfDocument'}) ) { print("\n"); @@ -4753,7 +4720,7 @@ print("\n"); - print("\n"); + print("\n"); @@ -4762,10 +4729,10 @@ print("\n"); - print("\n"); + print("\n"); # Send a pull-down which allows the user to select the automatic search frequency - print("\n"); # Send a pull-down which allows the user to select the automatic search delivery format - print("\n"); # Send a pull-down which allows the user to select the automatic search delivery method - print("\n"); @@ -5148,20 +5115,20 @@ if ( defined($SearchFrequency) || defined($DeliveryFormat) || defined($DeliveryMethod) ) { - print("\n"); - print("\n"); - print("\n"); + print("\n"); + print("\n"); + print("\n"); } $Value = &sGetPrintableDateFromTime($CreationTime); - print("\n"); + print("\n"); if ( defined($SearchFrequency) || defined($DeliveryFormat) || defined($DeliveryMethod) ) { if ( defined($LastRunTime) ) { $Value = &sGetPrintableDateFromTime($LastRunTime); - print("\n"); + print("\n"); } printf("", @@ -5169,13 +5136,13 @@ } - print("\n"); + print("\n"); } print("

Search Preferences:
Postavke pretraživanja:
Forma za pretraživanje:
Odabrane baze:
Označite baze koje uvijek želite pretraživati: \n"); + print("
Označite knjižnice koje uvijek želite pretraživati:
\n"); # Parse out the database names and put them into a # hash table, they should be separated with a '\n' if ( defined($SelectedDatabases) && ($SelectedDatabases ne "") ) { @ItemList = split(",", $SelectedDatabases); } - + &ShowDatabaseCheckBoxes(@ItemList); print("


Document Retrieval Preferences:
Document Retrieval Preferences:

Saved Searches Defaults:
Postavke sačuvanih upita:
Saved search frequency:
Frekvencija pretraživanja:
Saved search delivery format:
Format za isporuku rezultata:
Saved search delivery method:
Metoda isporuke rezultata:


Search Name (required):
Naziv (obavezno):
Search Description:
Opis:

Kliknite na ovaj kvadratić ako želite postojeći folder s istim imenom zamijeniti ovim novim:
Kliknite na ovaj kvadratić ako želite postojeći upit s istim imenom zamijeniti ovim novim:

Check to run this search on a regular basis:
Kliknite ovaj kvadratić ukoliko želite automatsko periodičko pretraživanje po ovom upitu:
Select the search frequency:
Odaberite frekvenciju automatskog pretraživanja:
Select the delivery format:
Odaberite format za isporuku rezultata pretraživanja:
Select the delivery method:
Odaberite metodu isporuke:
\n"); print("\n"); print("\n"); print("
Run: $SearchFrequency
Delivery format: $main::DeliveryFormats{$DeliveryFormat}
Delivery method : $main::DeliveryMethods{$DeliveryMethod}
Automatsko pokretanje: $SearchFrequency
Format isporuke: $main::DeliveryFormats{$DeliveryFormat}
Methoda isporuke: $main::DeliveryMethods{$DeliveryMethod}
Datum kreiranja: $Value
Datum kreiranja: $Value
Last Run: $Value
Zadnje pokretanje: $Value
Status: %s
[ Otvori formu za pretraživanje s upisanim ovim pretraživanjem ]
[ Otvori formu za pretraživanje s upisanim ovim upitom ]
\n"); } else { - print("

Sorry, currently, there are no saved searches.

\n"); + print("

Trenutno nemate sačuvanih upita!.

\n"); } @@ -5306,13 +5273,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"; } @@ -5327,9 +5294,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; } @@ -5358,10 +5325,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") ) { @@ -5375,12 +5342,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'}); } } } @@ -5482,7 +5449,7 @@ # Print up the title - print("

Snimanje foldera s dokumentima:

\n"); + print("

Kreiranje korisničkog foldera:

\n"); # Print up the form printf("
\n"); @@ -5491,7 +5458,7 @@ print("\n"); # Send the buttons - print("\n"); + print("\n"); print("\n"); @@ -5531,7 +5498,7 @@ # Delete the old content delete($main::FormData{'Documents'}); - +###FIX if ( defined($main::FormData{'Document'}) ) { print("\n"); &bDisplayDocuments("Document", $main::FormData{'Document'}, "Document", undef, undef, 1); @@ -5868,9 +5835,9 @@ } } - print("

Saving a Document Folder:

\n"); + print("

Čuvanje korisničkog foldera:

\n"); print("

\n"); - print("

Your document folder was successfully saved.

\n"); + print("

Vaš folder je uspješno sačuvan!

\n"); } @@ -5942,7 +5909,7 @@ # Print out the document folders - print("

Folderi:

\n"); + print("

Korisnički folderi:

\n"); # Get the document folder hash @@ -6339,7 +6306,7 @@ undef(%Value); &vSendMenuBar(%Value); - print("

Document Folder:

\n"); + print("

Korisnički folder:

\n"); # Start the form @@ -6351,15 +6318,15 @@ print("

\n"); print("\n"); # Print the folder description - $ArticleFolder{'FolderDescription'} = defined($ArticleFolder{'FolderDescription'}) ? $ArticleFolder{'FolderDescription'} : "(No description defined)"; + $ArticleFolder{'FolderDescription'} = defined($ArticleFolder{'FolderDescription'}) ? $ArticleFolder{'FolderDescription'} : "(Nije naveden)"; $ArticleFolder{'FolderDescription'} =~ s/\n/
/g; $ArticleFolder{'FolderDescription'} =~ s/\r/
/g; print("\n"); @@ -6405,7 +6372,7 @@ print("\n"); $Value = &sGetPrintableDateFromTime($ArticleFolder{'UpdateTime'}); - print("\n"); + print("\n"); print("\n"); @@ -7153,34 +7120,34 @@ } - if ( defined($main::FormData{'GetSearch.x'}) ) { + if ( defined($main::FormData{'GetSearch'}) ) { $ENV{'PATH_INFO'} = "/GetSearch"; - delete($main::FormData{'GetSearch.x'}); - delete($main::FormData{'GetSearch.y'}); + delete($main::FormData{'GetSearch'}); + delete($main::FormData{'GetSearch'}); } - if ( defined($main::FormData{'ListSearchHistory.x'}) ) { + if ( defined($main::FormData{'ListSearchHistory'}) ) { $ENV{'PATH_INFO'} = "/ListSearchHistory"; - delete($main::FormData{'ListSearchHistory.x'}); - delete($main::FormData{'ListSearchHistory.y'}); + delete($main::FormData{'ListSearchHistory'}); + delete($main::FormData{'ListSearchHistory'}); } - if ( defined($main::FormData{'ListSavedSearch.x'}) ) { + if ( defined($main::FormData{'ListSavedSearch'}) ) { $ENV{'PATH_INFO'} = "/ListSavedSearch"; - delete($main::FormData{'ListSavedSearch.x'}); - delete($main::FormData{'ListSavedSearch.y'}); + delete($main::FormData{'ListSavedSearch'}); + delete($main::FormData{'ListSavedSearch'}); } - if ( defined($main::FormData{'ListFolder.x'}) ) { + if ( defined($main::FormData{'ListFolder'}) ) { $ENV{'PATH_INFO'} = "/ListFolder"; - delete($main::FormData{'ListFolder.x'}); - delete($main::FormData{'ListFolder.y'}); + delete($main::FormData{'ListFolder'}); + delete($main::FormData{'ListFolder'}); } - if ( defined($main::FormData{'GetUserSettings.x'}) ) { + if ( defined($main::FormData{'GetUserSettings'}) ) { $ENV{'PATH_INFO'} = "/GetUserSettings"; - delete($main::FormData{'GetUserSettings.x'}); - delete($main::FormData{'GetUserSettings.y'}); + delete($main::FormData{'GetUserSettings'}); + delete($main::FormData{'GetUserSettings'}); } @@ -7420,6 +7387,8 @@ my ($FieldName, $FieldDescription, undef) = split(/\t/, $FieldInformation, 3); $main::SearchFieldDescriptions{$FieldName} = $FieldDescription; } + } else { + &vLog("Error - cant read database description from '$Database'\n"); } } @@ -7436,8 +7405,14 @@ foreach my $ItemEntry ( @_ ) { $Value{$ItemEntry} = $ItemEntry; } - + print("
Odabranima se smatraju svi rezultati ukoliko niste učinili nikakav dodatan odabir. \n"); print("\n"); @@ -6395,7 +6362,7 @@ print("
Naziv: $ArticleFolder{'FolderName'}
Opis: $ArticleFolder{'FolderDescription'}
Datum kreiranja: $Value
Datum zadnje promijene: $Value
Datum zadnje promijene: $Value

\n"); + print ""; my @html_database; @@ -7474,4 +7449,16 @@ } print("
+ Označi + sve, + niti jednu. + +
\n"); + } + +#-------------------------------------------------------------------------- +# +sub nuke_accents { + my $tmp = $_[0]; + $tmp =~ tr/ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁčáíóúĄąŽžĘęźČşÁÂĚŞŻżĂăđĐĎËďŇÍÎěŢŮÓÔŃńňŠšŔÚŕŰýÝţ´˝˛ˇ˘¸¨˙Řř/CueaauccleOoiZACELlooLlSsOUTtLcaiouAaZzEezCsAAESZzAadDDEdNIIeTUOoNnnSsRUrUyYt'".'',"'Rr/; + # convert search string to lower case -> make search case insensitive + $tmp =~ tr/A-Z/a-z/; + return $tmp; +} +