my $input = new CGI;
my $dbh = C4::Context->dbh;
my $error = $input->param('error');
+my $authid = $input->param('authid') || 0;
my $nameany = $input->param('nameany');
my $authorany = $input->param('authorany');
my $authorcorp = $input->param('authorcorp');
subject => $subject,
subjectsubdiv => $subjectsubdiv,
srchany => $srchany,
+ authid => $authid,
);
if ( $op ne "do_search" ) {
- my $sth = $dbh->prepare("SELECT id,host,name,checked FROM z3950servers WHERE recordtype = 'authority' ORDER BY rank, name");
+ my $sth = $dbh->prepare("SELECT id,host,servername,checked FROM z3950servers WHERE recordtype = 'authority' AND servertype='zed' ORDER BY rank, servername");
$sth->execute();
my $serverloop = $sth->fetchall_arrayref( {} );
$template->param(
subject => $subject,
subjectsubdiv => $subjectsubdiv,
srchany => $srchany,
+ authid => $authid,
};
Z3950SearchAuth($pars, $template);
output_html_with_http_headers $input, $cookie, $template->output;