3 #script to display detailed information
14 my $type=$input->param('type');
15 (-e "opac") && ($type='opac');
17 print startmenu($type);
20 my $subject=$input->param('subject');
21 #my $title=$input->param('title');
33 my @items=subsearch(\$blah,$subject);
40 print mktablerow(5,$main,bold('TITLE'),bold('AUTHOR'),bold('COUNT'),bold('LOCATION'),' ',"/images/background-mem.gif");
42 print mktablerow(5,$main,bold('TITLE'),bold('AUTHOR'),bold('COUNT'),bold('BRANCH'),' ');
46 my @results=split('\t',$items[$i]);
47 $results[0]=mklink("/cgi-bin/koha/detail.pl?bib=$results[2]&type=$type",$results[0]);
51 $results[1]=mklink("/cgi-bin/koha/search.pl?author=$word&type=$type",$results[1]);
52 my ($count,$lcount,$nacount,$fcount,$scount)=itemcount($env,$results[2]);
55 $results[4]=$results[4]."On Loan";
57 $results[4].=" $nacount";
62 $results[4]=$results[4]." Levin";
64 $results[4].=" $lcount";
69 $results[4]=$results[4]." Foxton";
71 $results[4].=" $fcount";
76 $results[4]=$results[4]." Shannon";
78 $results[4].=" $scount";
83 $results[6]=mklink("/cgi-bin/koha/request.pl?bib=$results[2]","Request");
86 print mktablerow(5,$secondary,$results[0],$results[1],$results[3],$results[4],$results[6]);
89 print mktablerow(5,'white',$results[0],$results[1],$results[3],$results[4],$results[6]);