Merge branch 'bug_6945' 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 <li><a href="#holdings">Holdings</a></li>
266 <li><a href="#description">Descriptions</a></li>
267 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
268 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
269 [% IF ( LocalCoverImages ) %][% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]<li><a href="#images">Images</a></li>[% END %][% END %]
270  </ul>
271
272 <div id="holdings">
273 [% IF ( count ) %]
274     [% IF ( showncount ) %]
275         <table>
276             <tr>
277                 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
278                 <th>Current location</th>
279                 <th>Home Library</th>
280                 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
281                 <th>Call number</th>
282                 <th>Status</th>
283                 <th>Last seen</th>
284                 <th>Barcode</th>
285                 [% IF ( volinfo ) %]<th>Publication details</th>[% END %]
286                 [% IF ( itemdata_uri ) %]<th>url</th>[% END %]
287                 [% IF ( itemdata_copynumber ) %]<th>Copy no.</th>[% END %]
288                 [% IF materials %]<th>Materials specified</th>[% END %]
289                 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
290         [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine label</th>[% END %]
291         [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
292                 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
293             </tr>
294             [% FOREACH itemloo IN itemloop %]
295                 <tr>
296                     [% IF ( item_level_itypes ) %]
297                     <td class="itype">
298                         [% IF !noItemTypeImages && itemloo.imageurl %]
299                             <img src="[% itemloo.imageurl %]" alt="[% itemloo.description %]" title="[% itemloo.description %]" />
300                         [% END %]
301                         [% itemloo.description %]
302                     </td>
303                     [% END %]
304                     <td class="location">[% UNLESS ( singlebranchmode ) %][% itemloo.branchname %] [% END %]</td>
305                     <td class="homebranch">[% itemloo.homebranch %]<span class="shelvingloc">[% itemloo.location %]</span> </td>
306                     [% IF ( itemdata_ccode ) %]<td>[% itemloo.ccode %]</td>[% END %]
307                     <td class="itemcallnumber">[% IF ( itemloo.itemcallnumber ) %] [% itemloo.itemcallnumber %][% END %]</td>
308                     <td class="status">
309
310                 [% IF ( itemloo.datedue ) %]
311                                                 <span class="datedue">Checked out
312                     [% UNLESS ( itemloo.NOTSAMEBRANCH ) %]
313                           to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.borrowernumber %]">
314                           [% IF ( itemloo.hidepatronname ) %]
315                               [% itemloo.cardnumber %]
316                           [% ELSE %]
317                               [% itemloo.firstname %] [% itemloo.surname %]
318                           [% END %]
319                           </a>
320                     [% END %]
321                                                 : due [% itemloo.datedue %]
322                                                 </span>
323                 [% ELSIF ( itemloo.transfertwhen ) %]
324                            In transit from [% itemloo.transfertfrom %],
325                            to [% itemloo.transfertto %], since [% itemloo.transfertwhen %]
326                                                         <!-- FIXME: the "since" clause is redundant w/ lastseen field -->
327                 [% END %]
328
329                 [% IF ( itemloo.itemlost ) %]
330                     [% IF ( itemloo.itemlostloop ) %]
331                     [% FOREACH itemlostloo IN itemloo.itemlostloop %]
332                         [% IF ( itemlostloo.selected ) %]
333                                         <span class="lost">[% itemlostloo.lib %]</span>
334                         [% END %]
335                     [% END %]
336                     [% ELSE %]
337                                         <span class="lost">Unavailable (lost or missing)</span>
338                     [% END %]
339                 [% END %]
340
341                 [% IF ( itemloo.wthdrawn ) %]
342                                         <span class="wdn">Withdrawn</span>
343                 [% END %]
344
345                 [% IF ( itemloo.damaged ) %]
346                     [% IF ( itemloo.itemdamagedloop ) %]
347                         [% FOREACH itemdamagedloo IN itemloo.itemdamagedloop %]
348                         [% IF ( itemdamagedloo.selected ) %]
349                                         <span class="dmg">[% itemdamagedloo.lib %]</span>
350                         [% END %]
351                         [% END %]
352                     [% ELSE %]
353                                         <span class="dmg">Damaged</span>
354                     [% END %]
355                 [% END %]
356
357                 [% IF ( itemloo.itemnotforloan ) %]
358                     Not for loan 
359                     [% IF ( itemloo.notforloanvalue ) %]
360                         ([% itemloo.notforloanvalue %])
361                     [% END %]
362                 [% END %]
363
364                             
365                 [% IF ( itemloo.reservedate ) %]
366                     [% IF ( itemloo.waitingdate ) %]
367                         Waiting
368                     [% ELSE %]
369                         Item-level hold
370                     [% END %]
371                     [% IF ( canreservefromotherbranches ) %]for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedForBorrowernumber %]">
372                         [% IF ( itemloo.hidepatronname ) %]
373                             [% itemloo.Reservedcardnumber %]
374                         [% ELSE %]
375                             [% itemloo.ReservedForFirstname %] [% itemloo.ReservedForSurname %]
376                         [% END %]
377                     </a>[% END %]
378                     [% IF ( itemloo.waitingdate ) %]
379                         at[% ELSE %]for delivery at
380                     [% END %]   [% itemloo.ExpectedAtLibrary %]
381                     [% IF ( itemloo.waitingdate ) %]
382                         since [% itemloo.waitingdate %]
383                     [% ELSE %]
384                         [% IF ( itemloo.reservedate ) %](placed [% itemloo.reservedate %])[% END %]
385                     [% END %]
386                 [% END %]
387                 [% UNLESS ( itemloo.itemnotforloan ) %][% UNLESS ( itemloo.onloan ) %][% UNLESS ( itemloo.itemlost ) %][% UNLESS ( itemloo.wthdrawn ) %][% UNLESS ( itemloo.damaged ) %][% UNLESS ( itemloo.transfertwhen ) %][% UNLESS ( itemloo.reservedate ) %]
388                                         Available
389                 [% END %][% END %][% END %][% END %][% END %][% END %][% END %]
390
391                 [% IF ( itemloo.restricted ) %]<span class="restricted">([% itemloo.restricted %])</span>[% END %]
392                         
393                     </td>
394                     <td class="datelastseen">[% itemloo.datelastseen %]</td>
395                     <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=[% itemloo.type %]&amp;itemnumber=[% itemloo.itemnumber %]&amp;biblionumber=[% itemloo.biblionumber %]&amp;bi=[% itemloo.biblioitemnumber %]#item[% itemloo.itemnumber %]">[% itemloo.barcode %]</a></td>
396                                 [% IF ( volinfo ) %]    <td class="enumchron">
397                                         [% IF ( itemdata_enumchron ) %]
398                                                 [% IF ( itemloo.enumchron ) %]
399                                                 [% itemloo.enumchron %][% IF ( itemloo.serialseq ) %] -- [% END %]
400                                                 [% END %]
401                                         [% itemloo.serialseq %][% IF ( itemloo.publisheddate ) %] ([% itemloo.publisheddate %])[% END %]
402                                         [% END %]
403                                 </td>[% END %]
404                                 [% IF ( itemdata_uri ) %]
405                                         <td class="uri"><a href="[% itemloo.uri %]">[% itemloo.uri %]</a></td>
406                                 [% END %]
407                                 [% IF ( itemdata_copynumber ) %]
408                                         <td class="copynumber">[% itemloo.copynumber %]</td>
409                                 [% END %]
410                 [% IF materials %]
411                     <td class="materials"> [% itemloo.materials %] </td>
412                 [% END %]
413                 [% IF ( itemdata_itemnotes ) %]<td><div class="itemnotes">[% itemloo.itemnotes %]</div></td>[% END %]
414                 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
415             <td><a href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% itemloo.barcode %]" >Print label</a></td>
416                 [% END %]
417                 [% IF ( hostrecords ) %]
418                       <td>[% IF ( itemloo.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itemloo.hostbiblionumber %]" >[% itemloo.hosttitle %]</a>[% END %]</td>
419                 [% END %]
420                 [% IF ( analyze ) %]<td>
421                         [% IF ( itemloo.countanalytics ) %]
422                                 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&amp;q=[% itemloo.itemnumber %]">[% itemloo.countanalytics %] analytics</a>
423                         [% END %]</td>
424                 [% END %]
425                 [% IF ( analyze ) %]
426                         <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% itemloo.biblionumber %]&amp;hostitemnumber=[% itemloo.itemnumber %]">Create analytics</a></td>
427                 [% END %]
428
429                 </tr>
430             [% END %]
431         </table>
432         [% END %]
433                 [% IF ( hiddencount ) %]
434                    <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]&amp;showallitems=1">Show all items ([% hiddencount %] hidden)</a>
435                 [% END %]               
436                 [% IF ( debug_display ) %]
437                 <br /><br />
438                 <table>
439                         <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron %]</td></tr>
440                         <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber %]</td></tr>
441                         <tr><td>serial</td><td>[% serial %]</td></tr>
442                 </table>
443                 [% END %]
444 [% ELSE %]
445     [% IF ( ALTERNATEHOLDINGS ) %]
446     [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
447         <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
448     [% END %]
449     [% ELSE %]
450     <div id="noitems">No physical items for this record</div>
451     [% END %]
452 [% END %]
453     </div>
454     
455 <div id="description">
456 <div class="content_set">
457
458 [% IF ( MARCNOTES ) %]
459     [% FOREACH MARCNOTE IN MARCNOTES %]
460     <p>[% MARCNOTE.marcnote FILTER html_line_break %]</p>
461     [% END %]
462     [% ELSE %]
463     [% IF ( notes ) %]
464     <p>[% notes %]</p>
465     [% END %]
466 [% END %]
467 </div>
468 </div>
469
470 [% IF ( subscriptionsnumber ) %]
471 <div id="subscriptions">
472 <div class="yui-g">
473 <div id="catalogue_detail_subscriptions">
474     <h2>This is a serial subscription</h2>
475     <p> (There are [% subscriptionsnumber %] subscriptions associated with this title).</p> 
476     [% FOREACH subscription IN subscriptions %]
477             [% IF ( subscription.branchname ) %]<h3>At library: [% subscription.branchname %]</h3>[% ELSE %]
478             [% IF ( subscription.branchcode ) %]<h3>At library: [% subscription.branchcode %]</h3>[% END %][% END %]
479             [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>[% END %]
480             [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist %] </p>[% END %]
481             [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote %])</p>[% END %]
482             [% IF ( subscription.latestserials ) %]
483             <p> The [% subscription.staffdisplaycount %] latest issues related to this subscription:</p>
484             <table>
485                 <tr>
486                     <th>Issue #</th>
487                     <th>Date</th>
488                     <th>Status</th>
489                     <th>Note</th>
490                 </tr>
491             [% FOREACH latestserial IN subscription.latestserials %]
492                 <tr>
493                     <td>[% latestserial.serialseq %]</td>
494                     <td>[% latestserial.planneddate %]</td>
495                     <td>[% IF ( latestserial.status1 ) %]Expected
496                         [% ELSE %]
497                             [% IF ( latestserial.status2 ) %]Arrived
498                             [% ELSE %]
499                                 [% IF ( latestserial.status3 ) %]Late
500                                 [% ELSE %]
501                                     [% IF ( latestserial.status4 ) %]Missing
502                                     [% ELSE %]
503                                         [% IF ( latestserial.status5 ) %]Not issued
504                                         [% END %]
505                                     [% END %]
506                                 [% END %]
507                             [% END %]
508                         [% END %]</td>
509                     <td>[% latestserial.notes %]</td>
510                 </tr>
511             [% END %]
512             </table>
513             [% END %]
514             <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]">Subscription details</a>
515     [% END %]
516 </div>
517 </div>
518 </div>
519 [% END %]
520
521 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
522 <div id="editions"><h4>Editions</h4>
523 <table>
524 [% 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 %]
525 [% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description %][% ELSE %]<img src="[% XISBN.imageurl %]" alt="[% XISBN.description %]" title="[% XISBN.description %]">[% END %]</td>[% END %]
526 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a> by [% XISBN.author %] &copy;[% XISBN.copyrightdate %]
527   [% IF ( XISBN.publishercode ) %]
528 [% 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 %]
529     [% END %]
530                 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages %] [% IF ( XISBN.illus ) %][% XISBN.illus %][% END %]
531                 [% IF ( XISBN.size ) %], [% END %][% XISBN.size %]
532 </td>
533
534 [% END %]
535 </table></div>[% END %]
536 [% END %]
537
538 [% IF ( LocalCoverImages ) %]
539 <div id="images">
540 [% IF ( localimages.0 ) %]
541 <p>Click on an image to view it in the image viewer</p>
542 [% FOREACH image IN localimages %]
543 [% IF image %]
544 <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>
545 [% END %]
546 [% END %]
547 [% ELSE %]
548 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
549 <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>
550 [% END %]
551 [% END %]
552 </div>
553 [% END %]
554
555 </div><!-- /bibliodetails -->
556
557 <div class="yui-g" id="export" style="margin-top: 1em;">
558 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
559 <table>  <tr>
560       <th>Save Record</th>   </tr>
561     <tr><td> Select download format:    <select name="format">
562         <option value="mods">MODS (XML)</option>
563         <option value="dc">Dublin Core (XML)</option>
564         <option value="marcxml">MARCXML</option>
565         <option value="marc8">MARC (non-Unicode/MARC-8)</option>
566         <option value="utf8">MARC (Unicode/UTF-8)</option>    </select>
567         <input type="submit" name="save" value="Download Record" /></td>
568   </tr>
569   <tr><td>
570     <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber %]" />
571   </td></tr>
572 </table>
573 </form>
574 </div>
575
576
577
578 </div>
579 </div>
580 <div class="yui-b">
581 [% INCLUDE 'biblio-view-menu.inc' %]
582 </div>
583 [% END %]
584 </div>
585 [% INCLUDE 'intranet-bottom.inc' %]