Kumara - predecessor to Koha
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
3.5 KiB

#script to display detailed information
#written 8/11/99
use strict;
#use DBI;
use C4::Search;
use CGI;
use C4::Output;
my $input = new CGI;
print $input->header;
print startpage();
print startmenu();
my $blah;
my $env;
my $subject=$input->param('subject');
#my $title=$input->param('title');
my $type=$input->param('type');
my @items=subsearch(\$blah,$subject);
#print @items;
my $count=@items;
my $i=0;
print center();
print mktablehdr;
print mktablerow(4,'#99cc33',bold('TITLE'),bold('AUTHOR'),bold('COUNT'),bold('LOCATION'),"/images/background-mem.gif");
my $colour=1;
while ($i < $count){
my @results=split('\t',$items[$i]);
my $word=$results[1];
$word=~ s/ //g;
$word=~ s/\,/\,%20/;
my ($count,$lcount,$nacount,$fcount,$scount)=itemcount($env,$results[2]);
if ($nacount > 0){
$results[4]=$results[4]."On Loan 1";
if ($lcount > 0){
$results[4]=$results[4]." L$lcount";
if ($fcount > 0){
$results[4]=$results[4]." F$fcount";
if ($scount > 0){
$results[4]=$results[4]." S$scount";
if ($colour == 1){
print mktablerow(5,'#ffffcc',$results[0],$results[1],$results[3],$results[4],$results[6]);
} else{
print mktablerow(5,'white',$results[0],$results[1],$results[3],$results[4],$results[6]);
print endcenter();
print mktableft();
print endmenu();
print endpage();