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