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