5 #script to display detailed information
9 # Copyright 2000-2002 Katipo Communications
11 # This file is part of Koha.
13 # Koha is free software; you can redistribute it and/or modify it under the
14 # terms of the GNU General Public License as published by the Free Software
15 # Foundation; either version 2 of the License, or (at your option) any later
18 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
19 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
20 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
22 # You should have received a copy of the GNU General Public License along with
23 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
24 # Suite 330, Boston, MA 02111-1307 USA
34 my $type=$input->param('type');
36 print startmenu
($type);
39 my $subject=$input->param('subject');
40 #my $title=$input->param('title');
52 my @items=subsearch
(\
$blah,$subject);
59 print mktablerow
(5,$main,bold
('TITLE'),bold
('AUTHOR'),bold
('COUNT'),bold
('LOCATION'),' ',"/images/background-mem.gif");
61 print mktablerow
(5,$main,bold
('TITLE'),bold
('AUTHOR'),bold
('COUNT'),bold
('BRANCH'),' ');
65 my @results=split('\t',$items[$i]);
66 $results[0]=mklink
("/cgi-bin/koha/detail.pl?bib=$results[2]&type=$type",$results[0]);
70 $results[1]=mklink
("/cgi-bin/koha/search.pl?author=$word&type=$type",$results[1]);
71 my ($count,$lcount,$nacount,$fcount,$scount)=itemcount
($env,$results[2]);
74 $results[4]=$results[4]."On Loan";
76 $results[4].=" $nacount";
81 $results[4]=$results[4]." Levin";
83 $results[4].=" $lcount";
88 $results[4]=$results[4]." Foxton";
90 $results[4].=" $fcount";
95 $results[4]=$results[4]." Shannon";
97 $results[4].=" $scount";
101 if ($type ne 'opac'){
102 $results[6]=mklink
("/cgi-bin/koha/request.pl?bib=$results[2]","Request");
105 print mktablerow
(5,$secondary,$results[0],$results[1],$results[3],$results[4],$results[6]);
108 print mktablerow
(5,'white',$results[0],$results[1],$results[3],$results[4],$results[6]);
115 print endmenu
($type);