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