3 # This is a completely new Z3950 clients search using async ZOOM -TG 02/11/06
4 # Copyright 2000-2002 Katipo Communications
6 # This file is part of Koha.
8 # Koha is free software; you can redistribute it and/or modify it under the
9 # terms of the GNU General Public License as published by the Free Software
10 # Foundation; either version 2 of the License, or (at your option) any later
13 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
14 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License along
18 # with Koha; if not, write to the Free Software Foundation, Inc.,
19 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
35 my $dbh = C4::Context->dbh;
36 my $error = $input->param('error');
37 my $biblionumber = $input->param('biblionumber') || 0;
38 my $frameworkcode = $input->param('frameworkcode');
39 my $title = $input->param('title');
40 my $author = $input->param('author');
41 my $isbn = $input->param('isbn');
42 my $issn = $input->param('issn');
43 my $lccn = $input->param('lccn');
44 my $lccall = $input->param('lccall');
45 my $subject = $input->param('subject');
46 my $dewey = $input->param('dewey');
47 my $controlnumber = $input->param('controlnumber');
48 my $stdid = $input->param('stdid');
49 my $srchany = $input->param('srchany');
50 my $op = $input->param('op')||'';
52 my $page = $input->param('current_page') || 1;
53 $page = $input->param('goto_page') if $input->param('changepage_goto');
55 my ( $template, $loggedinuser, $cookie ) = get_template_and_user({
56 template_name => "cataloguing/z3950_search.tmpl",
60 flagsrequired => { catalogue => 1 },
64 $template->param( frameworkcode => $frameworkcode, );
72 controlnumber=> $controlnumber,
75 biblionumber => $biblionumber,
80 if ( $op ne "do_search" ) {
81 my $sth = $dbh->prepare("SELECT id,host,name,checked FROM z3950servers ORDER BY rank, name");
83 my $serverloop = $sth->fetchall_arrayref( {} );
85 serverloop => $serverloop,
88 output_html_with_http_headers $input, $cookie, $template->output;
92 my @id = $input->param('id');
94 # empty server list -> report and exit
95 $template->param( emptyserverlist => 1 );
96 output_html_with_http_headers $input, $cookie, $template->output;
101 random => $input->param('random') || rand(1000000000),
102 biblionumber => $biblionumber,
111 controlnumber => $controlnumber,
115 Z3950Search($pars, $template);
116 output_html_with_http_headers $input, $cookie, $template->output;