3 #script to display detailed information
14 my $type=$input->param('type');
16 print startmenu
($type);
19 my $subject=$input->param('subject');
20 #my $title=$input->param('title');
32 my @items=subsearch
(\
$blah,$subject);
39 print mktablerow
(5,$main,bold
('TITLE'),bold
('AUTHOR'),bold
('COUNT'),bold
('LOCATION'),' ',"/images/background-mem.gif");
41 print mktablerow
(5,$main,bold
('TITLE'),bold
('AUTHOR'),bold
('COUNT'),bold
('BRANCH'),' ');
45 my @results=split('\t',$items[$i]);
46 $results[0]=mklink
("/cgi-bin/koha/detail.pl?bib=$results[2]&type=$type",$results[0]);
50 $results[1]=mklink
("/cgi-bin/koha/search.pl?author=$word&type=$type",$results[1]);
51 my ($count,$lcount,$nacount,$fcount,$scount)=itemcount
($env,$results[2]);
54 $results[4]=$results[4]."On Loan";
56 $results[4].=" $nacount";
61 $results[4]=$results[4]." Levin";
63 $results[4].=" $lcount";
68 $results[4]=$results[4]." Foxton";
70 $results[4].=" $fcount";
75 $results[4]=$results[4]." Shannon";
77 $results[4].=" $scount";
82 $results[6]=mklink
("/cgi-bin/koha/request.pl?bib=$results[2]","Request");
85 print mktablerow
(5,$secondary,$results[0],$results[1],$results[3],$results[4],$results[6]);
88 print mktablerow
(5,'white',$results[0],$results[1],$results[3],$results[4],$results[6]);