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