5 [% USE AuthorisedValues %]
8 [% USE ColumnsSettings %]
9 [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
10 [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
12 [% IF Koha.Preference('AmazonAssocTag') %]
13 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
15 [% AmazonAssocTag = '' %]
18 [% ShowCourseReserves = 0 | html %]
19 [% IF UseCourseReserves %]
20 [% FOREACH item IN itemloop %]
21 [% IF item.course_reserves %]
22 [% FOREACH r IN item.course_reserves %]
23 [% IF r.course.enabled == 'yes' %]
24 [% ShowCourseReserves = 1 | html %]
31 [% SET footerjs = 1 %]
32 [% INCLUDE 'doc-head-open.inc' %]
33 <title>Koha › Catalog ›
34 [% IF ( unknownbiblionumber ) %]
37 Details for [% title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]
40 [% INCLUDE 'doc-head-close.inc' %]
41 [% Asset.css("css/datatables.css") | $raw %]
44 <body id="catalog_detail" class="catalog">
46 [% INCLUDE 'header.inc' %]
47 [% INCLUDE 'cat-search.inc' %]
49 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> ›
50 [% IF ( unknownbiblionumber ) %]
53 Details for <i>[% title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]</i>
57 <div id="doc3" class="yui-t2">
59 [% IF ( unknownbiblionumber ) %]
60 <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
66 [% INCLUDE 'cat-toolbar.inc' %]
68 <!-- COinS / OpenURL -->
69 <span class="Z3988" title="[% ocoins | html %]"></span>
72 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %]
73 [% IF ( XSLTDetailsDisplay ) %]
75 <div id="catalogue_detail_biblio" class="yui-u first">
78 <div id="catalogue_detail_biblio" class="yui-u first">
81 [% IF ( XSLTDetailsDisplay ) %]
83 <div id="catalogue_detail_biblio">
86 <div id="catalogue_detail_biblio" class="yui-u first">
90 [% IF ( XSLTDetailsDisplay ) %]
93 [% IF shelves.count %]
94 <span class="results_summary"><span class="label">Lists that include this title: </span>
95 [% FOREACH s IN shelves %]
96 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
97 [% IF ( loop.last ) %][% ELSE %]|[% END %]
101 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
102 <span class="results_summary"><span class="label">Tags:</span>
103 [% FOREACH TagLoo IN TagLoop %]
104 [% IF ( CAN_user_tools_moderate_tags ) %]
105 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
107 [% TagLoo.term | html %]
109 <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
113 <span id="catalogue_detail_marc_preview" class="results_summary"><span class="label">MARC Preview:</span> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber | uri %]&viewas=html" title="MARC" class="previewMARC">Show</a></span>
115 [% IF ( holdcount ) %]
116 <span class="results_summary">
117 <span class="label">Holds:</span>
118 <span class="number_box">
119 [% IF CAN_user_reserveforothers_place_holds %]
120 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a>
122 <span>[% holdcount | html %]</span>
128 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
129 <span class="results_summary">
130 <span class="label">Article requests:</span>
131 <span class="number_box">
132 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | uri %]">[% article_requests_count | html %]</a>
137 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %]
138 </div><div class="yui-u" id="bookcoverimg">
139 [% IF ( LocalCoverImages ) %]
140 <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
142 [% IF ( AdlibrisEnabled && normalized_isbn ) %]
143 <a href="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]"><img src="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]" class="adlibris-cover-big" alt="Adlibris cover image" /></a>
145 [% IF ( AmazonCoverImages ) %]
146 <div id="amazon-bookcoverimg">
147 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
148 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
154 <h3>[% title | html %]</h3>
155 [% FOREACH subtitl IN subtitle %]
156 <h4>[% subtitl.subfield | html %]</h4>
158 [% UNLESS ( item_level_itypes ) %]<img src="[% imageurl | html %]" alt="[% translated_description | html %]" title="[% translated_description | html %]">[% END %]
159 [% IF ( unititle ) %]<p>[% unititle | html %]</p>[% END %]
160 [% IF ( author ) %]<p>By <a href="/cgi-bin/koha/catalogue/search.pl?q=au:[% author |url %]">[% author | html %]</a></p>[% END %]
162 [% IF ( MARCAUTHORS ) %]
163 <li><strong>Additional authors:</strong><ul>
164 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
165 <li>[% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% MARCAUTHOR_SUBFIELDS_LOO.separator | html %]<a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code | html %] [% 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 | html %]:[% link_loo.link |url %][% END %]">[% MARCAUTHOR_SUBFIELDS_LOO.value | html %]</a>[% END %]</li>
171 [% IF ( MARCSERIES ) %]
172 <li><strong>Series: </strong><ul>[% FOREACH MARCSERIE IN MARCSERIES %]
173 <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 | html %]</a>[% END %][% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]. [% MARCSERIES_SUBFIELDS_LOO.volumenum | html %][% END %][% END %]</li>
178 [% IF ( publishercode ) %]
179 <li><strong>Published by:</strong>
180 <a href="/cgi-bin/koha/catalogue/search.pl?q=pb:[% publishercode |url %]">
181 [% publishercode | html %]
182 </a> [% IF ( place ) %]([% place | html %])[% END %] [% IF ( publicationyear ) %], [% publicationyear | html %][% END %] [% IF ( editionstatement ) %][% editionstatement | html %][% END %] [% IF ( editionresponsibility ) %][% editionresponsibility | html %][% END %]
185 <li><strong>Description:</strong>
186 [% IF ( pages ) %] [% END %][% pages | html %] [% IF ( illus ) %][% illus | html %][% END %]
187 [% IF ( size ) %][% size | html %][% END %]
189 [% IF ( MARCURLS ) %]<li>
191 <strong>Online resources:</strong>
192 <ul> [% FOREACH MARCurl IN MARCURLS %]
193 <li>[% IF ( MARCurl.part ) %][% MARCurl.part | html %]
195 <!-- here you might do a tmpl_if name="toc" and use greybox or equivalent for table of contents -->
196 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]">[% MARCurl.linktext | html %]</a>
197 [% IF ( MARCurl.notes ) %]<ul>[% FOREACH note IN MARCurl.notes %]<li>[% note.note | html %]</li>[% END %]</ul>[% END %]</li>
202 [% IF ( OPACBaseURL ) %]
203 <li><strong>OPAC view:</strong>
204 <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | uri %]" target="_blank">Open in new window</a>
207 <li id="catalogue_detail_marc_preview">
208 <strong>MARC Preview:</strong>
209 <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber | uri %]" title="MARC" rel="gb_page_center[600,500]">Show</a>
214 [% IF ( AmazonCoverImages || LocalCoverImages ) %]
215 <div class="yui-u" id="bookcoverimg">
216 [% IF ( LocalCoverImages ) %]
217 <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
219 [% IF ( AmazonCoverImages ) %]
220 <div id="amazon-bookcoverimg">
221 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
222 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
229 <div class="yui-u" style="margin-top: 1em;">
231 [% IF ( MARCISBNS ) %]
232 <li><strong>ISBN:</strong><ul>[% FOREACH MARCISBN IN MARCISBNS %]<li>[% MARCISBN | html %]</li>[% END %]</ul></li>
234 [% IF ( normalized_isbn ) %]
235 <li><strong>ISBN:</strong> [% normalized_isbn | html %]</li>
239 <li><strong>ISSN:</strong>[% issn | html %]</li>
241 [% IF ( collectiontitle ) %]
242 <li><strong>Collection: </strong>
243 [% collectiontitle | html %] [% IF ( collectionvolume ) %], [% collectionvolume | html %][% END %][% IF ( collectionissn ) %] (<strong>ISSN:</strong> [% collectionissn | html %])[% END %]
246 [% IF ( MARCSUBJCTS ) %]
247 <li><strong>Subjects:</strong>
249 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
250 <li>[% FOREACH MARCSUBJECT_SUBFIELDS_LOO IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %] [% MARCSUBJECT_SUBFIELDS_LOO.separator | html %] <a title="‡[% MARCSUBJECT_SUBFIELDS_LOO.code | html %] [% MARCSUBJECT_SUBFIELDS_LOO.value | html %]" href="/cgi-bin/koha/catalogue/search.pl?q=[% FOREACH link_loo IN MARCSUBJECT_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit | html %]:[% link_loo.link |url %][% END %]">[% MARCSUBJECT_SUBFIELDS_LOO.value | html %]</a>[% END %]</li>
255 [% IF ( copyrightdate ) %]
256 <li><strong>Copyright:</strong> [% copyrightdate | html %]</li>
259 [% IF ( classification ) %]
260 <li><strong>Classification:</strong> [% subclass | html %][% classification | html %]</li>
263 <li><strong>Dewey:</strong> [% dewey | html %]</li>
266 <li><strong>URL:</strong>
267 [% FOREACH url IN urlS %]
268 <a href="[% url.url | url %]">[% url.url | html %]</a>
272 <!--This grabs all of the lists a bib record appears in -->
273 [% IF shelves.count %]
274 <li><strong>Lists that include this title: </strong>
276 [% FOREACH s IN shelves %]
277 <li><a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a></li>
282 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
283 <li><strong>Tags:</strong>
285 [% FOREACH TagLoo IN TagLoop %]
287 [% IF ( CAN_user_tools_moderate_tags ) %]
288 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
290 [% TagLoo.term | html %]
292 <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]</li>
296 [% IF ( holdcount ) %]<li><strong>Holds:</strong> <span class="number_box"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a></span></li>[% ELSE %][% END %]
302 <div id="bibliodetails" class="toptabs">
305 [% IF (SeparateHoldings) %]
307 <a href="#holdings">[% LoginBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
310 <a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
314 <a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a>
317 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions</a></li>[% END %]
318 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
319 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
320 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
321 [% IF ( LocalCoverImages ) %]
322 [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
324 <a href="#images">Images ([% localimages.size() || 0 | html %])</a>
328 [% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %]
329 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
330 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
334 [% items_table_block_iter = 0 %]
335 [% BLOCK items_table %]
336 [% items_table_block_iter = items_table_block_iter + 1 %]
337 <div class="[% tab | html %]_table_table_controls">
338 [% IF (StaffDetailItemSelection) %]
339 | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
340 <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
341 <span class="itemselection_actions">
343 [% IF CAN_user_tools_items_batchdel %]
344 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
346 [% IF CAN_user_tools_items_batchmod %]
347 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
352 <table class="items_table" id="[% tab | html %]_table">
355 [% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %]
356 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
357 <th>Current location</th>
358 <th>Home library</th>
359 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
361 [% IF ( volinfo ) %]<th>Serial enumeration / chronology</th>[% END %]
363 <th class="title-string">Last seen</th>
364 <th class="title-string">Date accessioned</th>
366 [% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
367 [% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
368 [% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
369 [% IF materials %]<th>Materials specified</th>[% END %]
370 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
371 [% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %]
372 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine label</th>[% END %]
373 [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
374 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
375 [% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
376 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort"> </th>[% END %]
380 [% FOREACH item IN items %]
382 [% IF (StaffDetailItemSelection) %]
383 <td style="text-align:center;vertical-align:middle">
384 <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
387 [% IF ( item_level_itypes ) %]
389 [% IF !noItemTypeImages && item.imageurl %]
390 <img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
392 [% item.translated_description | html %]
395 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
396 <td class="homebranch">[% Branches.GetName(item.homebranch) | html %]<span class="shelvingloc">[% item.location | html %]</span> </td>
397 [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
398 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
400 <td class="enumchron">
401 [% IF ( itemdata_enumchron ) %]
402 [% IF item.enumchron && item.serialseq %]
403 <span class="enum">[% item.enumchron | html %]</span>
404 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
405 <span class="sep"> -- </span>
406 <span class="serialseq">[% item.serialseq | html %]</span>
408 [% ELSIF item.enumchron %]
409 <span class="enum">[% item.enumchron | html %]</span>
410 [% ELSIF item.serialseq %]
411 <span class="serialseq">[% item.serialseq | html %]</span>
413 [% IF ( item.publisheddate ) %]
414 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
421 [% IF item.CheckedOutFor %]
422 [% IF item.onsite_checkout %]
423 <span>Currently in local use
425 <span class="datedue">Checked out
427 [% UNLESS ( item.NOTSAMEBRANCH ) %]
428 [% IF item.onsite_checkout %]
433 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
435 : due [% item.datedue | html %]
437 [% ELSIF ( item.transfertwhen ) %]
438 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
441 [% IF ( item.itemlost ) %]
442 [% IF itemlostloop %]
443 [% FOREACH itemlostloo IN itemlostloop %]
444 [% IF itemlostloo.authorised_value == item.itemlost %]
445 <span class="lost">[% itemlostloo.lib | html %]</span>
449 <span class="lost">Unavailable (lost or missing)</span>
453 [% IF ( item.withdrawn ) %]
454 [% IF itemwithdrawnloop %]
455 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
456 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
457 <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
461 <span class="wdn">Withdrawn</span>
465 [% IF ( item.damaged ) %]
466 [% IF itemdamagedloop %]
467 [% FOREACH itemdamagedloo IN itemdamagedloop %]
468 [% IF itemdamagedloo.authorised_value == item.damaged %]
469 <span class="dmg">[% itemdamagedloo.lib | html %]</span>
473 <span class="dmg">Damaged</span>
477 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
479 [% IF ( item.notforloanvalue ) %]
480 ([% item.notforloanvalue | html %])
484 [% IF ( item.reservedate ) %]
485 [% IF ( item.waitingdate ) %]
486 Waiting at [% Branches.GetName( item.ExpectedAtLibrary ) | html %] since [% item.waitingdate | $KohaDates %].
488 Item-level hold (placed [% item.reservedate | $KohaDates %]) for delivery at [% Branches.GetName( item.ExpectedAtLibrary ) | html %].
490 [% IF ( canreservefromotherbranches ) %]
492 [% INCLUDE 'patron-title.inc' patron=item.ReservedFor hide_patron_infos_if_needed=1 %]
495 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %]
499 [% IF ( item.restricted ) %]
500 <span class="restricted">([% item.restrictedvalue | html %])</span>
504 <td class="datelastseen"><span title="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</span></td>
505 <td class="dateaccessioned"><span title="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</span></td>
506 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=[% item.type | uri %]&itemnumber=[% item.itemnumber | uri %]&biblionumber=[% item.biblionumber | uri %]&bi=[% item.biblioitemnumber | uri %]#item[% item.itemnumber | uri %]">[% item.barcode | html %]</a></td>
507 [% IF ( itemdata_uri ) %]
508 <td class="uri"><a href="[% item.uri | url %]">[% item.uri | html %]</a></td>
510 [% IF ( itemdata_copynumber ) %]
511 <td class="copynumber">[% item.copynumber | html %]</td>
513 [% IF ( itemdata_stocknumber ) %]
514 <td class="stocknumber">[% item.stocknumber | html %]</td>
517 <td class="materials"> [% item.materials | html %] </td>
519 [% IF ( itemdata_itemnotes ) %]
520 <td><div class="itemnotes">[% item.itemnotes | html %]</div></td>
522 [% IF itemdata_nonpublicnotes %]
523 <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
525 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
526 <td><a href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% item.barcode | uri %]" >Print label</a></td>
528 [% IF ( hostrecords ) %]
529 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
533 [% IF ( item.countanalytics ) %]
534 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
539 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
542 [% IF ShowCourseReserves %]
544 [% IF item.course_reserves %]
545 [% FOREACH r IN item.course_reserves %]
546 [% IF r.course.enabled == 'yes' %]
548 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
549 [% r.course.course_name | html %]
550 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
551 [% IF r.course.section %] [% r.course.section | html %] [% END %]
552 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
560 [% IF CAN_user_editcatalogue_edit_items %]
562 [% UNLESS item.cannot_be_edited %]
563 <a class="btn btn-default btn-xs" href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber | html %]&itemnumber=[% item.itemnumber | html %]#edititem"><i class="fa fa-pencil"></i> Edit</a>
571 [% END %][%# end of block items_table %]
575 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
576 <span class="results_summary NovelistSelect" style="display:none;">
577 <span class="label">Novelist Select: </span>
578 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
583 [% IF ( showncount ) %]
584 [% PROCESS items_table tab="holdings" items=itemloop %]
586 [% IF ( hiddencount ) %]
587 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
589 [% IF ( debug_display ) %]
592 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
593 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
594 <tr><td>serial</td><td>[% serial | html %]</td></tr>
598 [% IF ( ALTERNATEHOLDINGS ) %]
599 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
600 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
603 <div id="noitems">No physical items for this record</div>
607 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
608 <span class="results_summary NovelistSelect" style="display:none;">
609 <span class="label">Novelist Select: </span>
610 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
615 [% IF (SeparateHoldings) %]
616 <div id="otherholdings">
617 [% IF (otheritemloop.size) %]
618 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
625 [% IF ( MARCNOTES || notes ) %]
627 <div id="description">
628 <div class="content_set">
630 [% IF ( MARCNOTES ) %]
631 [% FOREACH MARCNOTE IN MARCNOTES %]
633 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
634 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
636 [% MARCNOTE.marcnote | html | html_line_break %]
642 <p>[% notes | html %]</p>
650 [% IF ( subscriptionsnumber ) %]
651 <div id="subscriptions">
653 <div id="catalogue_detail_subscriptions">
654 <h2>This is a serial subscription</h2>
655 <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
656 [% FOREACH subscription IN subscriptions %]
657 [% IF subscription.branchcode %]
658 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
660 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
661 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
662 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
663 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
664 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
665 [% IF ( subscription.latestserials ) %]
666 <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
670 <th>Date arrived</th>
671 <th>Date published</th>
675 [% FOREACH latestserial IN subscription.latestserials %]
677 <td>[% latestserial.serialseq | html %]</td>
678 <td>[% latestserial.planneddate | html %]</td>
679 <td>[% latestserial.publisheddate | html %]</td>
681 [% IF ( latestserial.status1 ) %]Expected[% END %]
682 [% IF ( latestserial.status2 ) %]Arrived[% END %]
683 [% IF ( latestserial.status3 ) %]Late[% END %]
684 [% IF ( latestserial.status4 ) %]Missing[% END %]
685 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
686 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
687 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
688 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
689 [% IF ( latestserial.status5 ) %]Not issued[% END %]
690 [% IF ( latestserial.status6 ) %]Delete[% END %]
691 [% IF ( latestserial.status7 ) %]Claimed[% END %]
692 [% IF ( latestserial.status8 ) %]Stopped[% END %]
694 <td>[% latestserial.notes | html %]</td>
699 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
706 [% IF Koha.Preference('AcquisitionDetails') %]
707 <div id="acq_details">
714 <th>Basket group</th>
716 <th>Order number</th>
717 <th class="title-string">Creation date</th>
718 <th class="title-string">Receive date</th>
721 <th>Subscription</th>
722 <th>Subscription callnumber</th>
726 [% FOR order IN orders %]
727 [% SET basket = order.basket %]
728 [% SET vendor = basket.bookseller %]
731 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
734 [% IF order.invoiceid %]
735 [% IF CAN_user_acquisition %]
736 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
737 title="Invoice detail page">
738 [% order.invoice.invoicenumber | html %]</a>
740 [% order.invoice.invoicenumber | html %]
745 [% IF basket.basketgroupid %]
746 [% SET basket_group = basket.basket_group %]
747 [% IF CAN_user_acquisition_group_manage %]
748 <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% vendor.id | uri %]&basketgroupid=[% basket_group.id | uri %]">[% basket_group.name | html%] ([% basket_group.id | html %])</a>
750 [% basket_group.name | html %] ([% basket_group.id | html %])
754 <td>[% IF CAN_user_acquisition_order_manage %]
755 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
757 [% basket.basketname | html %] ([% basket.basketno | html %])
759 <td>[% order.ordernumber | html %]</td>
760 <td><span title="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</span></td>
761 <td><span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</span></td>
763 [% SWITCH order.orderstatus %]
765 [% CASE 'ordered' %]Ordered
766 [% CASE 'partial' %]Partial
767 [% CASE 'complete' %]Complete
768 [% CASE 'cancelled' %]Cancelled
771 <td>[% order.quantity | html %]</td>
773 [% IF order.subscriptionid %]
774 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
778 [% IF order.subscriptionid %]
779 [% order.subscription.callnumber | html %]
787 There is no order for this biblio.
792 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
793 <div id="editions"><h4>Editions</h4>
795 [% FOREACH XISBN IN XISBNS %]<tr>[% IF ( AmazonCoverImages ) %]<td><a href="http://www.amazon.com/gp/reader/[% XISBN.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"><img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" /></a></td>[% END %]
796 [% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description | html %][% ELSE %]<img src="[% XISBN.imageurl | html %]" alt="[% XISBN.description | html %]" title="[% XISBN.description | html %]">[% END %]</td>[% END %]
797 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
798 [% IF ( XISBN.publishercode ) %]
799 [% XISBN.publishercode | html %] [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %] [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear | html %][% END %] [% IF ( XISBN.editionstatement ) %][% XISBN.editionstatement | html %][% END %] [% IF ( XISBN.editionresponsibility ) %][% XISBN.editionresponsibility | html %][% END %]
801 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
802 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
806 </table></div>[% END %]
809 [% IF ( LocalCoverImages ) %]
811 [% IF ( localimages.0 ) %]
812 <p>Click on an image to view it in the image viewer</p>
813 <ul class="thumbnails">
814 [% FOREACH image IN localimages %]
816 <li id="imagenumber-[% image | html %]">
817 <a class="thumbnail" href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | html %]&imagenumber=[% image | html %]">
818 <img alt="remove this image" src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image | html %]" />
819 [% IF CAN_user_tools_upload_local_cover_images %]
820 <span class="remove" title="remove this image">Delete image</span>
827 [%# ELSE - No image passed JavaScript takes care %]
832 [% IF ( HTML5MediaEnabled ) %]
833 <div id="html5media">
834 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
836 <[% HTML5MediaParent | html %] controls preload=none>
837 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]"[% HTML5MediaSet.typeblock | html %] />
838 [[% HTML5MediaParent | html %] tag not supported by your browser.]
839 </[% HTML5MediaParent | html %]>
846 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
847 <div id="NovelistSelect" class="novelistSelect">
848 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
852 </div><!-- /bibliodetails -->
854 <div class="yui-g" id="export" style="margin-top: 1em;">
855 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
857 <th>Save Record</th> </tr>
858 <tr><td> Select download format: <select name="format">
859 <option value="mods">MODS (XML)</option>
860 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
861 <option value="marcxml">MARCXML</option>
862 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
863 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
864 <input type="submit" name="save" value="Download Record" /></td>
867 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
873 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
874 <div class="modal-dialog modal-lg">
875 <div class="modal-content">
876 <div class="modal-header">
877 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
878 <h3 id="marcPreviewLabel">MARC preview</h3>
880 <div class="modal-body">
881 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
883 <div class="modal-footer">
884 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
893 [% INCLUDE 'biblio-view-menu.inc' %]
898 [% MACRO jsinclude BLOCK %]
899 [% INCLUDE 'catalog-strings.inc' %]
900 [% Asset.js("js/catalog.js") | $raw %]
901 [% INCLUDE 'greybox.inc' %]
902 <script type="text/javascript">
903 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
904 function verify_images() {
905 $("#bookcoverimg").each(function(i){
906 $(this).find('img').each(function(i){
907 if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0) || (this.src.indexOf('images-na.ssl-images-amazon.com'))) {
910 if ((w == 1) || (h == 1)) {
911 $("#amazon-bookcoverimg").remove();
912 $(".yui-gb").attr("class","yui-g");
913 } else if ((this.complete != null) && (!this.complete)) {
914 $("#amazon-bookcoverimg").remove();
915 $(".yui-gb").attr("class","yui-g");
919 if( $(this).find('img').length < 1 ) $(this).remove();
921 $("#editions img").each(function(i){
922 if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0) || (this.src.indexOf('images-na.ssl-images-amazon.com'))) {
925 if ((w == 1) || (h == 1)) {
926 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
927 } else if ((this.complete != null) && (!this.complete)) {
928 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
934 function removeLocalImage(imagenumber) {
936 url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
937 success: function(data) {
938 $(data).each( function(i) {
939 if ( this.deleted == 1 ) {
940 $('#imagenumber-' + this.imagenumber).remove();
942 if ( $('ul.thumbnails > li').length == 0 ) {
943 showNoImageMessage();
947 error: function(data) {
948 alert(_("An error occurred on deleting this image"));
953 function showNoImageMessage() {
954 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
955 no_images_msg = '<p>' + no_images_msg + '</p>';
956 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
957 var please_upload = _("Please select the image file to upload. %sUpload%s").format("<a class='btn btn-default btn-xs' href='/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=" + biblionumber + "&filetype=image'><i class='fa fa-upload' aria-hidden='true'></i> ","</a>");
958 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
960 $('#images').html(no_images_msg);
963 [% IF StaffDetailItemSelection %]
964 function itemSelectionBuildDeleteLink(div) {
965 var itemnumbers = new Array();
966 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
967 itemnumbers.push($(this).val());
969 if (itemnumbers.length > 0) {
970 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
971 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
972 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
973 $('a.itemselection_action_delete').attr('href', url);
980 function itemSelectionBuildModifyLink(div) {
981 var itemnumbers = new Array();
982 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
983 itemnumbers.push($(this).val());
985 if (itemnumbers.length > 0) {
986 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
987 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
988 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
989 $('a.itemselection_action_modify').attr('href', url);
996 function itemSelectionBuildActionLinks(tab) {
997 var div = $("#" + tab);
998 var delete_link_ok = itemSelectionBuildDeleteLink(div);
999 var modify_link_ok = itemSelectionBuildModifyLink(div);
1000 if (modify_link_ok || delete_link_ok) {
1001 $('.itemselection_actions', div).show();
1003 $('.itemselection_actions', div).hide();
1007 $(document).ready(function() {
1008 $('table.items_table').each(function() {
1009 var div = $(this).parent().attr("id");
1010 itemSelectionBuildActionLinks(div);
1013 $("input[name='itemnumber'][type='checkbox']").change(function() {
1014 var div = $(this).parents('table').parent().parent().attr("id");
1015 itemSelectionBuildActionLinks(div);
1018 $(".SelectAll").on("click",function(e){
1020 var tab = $(this).data("tab");
1021 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
1022 itemSelectionBuildActionLinks(tab);
1025 $(".ClearAll").on("click",function(e){
1027 var tab = $(this).data("tab");
1028 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
1029 itemSelectionBuildActionLinks(tab);
1034 $(document).ready(function() {
1035 $('#bibliodetails').tabs();
1037 $('#bibliodetails').tabs("option", "active", 3);
1039 $('#search-form').focus();
1040 $('.thumbnails > li > a > span.remove').click(function() {
1041 var result = confirm(_("Are you sure you want to delete this cover image?"));
1043 if ( result == true ) {
1044 var imagenumber = $(this).parent().parent().attr('id').split('-')[1];
1045 removeLocalImage(imagenumber);
1050 [%# inject no images message %]
1051 [% IF ( LocalCoverImages && ! localimages.0 ) %]
1052 showNoImageMessage();
1054 [% IF LocalCoverImages %]
1055 KOHA.LocalCover.GetCoverFromBibnumber(true);
1057 $("body").on("click",".previewMARC", function(e){
1059 var page = $(this).attr("href");
1060 $("#marcPreview .modal-body").load(page + " table");
1061 $('#marcPreview').modal({show:true});
1063 $("#marcPreview").on("hidden.bs.modal", function(){
1064 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1066 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1067 novSelect.loadContentForQuery({
1068 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1069 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1072 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
1073 '[% Koha.Preference('NovelistSelectPassword') | html %]',
1075 if ( d.length > 0 ){ //If no content
1076 $(".NovelistSelect").show();
1083 [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
1087 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1088 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1090 [% INCLUDE 'datatables.inc' %]
1091 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
1092 [% INCLUDE 'browser-strings.inc' %]
1093 [% INCLUDE 'columns_settings.inc' %]
1094 [% Asset.js("js/browser.js") | $raw %]
1095 [% Asset.js("js/table_filters.js") | $raw %]
1096 <script type="text/javascript">
1098 browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
1101 $(document).ready(function() {
1102 var ids = ['holdings_table', 'otherholdings_table'];
1104 for (var i in ids) {
1106 var dt_parameters = {
1109 'bAutoWidth': false,
1111 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1112 { "sType": "title-string", "aTargets" : [ "title-string" ] }
1115 var table = KohaTable(id, dt_parameters, null, 'with_filters');
1118 [% IF Koha.Preference('AcquisitionDetails') %]
1119 var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
1120 var acquisitiondetails_table = KohaTable("orders", {
1121 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1123 'bAutoWidth': false,
1124 "aaSorting": [[ 4, "desc" ]],
1126 { "aTargets": "title-string", "sType": "title-string" }
1128 }, columns_settings);
1133 [% INCLUDE 'intranet-bottom.inc' %]