X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=cataloguing%2Fz3950_search.pl;h=d3a3c53e191589bce17289453ccb916580112fd0;hb=2b1ffd66bb88d13ac755ad1cb1aa7d86d70dc893;hp=05f5f2b8996694429c2e64d5b933910f3f379ef7;hpb=9c0b2e408b496b999cdbede92e651f3aef588209;p=koha-ffzg.git diff --git a/cataloguing/z3950_search.pl b/cataloguing/z3950_search.pl index 05f5f2b899..d3a3c53e19 100755 --- a/cataloguing/z3950_search.pl +++ b/cataloguing/z3950_search.pl @@ -20,7 +20,7 @@ use strict; use warnings; -use CGI qw( -utf8 ); +use CGI; use C4::Auth; use C4::Output; @@ -53,7 +53,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user({ template_name => "cataloguing/z3950_search.tmpl", query => $input, type => "intranet", - authnotrequired => 1, flagsrequired => { catalogue => 1 }, }); @@ -74,7 +73,7 @@ $template->param( ); if ( $op ne "do_search" ) { - my $sth = $dbh->prepare("SELECT id,host,name,checked FROM z3950servers ORDER BY rank, name"); + my $sth = $dbh->prepare("SELECT id,host,name,checked FROM z3950servers WHERE recordtype <> 'authority' ORDER BY rank, name"); $sth->execute(); my $serverloop = $sth->fetchall_arrayref( {} ); $template->param( @@ -94,7 +93,6 @@ if ( @id==0 ) { } my $pars= { - random => $input->param('random') || rand(1000000000), biblionumber => $biblionumber, page => $page, id => \@id, @@ -106,8 +104,8 @@ my $pars= { subject => $subject, lccall => $lccall, controlnumber => $controlnumber, - stdid => 0, - srchany => 0, + stdid => $stdid, + srchany => $srchany, }; Z3950Search($pars, $template); output_html_with_http_headers $input, $cookie, $template->output;