#!/usr/bin/perl #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; #whether it is called from the opac of the intranet my $type=$input->param('type'); #setup colours my $main; my $secondary; if ($type eq 'opac'){ $main='#99cccc'; $secondary='#efe5ef'; } else { $main='#cccc99'; $secondary='#ffffcc'; } print startpage(); print startmenu($type); my $blah; my $bib=$input->param('bib'); my $title=$input->param('title'); my $bi=$input->param('bi'); my $data=bibitemdata($bi); my (@items)=itemissues($bi); #print @items; my $count=@items; my $i=0; print center(); print < $data->{'title'} ($data->{'author'})

$data->{'biblioitemnumber'} GROUP - $data->{'description'}

Biblionumber: $bib
Item Type: $data->{'itemtype'}
Loan Length: $data->{'loanlength'}
Rental Charge: $data->{'rentalcharge'}
Classification: $data->{'classification'}$data->{'dewey'}$data->{'subclass'}
ISBN: $data->{'isbn'}
Publisher: $data->{'publishercode'}
Place:
Date: $data->{'publicationdate'}
Pages: $data->{'pages'}
Illus: $data->{'illus'}
No. of Items: $count
printend ; for (my $i=0;$i<$count;$i++){ print <
BARCODE $items[$i]->{'barcode'}

printend ; $items[$i]->{'itemlost'}=~ s/0/No/; $items[$i]->{'itemlost'}=~ s/1/Yes/; $items[$i]->{'withdrawn'}=~ s/0/No/; $items[$i]->{'withdrawn'}=~ s/1/Yes/; $items[$i]->{'replacementprice'}+=0.00; my $year=substr($items[$i]->{'timestamp0'},0,4); my $mon=substr($items[$i]->{'timestamp0'},4,2); my $day=substr($items[$i]->{'timestamp0'},6,2); $items[$i]->{'timestamp0'}="$day/$mon/$year"; my @temp=split('-',$items[$i]->{'dateaccessioned'}); $items[$i]->{'dateaccessioned'}="$temp[2]/$temp[1]/$temp[0]"; @temp=split('-',$items[$i]->{'datelastseen'}); $items[$i]->{'datelastseen'}="$temp[2]/$temp[1]/$temp[0]"; print < Home Branch: $items[$i]->{'homebranch'}
Last seen: $items[$i]->{'datelastseen'}
Last borrowed: $items[$i]->{'timestamp0'}
Currently on issue to: $items[$i]->{'card0'}
Last Borrower 1: $items[$i]->{'card'}
Last Borrower 2: $items[$i]->{'card1'}
Current Branch: $items[$i]->{'holdingbranch'}
Replacement Price: $items[$i]->{'replacementprice'}
Item lost: $items[$i]->{'itemlost'}
paid by:
Notes: $items[$i]->{'itemnotes'}
Renewals: $items[$i]->{'renewals'}
Requests: put in current reserves
waiting:
Accession Date: $items[$i]->{'dateaccessioned'}
Cancelled: $items[$i]->{'withdrawn'}
Total Issues: $items[$i]->{'issues'}
Group Number: $bi
Biblio number: $bib
printend ; } print < printend ; print endcenter(); print endmenu($type); print endpage();