8903ce1065f88dc6853288684735e02346735037
[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 ( itemloo.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                         Item-level 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 %]for delivery at
342                     [% END %]   [% itemloo.ExpectedAtLibrary %]
343                     [% IF ( itemloo.waitingdate ) %]
344                         since [% itemloo.waitingdate %]
345                     [% ELSE %]
346                         [% IF ( itemloo.reservedate ) %](placed [% 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 ( 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 ( SpineLabelShowPrintOnBibDetails ) %]
374                         <td><a href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% itemloo.barcode %]" >Print Label</a></td>
375                 [% END %]
376
377                 </tr>
378             [% END %]
379         </table>
380         [% END %]
381                 [% IF ( hiddencount ) %]
382                    <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]&showallitems=1">Show all items ([% hiddencount %] hidden)</a>
383                 [% END %]               
384                 [% IF ( debug_display ) %]
385                 <br /><br />
386                 <table>
387                         <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron %]</td></tr>
388                         <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber %]</td></tr>
389                         <tr><td>serial</td><td>[% serial %]</td></tr>
390                 </table>
391                 [% END %]
392 [% ELSE %]
393     [% IF ( ALTERNATEHOLDINGS ) %]
394     [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
395         <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
396     [% END %]
397     [% ELSE %]
398     <div id="noitems">No physical items for this record</div>
399     [% END %]
400 [% END %]
401     </div>
402     
403 <div id="description">
404 <div class="content_set">
405 [% IF ( AmazonEnabled ) %]
406 [% FOREACH AMAZON_EDITORIAL_REVIEW IN AMAZON_EDITORIAL_REVIEWS %]
407     [% IF ( AMAZON_EDITORIAL_REVIEW.Content ) %]
408     <h4>From [% AMAZON_EDITORIAL_REVIEW.Source %]:</h4>
409     <p>[% AMAZON_EDITORIAL_REVIEW.Content %]</p>
410     [% END %]
411 [% END %]
412 [% END %]
413
414 [% IF ( MARCNOTES ) %]
415     [% FOREACH MARCNOTE IN MARCNOTES %]
416     <p>[% MARCNOTE.marcnote %]</p>
417     [% END %]
418     [% ELSE %]
419     [% IF ( notes ) %]
420     <p>[% notes %]</p>
421     [% END %]
422 [% END %]
423 </div>
424 </div>
425
426 [% IF ( subscriptionsnumber ) %]
427 <div id="subscriptions">
428 <div class="yui-g">
429 <div id="catalogue_detail_subscriptions">
430     <h2>This is a serial subscription</h2>
431     <p> (There are [% subscriptionsnumber %] subscriptions associated with this title).</p> 
432     [% FOREACH subscription IN subscriptions %]
433             [% IF ( subscription.branchname ) %]<h3>At library: [% subscription.branchname %]</h3>[% ELSE %]
434             [% IF ( subscription.branchcode ) %]<h3>At branch: [% subscription.branchcode %]</h3>[% END %][% END %]
435             [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes %] </p>[% END %]
436             [% IF ( subscription.latestserials ) %]
437             <p> The [% subscription.staffdisplaycount %] latest issues related to this subscription:</p>
438             <table>
439                 <tr>
440                     <th>Issue #</th>
441                     <th>Date</th>
442                     <th>Status</th>
443                     <th>Note</th>
444                 </tr>
445             [% FOREACH latestserial IN subscription.latestserials %]
446                 <tr>
447                     <td>[% latestserial.serialseq %]</td>
448                     <td>[% latestserial.planneddate %]</td>
449                     <td>[% IF ( latestserial.status1 ) %]Expected
450                         [% ELSE %]
451                             [% IF ( latestserial.status2 ) %]Arrived
452                             [% ELSE %]
453                                 [% IF ( latestserial.status3 ) %]Late
454                                 [% ELSE %]
455                                     [% IF ( latestserial.status4 ) %]Missing
456                                     [% ELSE %]
457                                         [% IF ( latestserial.status5 ) %]Not Issued
458                                         [% END %]
459                                     [% END %]
460                                 [% END %]
461                             [% END %]
462                         [% END %]</td>
463                     <td>[% latestserial.notes %]</td>
464                 </tr>
465             [% END %]
466             </table>
467             [% END %]
468                         <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]">Subscription Details</a>
469     [% END %]
470 </div>
471 </div>
472 </div>
473 [% END %]
474
475 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
476 <div id="editions"><h4>Editions</h4>
477 <table>
478 [% 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 %]
479 [% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description %][% ELSE %]<img src="[% XISBN.imageurl %]" alt="[% XISBN.description %]" title="[% XISBN.description %]">[% END %]</td>[% END %]
480 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a> by [% XISBN.author %] &copy;[% XISBN.copyrightdate %]
481   [% IF ( XISBN.publishercode ) %]
482 [% 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 %]
483     [% END %]
484                 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages %] [% IF ( XISBN.illus ) %][% XISBN.illus %][% END %]
485                 [% IF ( XISBN.size ) %], [% END %][% XISBN.size %]
486 </td>
487
488 [% END %]
489 </table></div>[% END %]
490 [% END %]
491
492 [% IF ( AmazonEnabled ) %][% IF ( AmazonSimilarItems ) %]
493 <div id="related">
494 <h4>Similar Items</h4>
495 <ul>
496 [% FOREACH AMAZON_SIMILAR_PRODUCT IN AMAZON_SIMILAR_PRODUCTS %]
497 [% FOREACH similar_biblionumber IN AMAZON_SIMILAR_PRODUCT.similar_biblionumbers %]
498 <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>
499 [% END %]
500 [% END %]
501 </ul>
502 </div>
503 [% END %][% END %]
504
505 </div><!-- /bibliodetails -->
506
507 <div class="yui-g" id="export" style="margin-top: 1em;">
508 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
509 <table>  <tr>
510       <th>Save Record</th>   </tr>
511   <tr>     <td> Select Download Format:    <select name="format">
512         <option value="mods">MODS (XML)</option>
513         <option value="dc">Dublin Core (XML)</option>
514         <option value="marcxml">MARCXML</option>
515         <option value="marc8">MARC (non-Unicode/MARC-8)</option>
516         <option value="utf8">MARC (Unicode/UTF-8)</option>    </select>
517         <input type="submit" name="save" value="Download Record" /></td>
518   </tr>
519   <tr><td>
520     <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber %]" />
521   </td></tr>
522 </table>
523 </form>
524 </div>
525
526
527
528 </div>
529 </div>
530 <div class="yui-b">
531 [% INCLUDE 'biblio-view-menu.inc' %]
532 </div>
533 [% END %]
534 </div>
535 [% INCLUDE 'intranet-bottom.inc' %]