3 #script to display detailed information
14 #whether it is called from the opac of the intranet
15 my $type=$input->param('type');
30 print startmenu($type);
33 my $bib=$input->param('bib');
34 my $title=$input->param('title');
36 print "<a href=request.pl?bib=$bib><img height=42 WIDTH=120 BORDER=0 src=\"/images/requests.gif\" align=right border=0></a>";
40 my @items=ItemInfo(\$blah,$bib,$type);
41 my $dat=bibdata($bib);
43 my ($count3,$addauthor)=addauthor($bib);
44 my $additional=$addauthor->[0]->{'author'};
45 for (my $i=1;$i<$count3;$i++){
46 $additional=$additional."|".$addauthor->[$i]->{'author'};
48 my @temp=split('\t',$items[0]);
49 if ($dat->{'author'} ne ''){
50 print mkheadr(3,"$dat->{'title'} ($dat->{'author'}) $temp[4]");
52 print mkheadr(3,"$dat->{'title'} $temp[4]");
56 <TABLE CELLSPACING=0 CELLPADDING=5 border=1 align=left width="220">
58 <!-----------------BIBLIO RECORD TABLE--------->
61 <form action=/cgi-bin/koha/modbib.pl method=post>
62 <input type=hidden name=bibnum value=$bib>
69 print "background=\"/images/background-mem.gif\"";
87 print "<INPUT TYPE=\"image\" name=\"submit\" VALUE=\"modify\" height=42 WIDTH=93 BORDER=0 src=\"/images/modify-mem.gif\">
88 <INPUT TYPE=\"image\" name=\"delete\" VALUE=\"delete\" height=42 WIDTH=93 BORDER=0 src=\"/images/delete-mem.gif\">";
92 <FONT SIZE=2 face="arial, helvetica">
99 <b>Subtitle:</b> $dat->{'subtitle'}<br>
100 <b>Author:</b> $dat->{'author'}<br>
101 <b>Additional Author:</b> $additional<br>
102 <b>Series Title:</b> $dat->{'seriestitle'}<br>
103 <b>Subject:</b> $dat->{'subject'}<br>
104 <b>Copyright:</b> $dat->{'copyrightdate'}<br>
105 <b>Notes:</b> $dat->{'notes'}<br>
106 <b>Unititle:</b> $dat->{'unititle'}<br>
107 <b>Analytical Author:</b> <br>
108 <b>Analytical Title:</b> <br>
109 <b>Serial:</b> $dat->{'serial'}<br>
110 <b>Total Number of Items:</b> $count
116 if ($dat->{'subtitle'} ne ''){
117 print "<b>Subtitle:</b> $dat->{'subtitle'}<br>";
119 if ($dat->{'author'} ne ''){
120 print "<b>Author:</b> $dat->{'author'}<br>";
122 #Additional Author: <br>
123 if ($dat->{'seriestitle'} ne ''){
124 print "<b>Seriestitle:</b> $dat->{'seriestitle'}<br>";
126 if ($dat->{'subject'} ne ''){
127 print "<b>Subject:</b> $dat->{'subject'}<br>";
129 if ($dat->{'copyrightdate'} ne ''){
130 print "<b>Copyright:</b> $dat->{'copyrightdate'}<br>";
132 if ($dat->{'notes'} ne ''){
133 print "<b>Notes:</b> $dat->{'notes'}<br>";
135 if ($dat->{'unititle'} ne ''){
136 print "<b>Unititle:</b> $dat->{'unititle'}<br>";
138 #Analytical Author: <br>
139 #Analytical Title: <br>
140 if ($dat->{'serial'} ne '0'){
141 print "<b>Serial:</b> Yes<br>";
143 print "<b>Total Number of Items:</b> $count
154 <img src="/images/holder.gif" width=16 height=300 align=left>
165 if ($type eq 'opac'){
167 print mktablerow(6,$main,'Item Type','Class','Branch','Date Due','Last Seen');
169 print mktablerow(6,$main,'Itemtype','Class','Location','Date Due','Last Seen','Barcode',"/images/background-mem.gif");
173 # print $items[$i],"<br>";
174 my @results=split('\t',$items[$i]);
175 if ($type ne 'opac'){
176 $results[1]=mklink("/cgi-bin/koha/moredetail.pl?item=$results[5]&bib=$bib&bi=$results[8]",$results[1]);
178 if ($results[2] eq ''){
179 $results[2]='Available';
182 if ($type ne 'opac'){
183 # if ($results[6] eq 'PER'){
184 print mktablerow(7,$secondary,$results[6],$results[4],$results[3],$results[2],$results[7],$results[1],$results[9]);
186 # print mktablerow(6,$secondary,$results[6],$results[4],$results[3],$results[2],$results[7],$results[1]);
189 $results[6]=ItemType($results[6]);
190 # if ($results[6] =~ /Periodical/){
191 print mktablerow(6,$secondary,$results[6],$results[4],$results[3],$results[2],$results[7],$results[9]);
193 # print mktablerow(5,$secondary,$results[6],$results[4],$results[3],$results[2],$results[7]);
198 if ($type ne 'opac'){
199 # if ($results[6] eq 'PER'){
200 print mktablerow(7,'white',$results[6],$results[4],$results[3],$results[2],$results[7],$results[1],$results[9]);
202 # print mktablerow(6,'white',$results[6],$results[4],$results[3],$results[2],$results[7],$results[1]);
205 $results[6]=ItemType($results[6]);
206 # if ($results[6] =~ /Periodical/){
207 print mktablerow(6,'white',$results[6],$results[4],$results[3],$results[2],$results[7],$results[9]);
209 # print mktablerow(5,'white',$results[6],$results[4],$results[3],$results[2],$results[7]);
220 if ($type ne 'opac'){
223 <TD bgcolor="99cc33" background="/images/background-mem.gif" colspan=2><p><b>HELP</b><br>
224 <b>Update Biblio for all Items:</b> Click on the <b>Modify</b> button [left] to amend the biblio. Any changes you make will update the record for <b>all</b> the items listed above. <p>
225 <b>Updating the Biblio for only ONE or SOME Items:</b> If some of the items listed above need a different biblio, or are on the wrong biblio, you must use the <a href="acquisitions/">acquisitions</a> process to fix this. You will need to "re-order" the items, and delete them from this biblio.<p>
233 print "<br clear=all>";
234 print endmenu($type);