Bug 6933 [REVISED] Add a view of titles with a particular tag to the staff client
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / detail.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Catalog &rsaquo;
3   [% IF ( unknownbiblionumber ) %]
4     Unknown record
5   [% ELSE %]
6     Details for [% title |html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield %][% END %]
7   [% END %]
8 </title>
9 [% INCLUDE 'doc-head-close.inc' %]<script type="text/JavaScript" language="JavaScript">
10 //<![CDATA[
11 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
12 function verify_images() {
13     $("#bookcoverimg img").each(function(i){
14            if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0)) {
15             w = this.width;
16             h = this.height;
17             if ((w == 1) || (h == 1)) {
18                 $("#bookcoverimg").remove();
19                 $(".yui-gb").attr("class","yui-g");
20             } else if ((this.complete != null) && (!this.complete)) {
21                 $("#bookcoverimg").remove();
22                 $(".yui-gb").attr("class","yui-g");
23             }
24         }
25         });
26         $("#editions img").each(function(i){
27            if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0)) {
28             w = this.width;
29             h = this.height;
30             if ((w == 1) || (h == 1)) {
31                                 this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
32             } else if ((this.complete != null) && (!this.complete)) {
33                                 this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
34             }
35         }
36         });
37 }
38      $(document).ready(function() {
39         $('#bibliodetails > ul').tabs();
40      });
41      [% IF ( AmazonEnabled ) %]$(window).load(function() {
42         verify_images();
43      });[% END %]
44 //]]>
45 </script>
46 </head>
47
48 <body>
49
50 [% INCLUDE 'header.inc' %]
51 [% INCLUDE 'cat-search.inc' %]
52
53 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>  &rsaquo;
54   [% IF ( unknownbiblionumber ) %]
55     Unknown record
56   [% ELSE %]
57     Details for <i>[% title |html %]  [% FOREACH subtitl IN subtitle %] [% subtitl.subfield %][% END %]</i>
58   [% END %]
59 </div>
60
61 <div id="doc3" class="yui-t2">
62
63 [% IF ( unknownbiblionumber ) %]
64   <div class="dialog message">The record you requested does not exist ([% biblionumber %]).</div>
65 [% ELSE %]
66    <div id="bd">
67     <div id="yui-main">
68     <div class="yui-b">
69
70 [% INCLUDE 'cat-toolbar.inc' %]
71     [% IF ( ocoins ) %]
72         <!-- COinS / OpenURL -->
73         <span class="Z3988" title="[% ocoins %]"></span>
74     [% END %]
75
76     [% IF ( AmazonEnabled ) %]
77         [% IF ( XSLTDetailsDisplay ) %]
78             <div class="yui-gc">
79             <div id="catalogue_detail_biblio" class="yui-u first">
80         [% ELSE %]
81             <div class="yui-gb">
82             <div id="catalogue_detail_biblio" class="yui-u first">
83         [% END %]
84     [% ELSE %]
85         [% IF ( XSLTDetailsDisplay ) %]
86             <div class="yui-g">
87             <div id="catalogue_detail_biblio">
88         [% ELSE %]
89             <div class="yui-g">
90             <div id="catalogue_detail_biblio" class="yui-u first">
91         [% END %]
92     [% END %]
93
94     [% IF ( XSLTDetailsDisplay ) %]
95         [% XSLTBloc %]
96
97         [% IF ( GetShelves ) %]
98             <span class="results_summary"><span class="label">Lists that include this title: </span>
99             [% FOREACH GetShelve IN GetShelves %]
100                 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% GetShelve.shelfnumber %]">[% GetShelve.shelfname %]</a>
101                 [% IF ( loop.last ) %][% ELSE %]|[% END %]
102             [% END %]
103             </span>
104         [% END %]
105         [% IF ( TagsEnabled &&  TagsShowOnDetail &&  TagLoop ) %]
106                 <span class="results_summary"><span class="label">Tags:</span>
107                     [% FOREACH TagLoo IN TagLoop %]
108                         [% IF ( CAN_user_tools_moderate_tags ) %]
109                         <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term |html %]</a>
110                         [% ELSE %]
111                         [% TagLoo.term |html %]
112                         [% END %]
113                         <span class="weight">([% TagLoo.weight_total %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
114                     [% END %]
115                     </span>
116         [% END %]
117         [% IF ( holdcount ) %]<span class="results_summary"><span class="label">Holds:</span> <span class="holdcount"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">[% holdcount %]</a></span></span>[% ELSE %][% END %]
118
119         [% IF ( AmazonEnabled ) %][% IF ( AmazonCoverImages ) %]</div><div class="yui-u" id="bookcoverimg">
120         <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" /></a>[% END %][% END %]
121     [% ELSE %]
122
123     <h3>[% title |html %]</h3>
124     [% FOREACH subtitl IN subtitle %]
125         <h4>[% subtitl.subfield %]</h4>
126     [% END %]
127             [% UNLESS ( item_level_itypes ) %]<img src="[% imageurl %]" alt="[% description %]" title="[% description %]">[% END %]
128             [% IF ( unititle ) %]<p>[% unititle |html %]</p>[% END %]
129             [% IF ( author ) %]<p>By <a href="/cgi-bin/koha/catalogue/search.pl?q=au:[% author |url %]">[% author %]</a></p>[% END %]
130         <ul>
131         [% IF ( MARCAUTHORS ) %]
132             <li><strong>Additional Authors:</strong><ul>
133             [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
134                 <li>[% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% MARCAUTHOR_SUBFIELDS_LOO.separator %]<a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value |url %]" href="/cgi-bin/koha/catalogue/search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit %]:[% link_loo.link |url %][% END %]">[% MARCAUTHOR_SUBFIELDS_LOO.value %]</a>[% END %]</li>
135                 [% END %]
136
137         </ul>
138             </li>
139         [% END %]
140 [% IF ( MARCSERIES ) %]
141                 <li><strong>Series: </strong><ul>[% FOREACH MARCSERIE IN MARCSERIES %]
142                 <li>[% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %] [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]<a href="/cgi-bin/koha/catalogue/search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value %]</a>[% END %][% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]. [% MARCSERIES_SUBFIELDS_LOO.volumenum %][% END %][% END %]</li> 
143                 [% END %]
144                 </ul>
145                 </li>
146 [% END %]
147         [% IF ( publishercode ) %]
148     <li><strong>Published by:</strong>
149         <a href="/cgi-bin/koha/catalogue/search.pl?q=pb:[% publishercode |url %]">
150             [% publishercode |html %]
151         </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %] [% IF ( editionstatement ) %][% editionstatement %][% END %] [% IF ( editionresponsability ) %][% editionresponsability %][% END %]
152     </li>
153     [% END %]
154         <li><strong>Description:</strong>
155                 [% IF ( pages ) %] [% END %][% pages %] [% IF ( illus ) %][% illus %][% END %]
156                 [% IF ( size ) %][% size %][% END %]
157         </li>
158 [% IF ( MARCURLS ) %]<li>
159     
160         <strong>Online Resources:</strong>
161     <ul>    [% FOREACH MARCurl IN MARCURLS %]
162                 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]
163                         <br />[% END %] 
164                 <!-- here you might do a tmpl_if name="toc" and use greybox or equivalent for table of contents -->
165                 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">[% MARCurl.linktext %]</a>
166                         [% IF ( MARCurl.notes ) %]<ul>[% FOREACH note IN MARCurl.notes %]<li>[% note.note %]</li>[% END %]</ul>[% END %]</li>
167             [% END %]</ul>
168 </li>
169     [% END %]
170     
171     [% IF ( OpacUrl ) %]
172         <li><strong>OPAC View:</strong>
173         <a href="http://[% OpacUrl %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]" target="_blank">Open in new window</a>
174                 </li>
175         [% END %]
176         </ul>
177         </div>
178        
179 [% IF ( AmazonEnabled ) %][% IF ( AmazonCoverImages ) %]<div class="yui-u" id="bookcoverimg">
180 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" /></a></div>[% END %][% END %]
181         
182         <div class="yui-u" style="margin-top: 1em;">
183         <ul>
184         [% IF ( MARCISBNS ) %]
185             <li><strong>ISBN:</strong><ul>[% FOREACH MARCISBN IN MARCISBNS %]<li>[% MARCISBN.marcisbn %]</li>[% END %]</ul></li>
186         [% ELSE %]
187             [% IF ( normalized_isbn ) %]
188                 <li><strong>ISBN:</strong> [% normalized_isbn %]</li>
189             [% END %]
190         [% END %]
191         [% IF ( issn ) %]
192             <li><strong>ISSN:</strong>[% issn %]</li>
193         [% END %]
194         [% IF ( collectiontitle ) %]
195             <li><strong>Collection: </strong>
196                 [% collectiontitle %] [% IF ( collectionvolume ) %], [% collectionvolume %][% END %][% IF ( collectionissn ) %] (<strong>ISSN:</strong> [% collectionissn %])[% END %]
197             </li>
198         [% END %]
199         [% IF ( MARCSUBJCTS ) %]
200             <li><strong>Subjects:</strong> 
201             <ul>
202                 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
203                 <li>[% FOREACH MARCSUBJECT_SUBFIELDS_LOO IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %] [% MARCSUBJECT_SUBFIELDS_LOO.separator %] <a title="‡[% MARCSUBJECT_SUBFIELDS_LOO.code %] [% MARCSUBJECT_SUBFIELDS_LOO.value %]" href="/cgi-bin/koha/catalogue/search.pl?q=[% FOREACH link_loo IN MARCSUBJECT_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit %]:[% link_loo.link |url %][% END %]">[% MARCSUBJECT_SUBFIELDS_LOO.value |html %]</a>[% END %]</li>
204                 [% END %]
205                 </ul>
206             </li>
207         [% END %]
208         [% IF ( copyrightdate ) %]
209             <li><strong>Copyright:</strong> [% copyrightdate %]</li>
210         [% END %]
211      
212         [% IF ( classification ) %]
213             <li><strong>Classification:</strong> [% subclass %][% classification %]</li>
214         [% END %]
215         [% IF ( dewey ) %]
216             <li><strong>Dewey:</strong> [% dewey %]</li>
217         [% END %]
218         [% IF ( urlS ) %]
219             <li><strong>url:</strong> 
220                 [% FOREACH url IN urlS %]
221                     <a href="[% url.url %]">[% url.url %]</a>
222                 [% END %]
223             </li>
224         [% END %]
225         <!--This grabs all of the lists a bib record appears in -->
226         [% IF ( GetShelves ) %]
227                 <li><strong>Lists that include this title: </strong>
228                 <ul>
229                 [% FOREACH GetShelve IN GetShelves %]
230                         <li><a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% GetShelve.shelfnumber %]">[% GetShelve.shelfname %]</a></li>
231                 [% END %]
232                 </ul>
233                 </li>
234         [% END %]
235         [% IF ( TagsEnabled &&  TagsShowOnDetail &&  TagLoop ) %]
236                 <li><strong>Tags:</strong>
237                     <ul id="tagslist">
238                     [% FOREACH TagLoo IN TagLoop %]
239                         <li>
240                         [% IF ( CAN_user_tools_moderate_tags ) %]
241                         <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term |html %]</a>
242                         [% ELSE %]
243                         [% TagLoo.term |html %]
244                         [% END %]
245                         <span class="weight">([% TagLoo.weight_total %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]</li>
246                     [% END %]
247                     </ul></li>
248         [% END %]
249             [% IF ( holdcount ) %]<li><strong>Holds:</strong> <span class="holdcount"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">[% holdcount %]</a></span></li>[% ELSE %][% END %]
250         </ul>
251                 [% END %]
252
253 </div>
254 </div>
255 <div id="bibliodetails" class="toptabs">
256
257 <ul>   
258 <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]#holdings">Holdings</a></li>
259 <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]#description">Descriptions</a></li>
260 [% IF ( subscriptionsnumber ) %]<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]#subscriptions">Subscriptions</a></li>[% END %]
261 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]#editions">Editions</a></li>[% END %][% END %]
262 [% IF ( AmazonSimilarItems ) %]<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]#related">Related Titles</a></li>[% END %]
263 [% IF ( LocalCoverImages ) %][% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]#images">Images</a></li>[% END %][% END %]
264  </ul>
265
266 <div id="holdings">
267 [% IF ( count ) %]
268     [% IF ( showncount ) %]
269         <table>
270             <tr>
271                 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
272                 <th>Current Location</th>
273                 <th>Home Library</th>
274                 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
275                 <th>Call Number</th>
276                 <th>Status</th>
277                 <th>Last seen</th>
278                 <th>Barcode</th>
279                 [% IF ( volinfo ) %]<th>Publication Details</th>[% END %]
280                 [% IF ( itemdata_uri ) %]<th>url</th>[% END %]
281                 [% IF ( itemdata_copynumber ) %]<th>Copy No.</th>[% END %]
282                 [% IF materials %]<th>Materials Specified</th>[% END %]
283                 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
284                 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine Label</th>[% END %]
285                 [% IF ( hostrecords ) %]<th>Host Records</th>[% END %]
286                 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
287             </tr>
288             [% FOREACH itemloo IN itemloop %]
289                 <tr>
290                     [% IF ( item_level_itypes ) %]
291                       <td class="itype">
292                         [% IF ( noItemTypeImages ) %]
293                           [% itemloo.description %]
294                         [% ELSE %]
295                           [% IF ( itemloo.imageurl ) %]
296                             <img src="[% itemloo.imageurl %]" alt="[% itemloo.description %]" title="[% itemloo.description %]" />
297                           [% ELSE %]
298                             [% itemloo.description %]
299                           [% END %]
300                         [% END %]</td>
301                     [% END %]
302                     <td class="location">[% UNLESS ( singlebranchmode ) %][% itemloo.branchname %] [% END %]</td>
303                     <td class="homebranch">[% itemloo.homebranch %]<span class="shelvingloc">[% itemloo.location %]</span> </td>
304                     [% IF ( itemdata_ccode ) %]<td>[% itemloo.ccode %]</td>[% END %]
305                     <td class="itemcallnumber">[% IF ( itemloo.itemcallnumber ) %] [% itemloo.itemcallnumber %][% END %]</td>
306                     <td class="status">
307
308                 [% IF ( itemloo.datedue ) %]
309                                                 <span class="datedue">Checked out
310                     [% UNLESS ( itemloo.NOTSAMEBRANCH ) %]
311                           to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.borrowernumber %]">
312                           [% IF ( itemloo.hidepatronname ) %]
313                               [% itemloo.cardnumber %]
314                           [% ELSE %]
315                               [% itemloo.firstname %] [% itemloo.surname %]
316                           [% END %]
317                           </a>
318                     [% END %]
319                                                 : due [% itemloo.datedue %]
320                                                 </span>
321                 [% ELSIF ( itemloo.transfertwhen ) %]
322                            In transit from [% itemloo.transfertfrom %],
323                            to [% itemloo.transfertto %], since [% itemloo.transfertwhen %]
324                                                         <!-- FIXME: the "since" clause is redundant w/ lastseen field -->
325                 [% END %]
326
327                 [% IF ( itemloo.itemlost ) %]
328                     [% IF ( itemloo.itemlostloop ) %]
329                     [% FOREACH itemlostloo IN itemloo.itemlostloop %]
330                         [% IF ( itemlostloo.selected ) %]
331                                         <span class="lost">[% itemlostloo.lib %]</span>
332                         [% END %]
333                     [% END %]
334                     [% ELSE %]
335                                         <span class="lost">Unavailable (lost or missing)</span>
336                     [% END %]
337                 [% END %]
338
339                 [% IF ( itemloo.wthdrawn ) %]
340                                         <span class="wdn">Withdrawn</span>
341                 [% END %]
342
343                 [% IF ( itemloo.damaged ) %]
344                     [% IF ( itemloo.itemdamagedloop ) %]
345                         [% FOREACH itemdamagedloo IN itemloo.itemdamagedloop %]
346                         [% IF ( itemdamagedloo.selected ) %]
347                                         <span class="dmg">[% itemdamagedloo.lib %]</span>
348                         [% END %]
349                         [% END %]
350                     [% ELSE %]
351                                         <span class="dmg">Damaged</span>
352                     [% END %]
353                 [% END %]
354
355                 [% IF ( itemloo.itemnotforloan ) %]
356                     Not for loan 
357                     [% IF ( itemloo.notforloanvalue ) %]
358                         ([% itemloo.notforloanvalue %])
359                     [% END %]
360                 [% END %]
361
362                             
363                 [% IF ( itemloo.reservedate ) %]
364                     [% IF ( itemloo.waitingdate ) %]
365                         Waiting
366                     [% ELSE %]
367                         Item-level hold
368                     [% END %]
369                     [% IF ( canreservefromotherbranches ) %]for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedForBorrowernumber %]">
370                         [% IF ( itemloo.hidepatronname ) %]
371                             [% itemloo.Reservedcardnumber %]
372                         [% ELSE %]
373                             [% itemloo.ReservedForFirstname %] [% itemloo.ReservedForSurname %]
374                         [% END %]
375                     </a>[% END %]
376                     [% IF ( itemloo.waitingdate ) %]
377                         at[% ELSE %]for delivery at
378                     [% END %]   [% itemloo.ExpectedAtLibrary %]
379                     [% IF ( itemloo.waitingdate ) %]
380                         since [% itemloo.waitingdate %]
381                     [% ELSE %]
382                         [% IF ( itemloo.reservedate ) %](placed [% itemloo.reservedate %])[% END %]
383                     [% END %]
384                 [% END %]
385                 [% UNLESS ( itemloo.itemnotforloan ) %][% UNLESS ( itemloo.onloan ) %][% UNLESS ( itemloo.itemlost ) %][% UNLESS ( itemloo.wthdrawn ) %][% UNLESS ( itemloo.damaged ) %][% UNLESS ( itemloo.transfertwhen ) %][% UNLESS ( itemloo.reservedate ) %]
386                                         Available
387                 [% END %][% END %][% END %][% END %][% END %][% END %][% END %]
388
389                 [% IF ( itemloo.restricted ) %]<span class="restricted">([% itemloo.restricted %])</span>[% END %]
390                         
391                     </td>
392                     <td class="datelastseen">[% itemloo.datelastseen %]</td>
393                     <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=[% itemloo.type %]&amp;itemnumber=[% itemloo.itemnumber %]&amp;biblionumber=[% itemloo.biblionumber %]&amp;bi=[% itemloo.biblioitemnumber %]#item[% itemloo.itemnumber %]">[% itemloo.barcode %]</a></td>
394                                 [% IF ( volinfo ) %]    <td class="enumchron">
395                                         [% IF ( itemdata_enumchron ) %]
396                                                 [% IF ( itemloo.enumchron ) %]
397                                                 [% itemloo.enumchron %][% IF ( itemloo.serialseq ) %] -- [% END %]
398                                                 [% END %]
399                                         [% itemloo.serialseq %][% IF ( itemloo.publisheddate ) %] ([% itemloo.publisheddate %])[% END %]
400                                         [% END %]
401                                 </td>[% END %]
402                                 [% IF ( itemdata_uri ) %]
403                                         <td class="uri"><a href="[% itemloo.uri %]">[% itemloo.uri %]</a></td>
404                                 [% END %]
405                                 [% IF ( itemdata_copynumber ) %]
406                                         <td class="copynumber">[% itemloo.copynumber %]</td>
407                                 [% END %]
408                 [% IF materials %]
409                     <td class="materials"> [% itemloo.materials %] </td>
410                 [% END %]
411                 [% IF ( itemdata_itemnotes ) %]<td><div class="itemnotes">[% itemloo.itemnotes %]</div></td>[% END %]
412                 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
413                         <td><a href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% itemloo.barcode %]" >Print Label</a></td>
414                 [% END %]
415                 [% IF ( hostrecords ) %]
416                       <td>[% IF ( itemloo.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itemloo.hostbiblionumber %]" >[% itemloo.hosttitle %]</a>[% END %]</td>
417                 [% END %]
418                 [% IF ( analyze ) %]<td>
419                         [% IF ( itemloo.countanalytics ) %]
420                                 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% itemloo.itemnumber %]">[% itemloo.countanalytics %] analytics</a>
421                         [% END %]</td>
422                 [% END %]
423                 [% IF ( analyze ) %]
424                         <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% itemloo.biblionumber %]&hostitemnumber=[% itemloo.itemnumber %]">Create Analytics</a></td>
425                 [% END %]
426
427                 </tr>
428             [% END %]
429         </table>
430         [% END %]
431                 [% IF ( hiddencount ) %]
432                    <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]&showallitems=1">Show all items ([% hiddencount %] hidden)</a>
433                 [% END %]               
434                 [% IF ( debug_display ) %]
435                 <br /><br />
436                 <table>
437                         <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron %]</td></tr>
438                         <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber %]</td></tr>
439                         <tr><td>serial</td><td>[% serial %]</td></tr>
440                 </table>
441                 [% END %]
442 [% ELSE %]
443     [% IF ( ALTERNATEHOLDINGS ) %]
444     [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
445         <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
446     [% END %]
447     [% ELSE %]
448     <div id="noitems">No physical items for this record</div>
449     [% END %]
450 [% END %]
451     </div>
452     
453 <div id="description">
454 <div class="content_set">
455 [% IF ( AmazonEnabled ) %]
456 [% FOREACH AMAZON_EDITORIAL_REVIEW IN AMAZON_EDITORIAL_REVIEWS %]
457     [% IF ( AMAZON_EDITORIAL_REVIEW.Content ) %]
458     <h4>From [% AMAZON_EDITORIAL_REVIEW.Source %]:</h4>
459     <p>[% AMAZON_EDITORIAL_REVIEW.Content %]</p>
460     [% END %]
461 [% END %]
462 [% END %]
463
464 [% IF ( MARCNOTES ) %]
465     [% FOREACH MARCNOTE IN MARCNOTES %]
466     <p>[% MARCNOTE.marcnote %]</p>
467     [% END %]
468     [% ELSE %]
469     [% IF ( notes ) %]
470     <p>[% notes %]</p>
471     [% END %]
472 [% END %]
473 </div>
474 </div>
475
476 [% IF ( subscriptionsnumber ) %]
477 <div id="subscriptions">
478 <div class="yui-g">
479 <div id="catalogue_detail_subscriptions">
480     <h2>This is a serial subscription</h2>
481     <p> (There are [% subscriptionsnumber %] subscriptions associated with this title).</p> 
482     [% FOREACH subscription IN subscriptions %]
483             [% IF ( subscription.branchname ) %]<h3>At library: [% subscription.branchname %]</h3>[% ELSE %]
484             [% IF ( subscription.branchcode ) %]<h3>At branch: [% subscription.branchcode %]</h3>[% END %][% END %]
485             [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes %] </p>[% END %]
486             [% IF ( subscription.latestserials ) %]
487             <p> The [% subscription.staffdisplaycount %] latest issues related to this subscription:</p>
488             <table>
489                 <tr>
490                     <th>Issue #</th>
491                     <th>Date</th>
492                     <th>Status</th>
493                     <th>Note</th>
494                 </tr>
495             [% FOREACH latestserial IN subscription.latestserials %]
496                 <tr>
497                     <td>[% latestserial.serialseq %]</td>
498                     <td>[% latestserial.planneddate %]</td>
499                     <td>[% IF ( latestserial.status1 ) %]Expected
500                         [% ELSE %]
501                             [% IF ( latestserial.status2 ) %]Arrived
502                             [% ELSE %]
503                                 [% IF ( latestserial.status3 ) %]Late
504                                 [% ELSE %]
505                                     [% IF ( latestserial.status4 ) %]Missing
506                                     [% ELSE %]
507                                         [% IF ( latestserial.status5 ) %]Not Issued
508                                         [% END %]
509                                     [% END %]
510                                 [% END %]
511                             [% END %]
512                         [% END %]</td>
513                     <td>[% latestserial.notes %]</td>
514                 </tr>
515             [% END %]
516             </table>
517             [% END %]
518                         <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]">Subscription Details</a>
519     [% END %]
520 </div>
521 </div>
522 </div>
523 [% END %]
524
525 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
526 <div id="editions"><h4>Editions</h4>
527 <table>
528 [% FOREACH XISBN IN XISBNS %]<tr>[% IF ( XISBN.AmazonEnabled ) %]<td><a href="http://www.amazon.com/gp/reader/[% XISBN.normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img src="http://images.amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" /></a></td>[% END %]
529 [% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description %][% ELSE %]<img src="[% XISBN.imageurl %]" alt="[% XISBN.description %]" title="[% XISBN.description %]">[% END %]</td>[% END %]
530 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a> by [% XISBN.author %] &copy;[% XISBN.copyrightdate %]
531   [% IF ( XISBN.publishercode ) %]
532 [% XISBN.publishercode %] [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %] [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear %][% END %] [% IF ( XISBN.editionstatement ) %][% XISBN.editionstatement %][% END %] [% IF ( XISBN.editionresponsability ) %][% XISBN.editionresponsability %][% END %]
533     [% END %]
534                 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages %] [% IF ( XISBN.illus ) %][% XISBN.illus %][% END %]
535                 [% IF ( XISBN.size ) %], [% END %][% XISBN.size %]
536 </td>
537
538 [% END %]
539 </table></div>[% END %]
540 [% END %]
541
542 [% IF ( AmazonEnabled ) %][% IF ( AmazonSimilarItems ) %]
543 <div id="related">
544 <h4>Similar Items</h4>
545 <ul>
546 [% FOREACH AMAZON_SIMILAR_PRODUCT IN AMAZON_SIMILAR_PRODUCTS %]
547 [% FOREACH similar_biblionumber IN AMAZON_SIMILAR_PRODUCT.similar_biblionumbers %]
548 <li><img alt="" src="http://images.amazon.com/images/P/[% similar_biblionumber.ASIN %].01._SS50_.jpg" /> <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% similar_biblionumber.biblionumber %]">[% similar_biblionumber.title |html %]</a> </li>
549 [% END %]
550 [% END %]
551 </ul>
552 </div>
553 [% END %][% END %]
554
555 [% IF ( LocalCoverImages ) %]
556 <div id="images">
557 [% IF ( localimages.0 ) %]
558 <p>Click on an image to view it in the image viewer</p>
559 [% FOREACH image IN localimages %]
560 [% IF image %]
561 <a class="localimage" href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber %]&amp;imagenumber=[% image %]"><img alt="" src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&amp;imagenumber=[% image %]" /></a>
562 [% END %]
563 [% END %]
564 [% ELSE %]
565 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
566 <p>No images have been uploaded for this bibliographic record yet. Please <a href='/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber %]&amp;filetype=image'>upload</a> one.</p>
567 [% END %]
568 [% END %]
569 </div>
570 [% END %]
571
572 </div><!-- /bibliodetails -->
573
574 <div class="yui-g" id="export" style="margin-top: 1em;">
575 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
576 <table>  <tr>
577       <th>Save Record</th>   </tr>
578   <tr>     <td> Select Download Format:    <select name="format">
579         <option value="mods">MODS (XML)</option>
580         <option value="dc">Dublin Core (XML)</option>
581         <option value="marcxml">MARCXML</option>
582         <option value="marc8">MARC (non-Unicode/MARC-8)</option>
583         <option value="utf8">MARC (Unicode/UTF-8)</option>    </select>
584         <input type="submit" name="save" value="Download Record" /></td>
585   </tr>
586   <tr><td>
587     <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber %]" />
588   </td></tr>
589 </table>
590 </form>
591 </div>
592
593
594
595 </div>
596 </div>
597 <div class="yui-b">
598 [% INCLUDE 'biblio-view-menu.inc' %]
599 </div>
600 [% END %]
601 </div>
602 [% INCLUDE 'intranet-bottom.inc' %]