10 my $keywords = $input->param('keyword');
11 my $offset = $input->param('offset');
12 my $num = $input->param('num');
18 print $input->redirect('addbooks.pl');
20 if (! $offset) { $offset = 0 };
21 if (! $num) { $num = 10 };
23 $search{'keyword'}=$keywords;
24 ($count, @results) = KeywordSearch(undef,'intra',\%search,$num,$offset);
26 if ($count < ($offset + $num)) {
29 $total = $offset + $num;
34 print startmenu('acquisitions');
37 <font size="6"><em>Biblio Search Results</em></font><br />
39 You searched on <b>keywords $keywords,</b> $count results found <br />
40 Results $offset to $total displayed
42 <h2><a href="addbiblio.pl">Add New Biblio</a></h2>
45 <table border="0" cellspacing="0" cellpadding="5">
46 <tr valign=top bgcolor=#cccc99>
47 <td background="/images/background-mem.gif"><b>TITLE</b></td>
48 <td background="/images/background-mem.gif"><b>AUTHOR</b></td>
49 <td background="/images/background-mem.gif"><b>©</b></td>
53 for (my $i = 0; $i < ($total - $offset); $i++) {
56 <tr valign="top" bgcolor="#ffffcc">
60 <tr valign="top" bgcolor="#ffffff">
65 <td><a href="additem.pl?biblionumber=$results[$i]->{'biblionumber'}">$results[$i]->{'title'}</a></td>
66 <td><a href="additem.pl?biblionumber=$results[$i]->{'biblionumber'}">$results[$i]->{'author'}</a></td>
67 <td>$results[$i]->{'copyrightdate'}</td>
73 <tr valign=top bgcolor=#cccc99>
74 <td background="/images/background-mem.gif"> </td>
75 <td background="/images/background-mem.gif"> </td>
76 <td background="/images/background-mem.gif"> </td>
82 for (my $i = 0; ($i * $num) < $count; $i++) {
83 my $newoffset = $i * $num;
84 my $shownumber = $i + 1;
86 <a href="keywordsearch.pl?keyword=$keywords&offset=$newoffset&num=$num">$shownumber</a>
93 <a href="keywordsearch.pl?keyword=$keywords&offset=$offset&num=5">5</a>
94 <a href="keywordsearch.pl?keyword=$keywords&offset=$offset&num=10">10</a>
95 <a href="keywordsearch.pl?keyword=$keywords&offset=$offset&num=20">20</a>
96 <a href="keywordsearch.pl?keyword=$keywords&offset=$offset&num=50">50</a>