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 with
18 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
19 # Suite 330, Boston, MA 02111-1307 USA
29 my $isbn = $input->param('isbn');
30 my $offset = $input->param('offset');
31 my $num = $input->param('num');
32 my $showoffset = $offset + 1;
38 print $input->redirect('addbooks.pl');
44 if (! $num) { $num = 10 };
45 ($count, @results) = isbnsearch($isbn);
47 if ($count < ($offset + $num)) {
50 $total = $offset + $num;
55 print startmenu('acquisitions');
58 <font size="6"><em>Biblio Search Results</em></font><br />
60 You searched on <b>ISBN $isbn,</b> $count results found <br />
61 Results $showoffset to $total displayed
63 <h2><a href="addbiblio.pl">Add New Biblio</a></h2>
66 <table border="0" cellspacing="0" cellpadding="5">
67 <tr valign=top bgcolor=#cccc99>
68 <td background="/images/background-mem.gif"><b>TITLE</b></td>
69 <td background="/images/background-mem.gif"><b>AUTHOR</b></td>
70 <td background="/images/background-mem.gif"><b>©</b></td>
74 for (my $i = $offset; $i < $total; $i++) {
77 <tr valign="top" bgcolor="#ffffcc">
81 <tr valign="top" bgcolor="#ffffff">
86 <td><a href="additem.pl?biblionumber=$results[$i]->{'biblionumber'}">$results[$i]->{'title'}</a></td>
87 <td><a href="additem.pl?biblionumber=$results[$i]->{'biblionumber'}">$results[$i]->{'author'}</a></td>
88 <td>$results[$i]->{'copyrightdate'}</td>
94 <tr valign=top bgcolor=#cccc99>
95 <td background="/images/background-mem.gif"> </td>
96 <td background="/images/background-mem.gif"> </td>
97 <td background="/images/background-mem.gif"> </td>
103 for (my $i = 0; ($i * $num) < $count; $i++) {
104 my $newoffset = $i * $num;
105 my $shownumber = $i + 1;
107 <a href="isbnsearch.pl?isbn=$isbn&offset=$newoffset&num=$num">$shownumber</a>
114 <a href="isbnsearch.pl?isbn=$isbn&offset=$offset&num=5">5</a>
115 <a href="isbnsearch.pl?isbn=$isbn&offset=$offset&num=10">10</a>
116 <a href="isbnsearch.pl?isbn=$isbn&offset=$offset&num=20">20</a>
117 <a href="isbnsearch.pl?isbn=$isbn&offset=$offset&num=50">50</a>