3 #script to display detailed information
12 my $type = $input->param('type');
13 my $bib = $input->param('bib');
14 my @items = &ItemInfo(undef, $bib, $type);
15 my @temp = split('\t', $items[0]);
17 my $dat = &bibdata($bib);
18 my ($websitecount, @websites) = &getwebsites($bib);
19 my ($authorcount, $addauthor) = &addauthor($bib);
20 my ($webbiblioitemcount, @webbiblioitems) = &getwebbiblioitems($bib);
21 my $additional = $addauthor->[0]->{'author'};
32 if ($type eq 'opac') {
34 $secondary = '#efe5ef';
37 $secondary = '#ffffcc';
41 for (my $i = 1; $i < $authorcount; $i++) {
42 $additional .= "|" . $addauthor->[$i]->{'author'};
47 print startmenu($type);
51 <a href=request.pl?bib=$bib><img height=42 WIDTH=120 BORDER="0" src=\"/images/requests.gif\" align="right" border="0"></a>
55 if ($type eq 'catmain'){
56 print mkheadr(3,"Catalogue Maintenance");
59 if ($dat->{'author'} ne ''){
60 print mkheadr(3,"$dat->{'title'} ($dat->{'author'}) $temp[4]");
62 print mkheadr(3,"$dat->{'title'} $temp[4]");
66 <table cellspacing="0" callpadding="5" border="1" align="left" width="220">
67 <!-----------------BIBLIO RECORD TABLE--------->
71 if ($type ne 'opac') {
73 <td bgcolor="$main" background="/images/background-mem.gif">
85 if ($type ne 'opac') {
96 if ($type ne 'opac') {
98 <form action="/cgi-bin/koha/modbib.pl" method="post">
99 <input type="hidden" name="bibnum" value="$bib">
100 <input type="image" name="submit" value="modify" height="42" width="93" border="0" src="/images/modify-mem.gif">
101 <input type="image" name="delete" value="delete" height="42" width="93" border="0" src="/images/delete-mem.gif">
108 <FONT SIZE=2 face="arial, helvetica">
112 if ($type ne 'opac') {
114 <b>Subtitle:</b> $dat->{'subtitle'}<br>
115 <b>Author:</b> $dat->{'author'}<br>
116 <b>Additional Author:</b> $additional<br>
117 <b>Series Title:</b> $dat->{'seriestitle'}<br>
118 <b>Subject:</b> $dat->{'subject'}<br>
119 <b>Copyright:</b> $dat->{'copyrightdate'}<br>
120 <b>Notes:</b> $dat->{'notes'}<br>
121 <b>Unititle:</b> $dat->{'unititle'}<br>
122 <b>Analytical Author:</b> <br>
123 <b>Analytical Title:</b> <br>
124 <b>Serial:</b> $dat->{'serial'}<br>
125 <b>Total Number of Items:</b> $count
130 if ($dat->{'subtitle'} ne ''){
131 print "<b>Subtitle:</b> $dat->{'subtitle'}<br>";
133 if ($dat->{'author'} ne ''){
134 print "<b>Author:</b> $dat->{'author'}<br>";
137 # Additional Author: <br>
138 if ($dat->{'seriestitle'} ne '') {
139 print "<b>Seriestitle:</b> $dat->{'seriestitle'}<br>";
141 if ($dat->{'subject'} ne '') {
142 print "<b>Subject:</b> $dat->{'subject'}<br>";
144 if ($dat->{'copyrightdate'} ne '') {
145 print "<b>Copyright:</b> $dat->{'copyrightdate'}<br>";
147 if ($dat->{'notes'} ne '') {
148 print "<b>Notes:</b> $dat->{'notes'}<br>";
150 if ($dat->{'unititle'} ne '') {
151 print "<b>Unititle:</b> $dat->{'unititle'}<br>";
154 # Analytical Author: <br>
155 # Analytical Title: <br>
156 if ($dat->{'serial'} ne '0') {
157 print "<b>Serial:</b> Yes<br>";
161 <b>Total Number of Items:</b> $count
172 <img src="/images/holder.gif" width="16" height="300" align="left">
178 if ($type eq 'opac') {
179 print mktablerow(6,$main,'Item Type','Class','Branch','Date Due','Last Seen');
181 print mktablerow(7,$main,'Itemtype','Class','Location','Date Due','Last Seen','Barcode',"","/images/background-mem.gif");
185 for (my $i = 0; $i < $count; $i ++) {
187 my @results = split('\t', $items[$i]);
189 if ($type ne 'opac') {
190 $results[1] = mklink("/cgi-bin/koha/moredetail.pl?item=$results[5]&bib=$bib&bi=$results[8]&type=$type",$results[1]);
193 if ($results[2] eq '') {
194 $results[2] = 'Available';
197 if ($type eq 'catmain'){
198 $results[10] = mklink("/cgi-bin/koha/maint/catmaintain.pl?type=fixitemtype&bi=$results[8]&item=$results[6]","Fix Itemtype");
201 if ($type ne 'opac'){
202 if ($type eq 'catmain'){
203 print mktablerow(8,$colour,$results[6],$results[4],$results[3],$results[2],$results[7],$results[1],$results[9],$results[10]);
205 print mktablerow(7,$colour,$results[6],$results[4],$results[3],$results[2],$results[7],$results[1],$results[9]);
208 $results[6] = ItemType($results[6]);
209 print mktablerow(6,$colour,$results[6],$results[4],$results[3],$results[2],$results[7],$results[9]);
212 if ($colour eq $secondary) {
215 $colour = $secondary;
221 for (my $i = 0; $i < $webbiblioitemcount; $i++) {
222 if ($type eq 'opac') {
223 $webbiblioitems[$i]->{'url'} =~ s/^http:\/\///;
224 print mktablerow(6, $colour, 'Website', 'WEB', 'Online', 'Available', "http://$webbiblioitems[$i]->{'url'}");
226 $webbiblioitems[$i]->{'url'} =~ s/^http:\/\///;
227 print mktablerow(7, $colour, 'WEB', '', 'Online', 'Available', "", "<a href='moredetail.pl?bib=$bib&bi=$webbiblioitems[$i]->{'biblioitemnumber'}&type=$type'>http://$webbiblioitems[$i]->{'url'}</a>");
236 if ($type ne 'opac') {
239 <td bgcolor="99cc33" background="/images/background-mem.gif" colspan="2"><p><b>HELP</b><br>
240 <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>
241 <b>Updating the Biblio for only ONE or SOME Items:</b>
244 if ($type eq 'catmain') {
246 If some of the items listed above need a different biblio,
247 you need to click on the wrong item, then shift the group it belongs to, to the correct biblio.
248 You will need to know the correct biblio number
255 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.
270 if ($type ne 'opac') {
272 <table border="1" cellspacing="0" cellpadding="5" width="90%">
274 <td bgcolor="$main" background="/images/background-mem.gif"><b>Abstract</b></td>
277 <td>$dat->{'abstract'}</td>
281 <table border="1" cellspacing="0" cellpadding="5" width="90%">
283 <td bgcolor="$main" background="/images/background-mem.gif"><b>Links to Associated Websites<b></td>
287 for (my $i = 0; $i < $websitecount; $i++) {
288 $websites[$i]->{'url'} =~ s/^http:\/\///;
291 <td><b>Title:</b> $websites[$i]->{'title'}<br>
292 <b>Description:</b> $websites[$i]->{'description'}<br>
293 <b>URL:</b> http://$websites[$i]->{'url'}<br>
303 if ($dat->{'abstract'} ne '') {
305 <table border="1" cellspacing="0" cellpadding="5" width="90%">
307 <td bgcolor="$main"><b>Abstract</b></td>
310 <td>$dat->{'abstract'}</td>
318 <table border="1" cellspacing="0" cellpadding="5" width="90%">
320 <td bgcolor="$main" background="/images/background-mem.gif"><b>Link to Associated Websites</b></td>
324 for (my $i = 0; $i < $websitecount; $i++) {
325 $websites[$i]->{'url'} =~ s/^http:\/\///;
328 <td><b>Title:</b> $websites[$i]->{'title'}<br>
329 <b>Description:</b> $websites[$i]->{'description'}<br>
330 <b>URL:</b> http://$websites[$i]->{'url'}<br>
342 print endmenu($type);