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