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