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