3 #script to display detailed information
15 #whether it is called from the opac of the intranet
16 my $type=$input->param('type');
28 print startmenu($type);
31 my $bib=$input->param('bib');
32 my $title=$input->param('title');
33 my $bi=$input->param('bi');
34 my $data=bibitemdata($bi);
36 my (@items)=itemissues($bi);
37 my ($order)=getorder($bi,$bib);
44 my $dewey = $data->{'dewey'};
46 if ($dewey eq "000.") { $dewey = "";};
47 if ($dewey < 10){$dewey='00'.$dewey;}
48 if ($dewey < 100 && $dewey > 10){$dewey='0'.$dewey;}
55 <a href=/cgi-bin/koha/request.pl?bib=$bib><img src=/images/requests.gif width=120 height=42 border=0 align=right border=0></a>
56 <FONT SIZE=6><em><a href=/cgi-bin/koha/detail.pl?bib=$bib&type=intra>$data->{'title'} ($data->{'author'})</a></em></FONT><P>
58 <form action=/cgi-bin/koha/modbibitem.pl>
59 <input type=hidden name=bibitem value=$bi>
60 <input type=hidden name=biblio value=$bib>
61 <!-------------------BIBLIO ITEM------------>
62 <TABLE CELLSPACING=0 CELLPADDING=5 border=1 align=left>
64 <td bgcolor="99cc33" background="/images/background-mem.gif" ><B>$data->{'biblioitemnumber'} GROUP - $data->{'description'} </b> </TD>
68 <INPUT TYPE="image" name="submit" VALUE="modify" height=42 WIDTH=93 BORDER=0 src="/images/modify-mem.gif">
69 <INPUT TYPE="image" name="delete" VALUE="delete" height=42 WIDTH=93 BORDER=0 src="/images/delete-mem.gif">
71 <FONT SIZE=2 face="arial, helvetica">
72 <b>Biblionumber:</b> $bib<br>
73 <b>Item Type:</b> $data->{'itemtype'}<br>
74 <b>Loan Length:</b> $data->{'loanlength'}<br>
75 <b>Rental Charge:</b> $data->{'rentalcharge'}<br>
76 <b>Classification:</b> $data->{'classification'}$dewey$data->{'subclass'}<br>
77 <b>ISBN:</b> $data->{'isbn'}<br>
78 <b>Publisher:</b> $data->{'publishercode'} <br>
79 <b>Place:</b> $data->{'place'}<br>
80 <b>Date:</b> $data->{'publicationyear'}<br>
81 <b>Volume:</b> $data->{'volumeddesc'}<br>
82 <b>Pages:</b> $data->{'pages'}<br>
83 <b>Illus:</b> $data->{'illus'}<br>
84 <b>Size:</b> $data->{'size'}<br>
85 <b>Notes:</b> $data->{'notes'}<br>
86 <b>No. of Items:</b> $count
95 for (my $i=0;$i<$count;$i++){
97 <img src="/images/holder.gif" width=16 height=300 align=left>
98 <TABLE CELLSPACING=0 CELLPADDING=5 border=1 align=left width=220 >
100 <td bgcolor="99cc33" background="/images/background-mem.gif"><B>BARCODE $items[$i]->{'barcode'}</b></TD>
104 <form action=/cgi-bin/koha/moditem.pl method=post>
105 <input type=hidden name=bibitem value=$bi>
106 <input type=hidden name=item value=$items[$i]->{'itemnumber'}>
107 <INPUT TYPE="image" name="submit" VALUE="modify" height=42 WIDTH=93 BORDER=0 src="/images/modify-mem.gif">
108 <INPUT TYPE="image" name="delete" VALUE="delete" height=42 WIDTH=93 BORDER=0 src="/images/delete-mem.gif">
112 $items[$i]->{'itemlost'}=~ s/0/No/;
113 $items[$i]->{'itemlost'}=~ s/1/Yes/;
114 $items[$i]->{'withdrawn'}=~ s/0/No/;
115 $items[$i]->{'withdrawn'}=~ s/1/Yes/;
116 $items[$i]->{'replacementprice'}+=0.00;
117 my $year=substr($items[$i]->{'timestamp0'},0,4);
118 my $mon=substr($items[$i]->{'timestamp0'},4,2);
119 my $day=substr($items[$i]->{'timestamp0'},6,2);
120 $items[$i]->{'timestamp0'}="$day/$mon/$year";
121 my @temp=split('-',$items[$i]->{'dateaccessioned'});
122 $items[$i]->{'dateaccessioned'}="$temp[2]/$temp[1]/$temp[0]";
123 @temp=split('-',$items[$i]->{'datelastseen'});
124 $items[$i]->{'datelastseen'}="$temp[2]/$temp[1]/$temp[0]";
126 <FONT SIZE=2 face="arial, helvetica">
127 <b>Home Branch:</b> $items[$i]->{'homebranch'}<br>
128 <b>Last seen:</b> $items[$i]->{'datelastseen'}<br>
129 <b>Last borrowed:</b> $items[$i]->{'timestamp0'}<br>
132 if ($items[$i] eq 'Available'){
133 print "<b>Currently on issue to:</b><br>";
135 print "<b>Currently on issue to:</b> <a href=/cgi-bin/koha/moremember.pl?bornum=$items[$i]->{'borrower0'}>$items[$i]->{'card'}</a><br>";
138 <b>Last Borrower 1:</b> $items[$i]->{'card0'}<br>
139 <b>Last Borrower 2:</b> $items[$i]->{'card1'}<br>
140 <b>Current Branch:</b> $items[$i]->{'holdingbranch'}<br>
141 <b>Replacement Price:</b> $items[$i]->{'replacementprice'}<br>
142 <b>Item lost:</b> $items[$i]->{'itemlost'}<br>
144 <b>Notes:</b> $items[$i]->{'itemnotes'}<br>
145 <b>Renewals:</b> $items[$i]->{'renewals'}<br>
146 <b><a href=/cgi-bin/koha/acqui/acquire.pl?recieve=$order->{'ordernumber'}&biblio=$bib&invoice=$order->{'booksellerinvoicenumber'}&catview=yes>Accession</a> Date: $items[$i]->{'dateaccessioned'}<br>
149 if ($items[$i]->{'wthdrawn'} eq '1'){
150 $items[$i]->{'wthdrawn'}="Yes";
152 $items[$i]->{'wthdrawn'}="No";
155 <b>Cancelled: $items[$i]->{'wthdrawn'}<br>
156 <b>Total Issues:</b> $items[$i]->{'issues'}<br>
157 <b>Group Number:</b> $bi <br>
158 <b>Biblio number:</b> $bib <br>
179 print endmenu($type);