--- search/Search.cgi 2002/09/06 23:48:41 1.25 +++ search/Search.cgi 2002/10/24 18:25:20 1.26 @@ -3281,16 +3281,18 @@ $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'}) ) { + 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"); @@ -3324,7 +3326,11 @@ # 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'}) ) { @@ -7399,7 +7405,7 @@ foreach my $ItemEntry ( @_ ) { $Value{$ItemEntry} = $ItemEntry; } - + print("\n"); print "
Označi @@ -7443,6 +7449,7 @@ } print("
\n"); + } #--------------------------------------------------------------------------