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