3 #script to display detailed information
17 #whether it is called from the opac of the intranet
18 my $type=$input->param('type');
30 print startmenu
($type);
33 my $bib=$input->param('bib');
34 my $title=$input->param('title');
35 my $bi=$input->param('bi');
36 my $data=bibitemdata
($bi);
38 my (@items)=itemissues
($bi);
39 my ($order,$ordernum)=getorder
($bi,$bib);
46 my $dewey = $data->{'dewey'};
48 if ($dewey eq "000.") { $dewey = "";};
49 if ($dewey < 10){$dewey='00'.$dewey;}
50 if ($dewey < 100 && $dewey > 10){$dewey='0'.$dewey;}
57 <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>
60 if ($type eq 'catmain'){
61 print "<FONT SIZE=6><em>Catalogue Maintenance</em></FONT><br>";
64 <FONT SIZE=6><em><a href=/cgi-bin/koha/detail.pl?bib=$bib&type=intra>$data->{'title'} ($data->{'author'})</a></em></FONT><P>
66 <form action=/cgi-bin/koha/modbibitem.pl>
67 <input type=hidden name=bibitem value=$bi>
68 <input type=hidden name=biblio value=$bib>
69 <!-------------------BIBLIO ITEM------------>
70 <TABLE CELLSPACING=0 CELLPADDING=5 border=1 align=left>
72 <td bgcolor="99cc33" background="/images/background-mem.gif" ><B>$data->{'biblioitemnumber'} GROUP - $data->{'description'} </b> </TD>
76 <INPUT TYPE="image" name="submit" VALUE="modify" height=42 WIDTH=93 BORDER=0 src="/images/modify-mem.gif">
77 <INPUT TYPE="image" name="delete" VALUE="delete" height=42 WIDTH=93 BORDER=0 src="/images/delete-mem.gif">
79 <FONT SIZE=2 face="arial, helvetica">
80 <b>Biblionumber:</b> $bib<br>
81 <b>Item Type:</b> $data->{'itemtype'}<br>
82 <b>Loan Length:</b> $data->{'loanlength'}<br>
83 <b>Rental Charge:</b> $data->{'rentalcharge'}<br>
84 <b>Classification:</b> $data->{'classification'}$dewey$data->{'subclass'}<br>
85 <b>ISBN:</b> $data->{'isbn'}<br>
86 <b>Publisher:</b> $data->{'publishercode'} <br>
87 <b>Place:</b> $data->{'place'}<br>
88 <b>Date:</b> $data->{'publicationyear'}<br>
89 <b>Volume:</b> $data->{'volumeddesc'}<br>
90 <b>Pages:</b> $data->{'pages'}<br>
91 <b>Illus:</b> $data->{'illus'}<br>
92 <b>Size:</b> $data->{'size'}<br>
93 <b>Notes:</b> $data->{'bnotes'}<br>
94 <b>No. of Items:</b> $count
98 if ($type eq 'catmain'){
99 print "<br><a href=/cgi-bin/koha/maint/shiftbib.pl?bi=$data->{'biblioitemnumber'}&bib=$data->{'biblionumber'}>Shift to another biblio</a>";
112 for (my $i=0;$i<$count;$i++){
114 <img src="/images/holder.gif" width=16 height=300 align=left>
115 <TABLE CELLSPACING=0 CELLPADDING=5 border=1 align=left width=220 >
117 <td bgcolor="99cc33" background="/images/background-mem.gif"><B>BARCODE $items[$i]->{'barcode'}</b></TD>
121 <form action=/cgi-bin/koha/moditem.pl method=post>
122 <input type=hidden name=bibitem value=$bi>
123 <input type=hidden name=item value=$items[$i]->{'itemnumber'}>
124 <input type=hidden name=type value=$type>
125 <INPUT TYPE="image" name="submit" VALUE="modify" height=42 WIDTH=93 BORDER=0 src="/images/modify-mem.gif">
126 <INPUT TYPE="image" name="delete" VALUE="delete" height=42 WIDTH=93 BORDER=0 src="/images/delete-mem.gif">
130 $items[$i]->{'itemlost'}=~ s/0/No/;
131 $items[$i]->{'itemlost'}=~ s/1/Yes/;
132 $items[$i]->{'withdrawn'}=~ s/0/No/;
133 $items[$i]->{'withdrawn'}=~ s/1/Yes/;
134 $items[$i]->{'replacementprice'}+=0.00;
136 my $year=substr($items[$i]->{'timestamp0'},0,4);
137 my $mon=substr($items[$i]->{'timestamp0'},4,2);
138 my $day=substr($items[$i]->{'timestamp0'},6,2);
139 $items[$i]->{'timestamp0'}="$day/$mon/$year";
141 $items[$i]->{'dateaccessioned'} = slashifyDate
($items[$i]->{'dateaccessioned'});
142 $items[$i]->{'datelastseen'} = slashifyDate
($items[$i]->{'datelastseen'});
145 <FONT SIZE=2 face="arial, helvetica">
146 <b>Home Branch:</b> $items[$i]->{'homebranch'}<br>
147 <b>Last seen:</b> $items[$i]->{'datelastseen'}<br>
148 <b>Last borrowed:</b> $items[$i]->{'timestamp0'}<br>
151 if ($items[$i] eq 'Available'){
152 print "<b>Currently on issue to:</b><br>";
154 print "<b>Currently on issue to:</b> <a href=/cgi-bin/koha/moremember.pl?bornum=$items[$i]->{'borrower0'}>$items[$i]->{'card'}</a><br>";
157 <b>Last Borrower 1:</b> $items[$i]->{'card0'}<br>
158 <b>Last Borrower 2:</b> $items[$i]->{'card1'}<br>
159 <b>Current Branch:</b> $items[$i]->{'holdingbranch'}<br>
160 <b>Replacement Price:</b> $items[$i]->{'replacementprice'}<br>
161 <b>Item lost:</b> $items[$i]->{'itemlost'}<br>
162 <b>Paid for:</b> $items[$i]->{'paidfor'}<br>
163 <b>Notes:</b> $items[$i]->{'itemnotes'}<br>
164 <b>Renewals:</b> $items[$i]->{'renewals'}<br>
165 <b><a href=/cgi-bin/koha/acqui/acquire.pl?recieve=$ordernum&biblio=$bib&invoice=$order->{'booksellerinvoicenumber'}&catview=yes>Accession</a> Date: $items[$i]->{'dateaccessioned'}<br>
168 if ($items[$i]->{'wthdrawn'} eq '1'){
169 $items[$i]->{'wthdrawn'}="Yes";
171 $items[$i]->{'wthdrawn'}="No";
174 <b>Cancelled: $items[$i]->{'wthdrawn'}<br>
175 <b>Total Issues:</b> $items[$i]->{'issues'}<br>
176 <b>Group Number:</b> $bi <br>
177 <b>Biblio number:</b> $bib <br>
198 print endmenu
($type);