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