Bug 6945: Add a link to show a MARC preview in the normal view of the detail
[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         [% 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 %]
120
121         [% IF ( AmazonCoverImages ) %]</div><div class="yui-u" id="bookcoverimg">
122         <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 %]
123     [% ELSE %]
124
125     <h3>[% title |html %]</h3>
126     [% FOREACH subtitl IN subtitle %]
127         <h4>[% subtitl.subfield %]</h4>
128     [% END %]
129             [% UNLESS ( item_level_itypes ) %]<img src="[% imageurl %]" alt="[% description %]" title="[% description %]">[% END %]
130             [% IF ( unititle ) %]<p>[% unititle |html %]</p>[% END %]
131             [% IF ( author ) %]<p>By <a href="/cgi-bin/koha/catalogue/search.pl?q=au:[% author |url %]">[% author %]</a></p>[% END %]
132         <ul>
133         [% IF ( MARCAUTHORS ) %]
134             <li><strong>Additional authors:</strong><ul>
135             [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
136                 <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>
137                 [% END %]
138
139         </ul>
140             </li>
141         [% END %]
142 [% IF ( MARCSERIES ) %]
143                 <li><strong>Series: </strong><ul>[% FOREACH MARCSERIE IN MARCSERIES %]
144                 <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> 
145                 [% END %]
146                 </ul>
147                 </li>
148 [% END %]
149         [% IF ( publishercode ) %]
150     <li><strong>Published by:</strong>
151         <a href="/cgi-bin/koha/catalogue/search.pl?q=pb:[% publishercode |url %]">
152             [% publishercode |html %]
153         </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %] [% IF ( editionstatement ) %][% editionstatement %][% END %] [% IF ( editionresponsability ) %][% editionresponsability %][% END %]
154     </li>
155     [% END %]
156         <li><strong>Description:</strong>
157                 [% IF ( pages ) %] [% END %][% pages %] [% IF ( illus ) %][% illus %][% END %]
158                 [% IF ( size ) %][% size %][% END %]
159         </li>
160 [% IF ( MARCURLS ) %]<li>
161     
162     <strong>Online resources:</strong>
163     <ul>    [% FOREACH MARCurl IN MARCURLS %]
164                 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]
165                         <br />[% END %] 
166                 <!-- here you might do a tmpl_if name="toc" and use greybox or equivalent for table of contents -->
167                 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">[% MARCurl.linktext %]</a>
168                         [% IF ( MARCurl.notes ) %]<ul>[% FOREACH note IN MARCurl.notes %]<li>[% note.note %]</li>[% END %]</ul>[% END %]</li>
169             [% END %]</ul>
170 </li>
171     [% END %]
172     
173     [% IF ( OpacUrl ) %]
174         <li><strong>OPAC view:</strong>
175         <a href="http://[% OpacUrl %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]" target="_blank">Open in new window</a>
176                 </li>
177         [% END %]
178         <li>
179             <strong>MARC Preview:</strong>
180             <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Show</a>
181         </li>
182         </ul>
183         </div>
184        
185 [% IF ( AmazonCoverImages ) %]<div class="yui-u" id="bookcoverimg">
186 <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 %]
187         
188         <div class="yui-u" style="margin-top: 1em;">
189         <ul>
190         [% IF ( MARCISBNS ) %]
191             <li><strong>ISBN:</strong><ul>[% FOREACH MARCISBN IN MARCISBNS %]<li>[% MARCISBN.marcisbn %]</li>[% END %]</ul></li>
192         [% ELSE %]
193             [% IF ( normalized_isbn ) %]
194                 <li><strong>ISBN:</strong> [% normalized_isbn %]</li>
195             [% END %]
196         [% END %]
197         [% IF ( issn ) %]
198             <li><strong>ISSN:</strong>[% issn %]</li>
199         [% END %]
200         [% IF ( collectiontitle ) %]
201             <li><strong>Collection: </strong>
202                 [% collectiontitle %] [% IF ( collectionvolume ) %], [% collectionvolume %][% END %][% IF ( collectionissn ) %] (<strong>ISSN:</strong> [% collectionissn %])[% END %]
203             </li>
204         [% END %]
205         [% IF ( MARCSUBJCTS ) %]
206             <li><strong>Subjects:</strong> 
207             <ul>
208                 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
209                 <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>
210                 [% END %]
211                 </ul>
212             </li>
213         [% END %]
214         [% IF ( copyrightdate ) %]
215             <li><strong>Copyright:</strong> [% copyrightdate %]</li>
216         [% END %]
217      
218         [% IF ( classification ) %]
219             <li><strong>Classification:</strong> [% subclass %][% classification %]</li>
220         [% END %]
221         [% IF ( dewey ) %]
222             <li><strong>Dewey:</strong> [% dewey %]</li>
223         [% END %]
224         [% IF ( urlS ) %]
225             <li><strong>url:</strong> 
226                 [% FOREACH url IN urlS %]
227                     <a href="[% url.url %]">[% url.url %]</a>
228                 [% END %]
229             </li>
230         [% END %]
231         <!--This grabs all of the lists a bib record appears in -->
232         [% IF ( GetShelves ) %]
233                 <li><strong>Lists that include this title: </strong>
234                 <ul>
235                 [% FOREACH GetShelve IN GetShelves %]
236                         <li><a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% GetShelve.shelfnumber %]">[% GetShelve.shelfname %]</a></li>
237                 [% END %]
238                 </ul>
239                 </li>
240         [% END %]
241         [% IF ( TagsEnabled &&  TagsShowOnDetail &&  TagLoop ) %]
242                 <li><strong>Tags:</strong>
243                     <ul id="tagslist">
244                     [% FOREACH TagLoo IN TagLoop %]
245                         <li>
246                         [% IF ( CAN_user_tools_moderate_tags ) %]
247                         <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term |html %]</a>
248                         [% ELSE %]
249                         [% TagLoo.term |html %]
250                         [% END %]
251                         <span class="weight">([% TagLoo.weight_total %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]</li>
252                     [% END %]
253                     </ul></li>
254         [% END %]
255             [% 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 %]
256         </ul>
257                 [% END %]
258
259 </div>
260 </div>
261 <div id="bibliodetails" class="toptabs">
262
263 <ul>   
264 <li><a href="#holdings">Holdings</a></li>
265 <li><a href="#description">Descriptions</a></li>
266 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
267 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
268 [% IF ( LocalCoverImages ) %][% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]<li><a href="#images">Images</a></li>[% END %][% END %]
269  </ul>
270
271 <div id="holdings">
272 [% IF ( count ) %]
273     [% IF ( showncount ) %]
274         <table>
275             <tr>
276                 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
277                 <th>Current location</th>
278                 <th>Home Library</th>
279                 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
280                 <th>Call number</th>
281                 <th>Status</th>
282                 <th>Last seen</th>
283                 <th>Barcode</th>
284                 [% IF ( volinfo ) %]<th>Publication details</th>[% END %]
285                 [% IF ( itemdata_uri ) %]<th>url</th>[% END %]
286                 [% IF ( itemdata_copynumber ) %]<th>Copy no.</th>[% END %]
287                 [% IF materials %]<th>Materials specified</th>[% END %]
288                 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
289         [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine label</th>[% END %]
290         [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
291                 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
292             </tr>
293             [% FOREACH itemloo IN itemloop %]
294                 <tr>
295                     [% IF ( item_level_itypes ) %]
296                     <td class="itype">
297                         [% IF !noItemTypeImages && itemloo.imageurl %]
298                             <img src="[% itemloo.imageurl %]" alt="[% itemloo.description %]" title="[% itemloo.description %]" />
299                         [% END %]
300                         [% itemloo.description %]
301                     </td>
302                     [% END %]
303                     <td class="location">[% UNLESS ( singlebranchmode ) %][% itemloo.branchname %] [% END %]</td>
304                     <td class="homebranch">[% itemloo.homebranch %]<span class="shelvingloc">[% itemloo.location %]</span> </td>
305                     [% IF ( itemdata_ccode ) %]<td>[% itemloo.ccode %]</td>[% END %]
306                     <td class="itemcallnumber">[% IF ( itemloo.itemcallnumber ) %] [% itemloo.itemcallnumber %][% END %]</td>
307                     <td class="status">
308
309                 [% IF ( itemloo.datedue ) %]
310                                                 <span class="datedue">Checked out
311                     [% UNLESS ( itemloo.NOTSAMEBRANCH ) %]
312                           to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.borrowernumber %]">
313                           [% IF ( itemloo.hidepatronname ) %]
314                               [% itemloo.cardnumber %]
315                           [% ELSE %]
316                               [% itemloo.firstname %] [% itemloo.surname %]
317                           [% END %]
318                           </a>
319                     [% END %]
320                                                 : due [% itemloo.datedue %]
321                                                 </span>
322                 [% ELSIF ( itemloo.transfertwhen ) %]
323                            In transit from [% itemloo.transfertfrom %],
324                            to [% itemloo.transfertto %], since [% itemloo.transfertwhen %]
325                                                         <!-- FIXME: the "since" clause is redundant w/ lastseen field -->
326                 [% END %]
327
328                 [% IF ( itemloo.itemlost ) %]
329                     [% IF ( itemloo.itemlostloop ) %]
330                     [% FOREACH itemlostloo IN itemloo.itemlostloop %]
331                         [% IF ( itemlostloo.selected ) %]
332                                         <span class="lost">[% itemlostloo.lib %]</span>
333                         [% END %]
334                     [% END %]
335                     [% ELSE %]
336                                         <span class="lost">Unavailable (lost or missing)</span>
337                     [% END %]
338                 [% END %]
339
340                 [% IF ( itemloo.wthdrawn ) %]
341                                         <span class="wdn">Withdrawn</span>
342                 [% END %]
343
344                 [% IF ( itemloo.damaged ) %]
345                     [% IF ( itemloo.itemdamagedloop ) %]
346                         [% FOREACH itemdamagedloo IN itemloo.itemdamagedloop %]
347                         [% IF ( itemdamagedloo.selected ) %]
348                                         <span class="dmg">[% itemdamagedloo.lib %]</span>
349                         [% END %]
350                         [% END %]
351                     [% ELSE %]
352                                         <span class="dmg">Damaged</span>
353                     [% END %]
354                 [% END %]
355
356                 [% IF ( itemloo.itemnotforloan ) %]
357                     Not for loan 
358                     [% IF ( itemloo.notforloanvalue ) %]
359                         ([% itemloo.notforloanvalue %])
360                     [% END %]
361                 [% END %]
362
363                             
364                 [% IF ( itemloo.reservedate ) %]
365                     [% IF ( itemloo.waitingdate ) %]
366                         Waiting
367                     [% ELSE %]
368                         Item-level hold
369                     [% END %]
370                     [% IF ( canreservefromotherbranches ) %]for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedForBorrowernumber %]">
371                         [% IF ( itemloo.hidepatronname ) %]
372                             [% itemloo.Reservedcardnumber %]
373                         [% ELSE %]
374                             [% itemloo.ReservedForFirstname %] [% itemloo.ReservedForSurname %]
375                         [% END %]
376                     </a>[% END %]
377                     [% IF ( itemloo.waitingdate ) %]
378                         at[% ELSE %]for delivery at
379                     [% END %]   [% itemloo.ExpectedAtLibrary %]
380                     [% IF ( itemloo.waitingdate ) %]
381                         since [% itemloo.waitingdate %]
382                     [% ELSE %]
383                         [% IF ( itemloo.reservedate ) %](placed [% itemloo.reservedate %])[% END %]
384                     [% END %]
385                 [% END %]
386                 [% UNLESS ( itemloo.itemnotforloan ) %][% UNLESS ( itemloo.onloan ) %][% UNLESS ( itemloo.itemlost ) %][% UNLESS ( itemloo.wthdrawn ) %][% UNLESS ( itemloo.damaged ) %][% UNLESS ( itemloo.transfertwhen ) %][% UNLESS ( itemloo.reservedate ) %]
387                                         Available
388                 [% END %][% END %][% END %][% END %][% END %][% END %][% END %]
389
390                 [% IF ( itemloo.restricted ) %]<span class="restricted">([% itemloo.restricted %])</span>[% END %]
391                         
392                     </td>
393                     <td class="datelastseen">[% itemloo.datelastseen %]</td>
394                     <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>
395                                 [% IF ( volinfo ) %]    <td class="enumchron">
396                                         [% IF ( itemdata_enumchron ) %]
397                                                 [% IF ( itemloo.enumchron ) %]
398                                                 [% itemloo.enumchron %][% IF ( itemloo.serialseq ) %] -- [% END %]
399                                                 [% END %]
400                                         [% itemloo.serialseq %][% IF ( itemloo.publisheddate ) %] ([% itemloo.publisheddate %])[% END %]
401                                         [% END %]
402                                 </td>[% END %]
403                                 [% IF ( itemdata_uri ) %]
404                                         <td class="uri"><a href="[% itemloo.uri %]">[% itemloo.uri %]</a></td>
405                                 [% END %]
406                                 [% IF ( itemdata_copynumber ) %]
407                                         <td class="copynumber">[% itemloo.copynumber %]</td>
408                                 [% END %]
409                 [% IF materials %]
410                     <td class="materials"> [% itemloo.materials %] </td>
411                 [% END %]
412                 [% IF ( itemdata_itemnotes ) %]<td><div class="itemnotes">[% itemloo.itemnotes %]</div></td>[% END %]
413                 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
414             <td><a href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% itemloo.barcode %]" >Print label</a></td>
415                 [% END %]
416                 [% IF ( hostrecords ) %]
417                       <td>[% IF ( itemloo.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itemloo.hostbiblionumber %]" >[% itemloo.hosttitle %]</a>[% END %]</td>
418                 [% END %]
419                 [% IF ( analyze ) %]<td>
420                         [% IF ( itemloo.countanalytics ) %]
421                                 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&amp;q=[% itemloo.itemnumber %]">[% itemloo.countanalytics %] analytics</a>
422                         [% END %]</td>
423                 [% END %]
424                 [% IF ( analyze ) %]
425                         <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% itemloo.biblionumber %]&amp;hostitemnumber=[% itemloo.itemnumber %]">Create analytics</a></td>
426                 [% END %]
427
428                 </tr>
429             [% END %]
430         </table>
431         [% END %]
432                 [% IF ( hiddencount ) %]
433                    <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]&amp;showallitems=1">Show all items ([% hiddencount %] hidden)</a>
434                 [% END %]               
435                 [% IF ( debug_display ) %]
436                 <br /><br />
437                 <table>
438                         <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron %]</td></tr>
439                         <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber %]</td></tr>
440                         <tr><td>serial</td><td>[% serial %]</td></tr>
441                 </table>
442                 [% END %]
443 [% ELSE %]
444     [% IF ( ALTERNATEHOLDINGS ) %]
445     [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
446         <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
447     [% END %]
448     [% ELSE %]
449     <div id="noitems">No physical items for this record</div>
450     [% END %]
451 [% END %]
452     </div>
453     
454 <div id="description">
455 <div class="content_set">
456
457 [% IF ( MARCNOTES ) %]
458     [% FOREACH MARCNOTE IN MARCNOTES %]
459     <p>[% MARCNOTE.marcnote FILTER html_line_break %]</p>
460     [% END %]
461     [% ELSE %]
462     [% IF ( notes ) %]
463     <p>[% notes %]</p>
464     [% END %]
465 [% END %]
466 </div>
467 </div>
468
469 [% IF ( subscriptionsnumber ) %]
470 <div id="subscriptions">
471 <div class="yui-g">
472 <div id="catalogue_detail_subscriptions">
473     <h2>This is a serial subscription</h2>
474     <p> (There are [% subscriptionsnumber %] subscriptions associated with this title).</p> 
475     [% FOREACH subscription IN subscriptions %]
476             [% IF ( subscription.branchname ) %]<h3>At library: [% subscription.branchname %]</h3>[% ELSE %]
477             [% IF ( subscription.branchcode ) %]<h3>At library: [% subscription.branchcode %]</h3>[% END %][% END %]
478             [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>[% END %]
479             [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist %] </p>[% END %]
480             [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote %])</p>[% END %]
481             [% IF ( subscription.latestserials ) %]
482             <p> The [% subscription.staffdisplaycount %] latest issues related to this subscription:</p>
483             <table>
484                 <tr>
485                     <th>Issue #</th>
486                     <th>Date</th>
487                     <th>Status</th>
488                     <th>Note</th>
489                 </tr>
490             [% FOREACH latestserial IN subscription.latestserials %]
491                 <tr>
492                     <td>[% latestserial.serialseq %]</td>
493                     <td>[% latestserial.planneddate %]</td>
494                     <td>[% IF ( latestserial.status1 ) %]Expected
495                         [% ELSE %]
496                             [% IF ( latestserial.status2 ) %]Arrived
497                             [% ELSE %]
498                                 [% IF ( latestserial.status3 ) %]Late
499                                 [% ELSE %]
500                                     [% IF ( latestserial.status4 ) %]Missing
501                                     [% ELSE %]
502                                         [% IF ( latestserial.status5 ) %]Not issued
503                                         [% END %]
504                                     [% END %]
505                                 [% END %]
506                             [% END %]
507                         [% END %]</td>
508                     <td>[% latestserial.notes %]</td>
509                 </tr>
510             [% END %]
511             </table>
512             [% END %]
513             <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]">Subscription details</a>
514     [% END %]
515 </div>
516 </div>
517 </div>
518 [% END %]
519
520 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
521 <div id="editions"><h4>Editions</h4>
522 <table>
523 [% 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 %]
524 [% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description %][% ELSE %]<img src="[% XISBN.imageurl %]" alt="[% XISBN.description %]" title="[% XISBN.description %]">[% END %]</td>[% END %]
525 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a> by [% XISBN.author %] &copy;[% XISBN.copyrightdate %]
526   [% IF ( XISBN.publishercode ) %]
527 [% 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 %]
528     [% END %]
529                 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages %] [% IF ( XISBN.illus ) %][% XISBN.illus %][% END %]
530                 [% IF ( XISBN.size ) %], [% END %][% XISBN.size %]
531 </td>
532
533 [% END %]
534 </table></div>[% END %]
535 [% END %]
536
537 [% IF ( LocalCoverImages ) %]
538 <div id="images">
539 [% IF ( localimages.0 ) %]
540 <p>Click on an image to view it in the image viewer</p>
541 [% FOREACH image IN localimages %]
542 [% IF image %]
543 <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>
544 [% END %]
545 [% END %]
546 [% ELSE %]
547 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
548 <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>
549 [% END %]
550 [% END %]
551 </div>
552 [% END %]
553
554 </div><!-- /bibliodetails -->
555
556 <div class="yui-g" id="export" style="margin-top: 1em;">
557 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
558 <table>  <tr>
559       <th>Save Record</th>   </tr>
560     <tr><td> Select download format:    <select name="format">
561         <option value="mods">MODS (XML)</option>
562         <option value="dc">Dublin Core (XML)</option>
563         <option value="marcxml">MARCXML</option>
564         <option value="marc8">MARC (non-Unicode/MARC-8)</option>
565         <option value="utf8">MARC (Unicode/UTF-8)</option>    </select>
566         <input type="submit" name="save" value="Download Record" /></td>
567   </tr>
568   <tr><td>
569     <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber %]" />
570   </td></tr>
571 </table>
572 </form>
573 </div>
574
575
576
577 </div>
578 </div>
579 <div class="yui-b">
580 [% INCLUDE 'biblio-view-menu.inc' %]
581 </div>
582 [% END %]
583 </div>
584 [% INCLUDE 'intranet-bottom.inc' %]