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