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