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' %]
43 <body id="catalog_detail" class="catalog">
45 [% INCLUDE 'header.inc' %]
46 [% INCLUDE 'cat-search.inc' %]
48 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> ›
49 [% IF ( unknownbiblionumber ) %]
52 Details for <i>[% title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]</i>
56 <div class="main container-fluid">
58 <div class="col-sm-10 col-sm-push-2">
61 [% IF ( unknownbiblionumber ) %]
62 <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
65 [% INCLUDE 'cat-toolbar.inc' %]
67 <!-- COinS / OpenURL -->
68 <span class="Z3988" title="[% ocoins | html %]"></span>
71 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %]
72 [% IF ( XSLTDetailsDisplay ) %]
74 <div id="catalogue_detail_biblio" class="yui-u first">
77 <div id="catalogue_detail_biblio" class="yui-u first">
80 [% IF ( XSLTDetailsDisplay ) %]
82 <div id="catalogue_detail_biblio">
85 <div id="catalogue_detail_biblio" class="yui-u first">
89 [% IF ( XSLTDetailsDisplay ) %]
92 [% IF shelves.count %]
93 <span class="results_summary"><span class="label">Lists that include this title: </span>
94 [% FOREACH s IN shelves %]
95 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
96 [% IF ( loop.last ) %][% ELSE %]|[% END %]
100 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
101 <span class="results_summary"><span class="label">Tags:</span>
102 [% FOREACH TagLoo IN TagLoop %]
103 [% IF ( CAN_user_tools_moderate_tags ) %]
104 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
106 [% TagLoo.term | html %]
108 <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
112 <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>
114 [% IF ( holdcount ) %]
115 <span class="results_summary">
116 <span class="label">Holds:</span>
117 <span class="number_box">
118 [% IF CAN_user_reserveforothers_place_holds %]
119 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a>
121 <span>[% holdcount | html %]</span>
127 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
128 <span class="results_summary">
129 <span class="label">Article requests:</span>
130 <span class="number_box">
131 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | uri %]">[% article_requests_count | html %]</a>
136 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %]
137 </div><div class="yui-u" id="bookcoverimg">
138 [% IF ( LocalCoverImages ) %]
139 <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
141 [% IF ( AdlibrisEnabled && normalized_isbn ) %]
142 <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>
144 [% IF ( AmazonCoverImages ) %]
145 <div id="amazon-bookcoverimg">
146 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
147 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
153 <h3>[% title | html %]</h3>
154 [% FOREACH subtitl IN subtitle %]
155 <h4>[% subtitl.subfield | html %]</h4>
157 [% UNLESS ( item_level_itypes ) %]<img src="[% imageurl | html %]" alt="[% translated_description | html %]" title="[% translated_description | html %]">[% END %]
158 [% IF ( unititle ) %]<p>[% unititle | html %]</p>[% END %]
159 [% IF ( author ) %]<p>By <a href="/cgi-bin/koha/catalogue/search.pl?q=au:[% author |url %]">[% author | html %]</a></p>[% END %]
161 [% IF ( MARCAUTHORS ) %]
162 <li><strong>Additional authors:</strong><ul>
163 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
164 <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>
170 [% IF ( MARCSERIES ) %]
171 <li><strong>Series: </strong><ul>[% FOREACH MARCSERIE IN MARCSERIES %]
172 <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>
177 [% IF ( publishercode ) %]
178 <li><strong>Published by:</strong>
179 <a href="/cgi-bin/koha/catalogue/search.pl?q=pb:[% publishercode |url %]">
180 [% publishercode | html %]
181 </a> [% IF ( place ) %]([% place | html %])[% END %] [% IF ( publicationyear ) %], [% publicationyear | html %][% END %] [% IF ( editionstatement ) %][% editionstatement | html %][% END %] [% IF ( editionresponsibility ) %][% editionresponsibility | html %][% END %]
184 <li><strong>Description:</strong>
185 [% IF ( pages ) %] [% END %][% pages | html %] [% IF ( illus ) %][% illus | html %][% END %]
186 [% IF ( size ) %][% size | html %][% END %]
188 [% IF ( MARCURLS ) %]<li>
190 <strong>Online resources:</strong>
191 <ul> [% FOREACH MARCurl IN MARCURLS %]
192 <li>[% IF ( MARCurl.part ) %][% MARCurl.part | html %]
194 <!-- here you might do a tmpl_if name="toc" and use greybox or equivalent for table of contents -->
195 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]">[% MARCurl.linktext | html %]</a>
196 [% IF ( MARCurl.notes ) %]<ul>[% FOREACH note IN MARCurl.notes %]<li>[% note.note | html %]</li>[% END %]</ul>[% END %]</li>
201 [% IF ( OPACBaseURL ) %]
202 <li><strong>OPAC view:</strong>
203 <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | uri %]" target="_blank">Open in new window</a>
206 <li id="catalogue_detail_marc_preview">
207 <strong>MARC Preview:</strong>
208 <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber | uri %]" title="MARC" rel="gb_page_center[600,500]">Show</a>
213 [% IF ( AmazonCoverImages || LocalCoverImages ) %]
214 <div class="yui-u" id="bookcoverimg">
215 [% IF ( LocalCoverImages ) %]
216 <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
218 [% IF ( AmazonCoverImages ) %]
219 <div id="amazon-bookcoverimg">
220 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
221 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
228 <div class="yui-u" style="margin-top: 1em;">
230 [% IF ( MARCISBNS ) %]
231 <li><strong>ISBN:</strong><ul>[% FOREACH MARCISBN IN MARCISBNS %]<li>[% MARCISBN | html %]</li>[% END %]</ul></li>
233 [% IF ( normalized_isbn ) %]
234 <li><strong>ISBN:</strong> [% normalized_isbn | html %]</li>
238 <li><strong>ISSN:</strong>[% issn | html %]</li>
240 [% IF ( collectiontitle ) %]
241 <li><strong>Collection: </strong>
242 [% collectiontitle | html %] [% IF ( collectionvolume ) %], [% collectionvolume | html %][% END %][% IF ( collectionissn ) %] (<strong>ISSN:</strong> [% collectionissn | html %])[% END %]
245 [% IF ( MARCSUBJCTS ) %]
246 <li><strong>Subjects:</strong>
248 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
249 <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>
254 [% IF ( copyrightdate ) %]
255 <li><strong>Copyright:</strong> [% copyrightdate | html %]</li>
258 [% IF ( classification ) %]
259 <li><strong>Classification:</strong> [% subclass | html %][% classification | html %]</li>
262 <li><strong>Dewey:</strong> [% dewey | html %]</li>
265 <li><strong>URL:</strong>
266 [% FOREACH url IN urlS %]
267 <a href="[% url.url | url %]">[% url.url | html %]</a>
271 <!--This grabs all of the lists a bib record appears in -->
272 [% IF shelves.count %]
273 <li><strong>Lists that include this title: </strong>
275 [% FOREACH s IN shelves %]
276 <li><a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a></li>
281 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
282 <li><strong>Tags:</strong>
284 [% FOREACH TagLoo IN TagLoop %]
286 [% IF ( CAN_user_tools_moderate_tags ) %]
287 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
289 [% TagLoo.term | html %]
291 <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]</li>
295 [% 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 %]
301 <div id="bibliodetails" class="toptabs">
304 [% IF (SeparateHoldings) %]
306 <a href="#holdings">[% LoginBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
309 <a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
313 <a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a>
316 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions</a></li>[% END %]
317 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
318 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
319 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
320 [% IF ( LocalCoverImages ) %]
321 [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
323 <a href="#images">Images ([% localimages.size() || 0 | html %])</a>
327 [% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %]
328 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
329 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
333 [% items_table_block_iter = 0 %]
334 [% BLOCK items_table %]
335 [% items_table_block_iter = items_table_block_iter + 1 %]
336 <div class="[% tab | html %]_table_table_controls">
337 [% IF (StaffDetailItemSelection) %]
338 | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
339 <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
340 <span class="itemselection_actions">
342 [% IF CAN_user_tools_items_batchdel %]
343 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
345 [% IF CAN_user_tools_items_batchmod %]
346 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
351 <table class="items_table" id="[% tab | html %]_table">
354 [% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %]
355 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
356 <th>Current location</th>
357 <th>Home library</th>
358 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
360 [% IF ( volinfo ) %]<th>Serial enumeration / chronology</th>[% END %]
362 <th class="title-string">Last seen</th>
363 <th class="title-string">Date accessioned</th>
365 [% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
366 [% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
367 [% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
368 [% IF materials %]<th>Materials specified</th>[% END %]
369 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
370 [% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %]
371 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine label</th>[% END %]
372 [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
373 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
374 [% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
375 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort"> </th>[% END %]
379 [% FOREACH item IN items %]
381 [% IF (StaffDetailItemSelection) %]
382 <td style="text-align:center;vertical-align:middle">
383 <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
386 [% IF ( item_level_itypes ) %]
388 [% IF !noItemTypeImages && item.imageurl %]
389 <img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
391 [% item.translated_description | html %]
394 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
395 <td class="homebranch">
396 [% Branches.GetName(item.homebranch) | html %]
397 <span class="shelvingloc">[% item.location | html %]</span>
399 [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
400 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
402 <td class="enumchron">
403 [% IF ( itemdata_enumchron ) %]
404 [% IF item.enumchron && item.serialseq %]
405 <span class="enum">[% item.enumchron | html %]</span>
406 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
407 <span class="sep"> -- </span>
408 <span class="serialseq">[% item.serialseq | html %]</span>
410 [% ELSIF item.enumchron %]
411 <span class="enum">[% item.enumchron | html %]</span>
412 [% ELSIF item.serialseq %]
413 <span class="serialseq">[% item.serialseq | html %]</span>
415 [% IF ( item.publisheddate ) %]
416 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
423 [% IF item.CheckedOutFor %]
424 [% IF item.onsite_checkout %]
425 <span>Currently in local use
427 <span class="datedue">Checked out
429 [% UNLESS ( item.NOTSAMEBRANCH ) %]
430 [% IF item.onsite_checkout %]
435 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
437 : due [% item.datedue | html %]
439 [% ELSIF ( item.transfertwhen ) %]
440 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
443 [% IF ( item.itemlost ) %]
444 [% IF itemlostloop %]
445 [% FOREACH itemlostloo IN itemlostloop %]
446 [% IF itemlostloo.authorised_value == item.itemlost %]
447 <span class="lost">[% itemlostloo.lib | html %]</span>
451 <span class="lost">Unavailable (lost or missing)</span>
455 [% IF ( item.withdrawn ) %]
456 [% IF itemwithdrawnloop %]
457 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
458 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
459 <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
463 <span class="wdn">Withdrawn</span>
467 [% IF ( item.damaged ) %]
468 [% IF itemdamagedloop %]
469 [% FOREACH itemdamagedloo IN itemdamagedloop %]
470 [% IF itemdamagedloo.authorised_value == item.damaged %]
471 <span class="dmg">[% itemdamagedloo.lib | html %]</span>
475 <span class="dmg">Damaged</span>
479 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
481 [% IF ( item.notforloanvalue ) %]
482 ([% item.notforloanvalue | html %])
486 [% IF ( item.reservedate ) %]
487 [% IF ( item.waitingdate ) %]
488 Waiting at [% Branches.GetName( item.ExpectedAtLibrary ) | html %] since [% item.waitingdate | $KohaDates %].
490 Item-level hold (placed [% item.reservedate | $KohaDates %]) for delivery at [% Branches.GetName( item.ExpectedAtLibrary ) | html %].
492 [% IF ( canreservefromotherbranches ) %]
494 [% INCLUDE 'patron-title.inc' patron=item.ReservedFor hide_patron_infos_if_needed=1 %]
497 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %]
501 [% IF ( item.restricted ) %]
502 <span class="restricted">([% item.restrictedvalue | html %])</span>
506 <td class="datelastseen"><span title="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</span></td>
507 <td class="dateaccessioned"><span title="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</span></td>
508 <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>
509 [% IF ( itemdata_uri ) %]
510 <td class="uri"><a href="[% item.uri | url %]">[% item.uri | html %]</a></td>
512 [% IF ( itemdata_copynumber ) %]
513 <td class="copynumber">[% item.copynumber | html %]</td>
515 [% IF ( itemdata_stocknumber ) %]
516 <td class="stocknumber">[% item.stocknumber | html %]</td>
519 <td class="materials"> [% item.materials | html %] </td>
521 [% IF ( itemdata_itemnotes ) %]
522 <td><div class="itemnotes">[% item.itemnotes | html %]</div></td>
524 [% IF itemdata_nonpublicnotes %]
525 <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
527 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
528 <td><a href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% item.barcode | uri %]" >Print label</a></td>
530 [% IF ( hostrecords ) %]
531 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
535 [% IF ( item.countanalytics ) %]
536 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
541 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
544 [% IF ShowCourseReserves %]
546 [% IF item.course_reserves %]
547 [% FOREACH r IN item.course_reserves %]
548 [% IF r.course.enabled == 'yes' %]
550 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
551 [% r.course.course_name | html %]
552 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
553 [% IF r.course.section %] [% r.course.section | html %] [% END %]
554 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
562 [% IF CAN_user_editcatalogue_edit_items %]
564 [% UNLESS item.cannot_be_edited %]
565 <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>
573 [% END %][%# end of block items_table %]
577 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
578 <span class="results_summary NovelistSelect" style="display:none;">
579 <span class="label">Novelist Select: </span>
580 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
585 [% IF ( showncount ) %]
586 [% PROCESS items_table tab="holdings" items=itemloop %]
588 [% IF ( hiddencount ) %]
589 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
591 [% IF ( debug_display ) %]
594 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
595 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
596 <tr><td>serial</td><td>[% serial | html %]</td></tr>
600 [% IF ( ALTERNATEHOLDINGS ) %]
601 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
602 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
605 <div id="noitems">No physical items for this record</div>
609 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
610 <span class="results_summary NovelistSelect" style="display:none;">
611 <span class="label">Novelist Select: </span>
612 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
617 [% IF (SeparateHoldings) %]
618 <div id="otherholdings">
619 [% IF (otheritemloop.size) %]
620 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
627 [% IF ( MARCNOTES || notes ) %]
629 <div id="description">
630 <div class="content_set">
632 [% IF ( MARCNOTES ) %]
633 [% FOREACH MARCNOTE IN MARCNOTES %]
635 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
636 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
638 [% MARCNOTE.marcnote | html | html_line_break %]
644 <p>[% notes | html %]</p>
652 [% IF ( subscriptionsnumber ) %]
653 <div id="subscriptions">
655 <div id="catalogue_detail_subscriptions">
656 <h2>This is a serial subscription</h2>
657 <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
658 [% FOREACH subscription IN subscriptions %]
659 [% IF subscription.branchcode %]
660 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
662 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
663 [% IF ( subscription.location ) %]<p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location ) | html %]</p>[% END %]
664 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
665 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
666 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
667 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
668 [% IF ( subscription.latestserials ) %]
669 <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
673 <th>Date arrived</th>
674 <th>Date published</th>
678 [% FOREACH latestserial IN subscription.latestserials %]
680 <td>[% latestserial.serialseq | html %]</td>
681 <td>[% latestserial.planneddate | html %]</td>
682 <td>[% latestserial.publisheddate | html %]</td>
684 [% IF ( latestserial.status1 ) %]Expected[% END %]
685 [% IF ( latestserial.status2 ) %]Arrived[% END %]
686 [% IF ( latestserial.status3 ) %]Late[% END %]
687 [% IF ( latestserial.status4 ) %]Missing[% END %]
688 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
689 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
690 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
691 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
692 [% IF ( latestserial.status5 ) %]Not issued[% END %]
693 [% IF ( latestserial.status6 ) %]Delete[% END %]
694 [% IF ( latestserial.status7 ) %]Claimed[% END %]
695 [% IF ( latestserial.status8 ) %]Stopped[% END %]
697 <td>[% latestserial.notes | html %]</td>
702 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
709 [% IF Koha.Preference('AcquisitionDetails') %]
710 <div id="acq_details">
717 <th>Basket group</th>
719 <th>Order number</th>
720 <th class="title-string">Creation date</th>
721 <th class="title-string">Receive date</th>
724 <th>Internal note</th>
725 <th>Subscription</th>
726 <th>Subscription callnumber</th>
730 [% FOR order IN orders %]
731 [% SET basket = order.basket %]
732 [% SET vendor = basket.bookseller %]
735 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
738 [% IF order.invoiceid %]
739 [% IF CAN_user_acquisition %]
740 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
741 title="Invoice detail page">
742 [% order.invoice.invoicenumber | html %]</a>
744 [% order.invoice.invoicenumber | html %]
749 [% IF basket.basketgroupid %]
750 [% SET basket_group = basket.basket_group %]
751 [% IF CAN_user_acquisition_group_manage %]
752 <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>
754 [% basket_group.name | html %] ([% basket_group.id | html %])
758 <td>[% IF CAN_user_acquisition_order_manage %]
759 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
761 [% basket.basketname | html %] ([% basket.basketno | html %])
763 <td>[% order.ordernumber | html %]</td>
764 <td><span title="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</span></td>
765 <td><span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</span></td>
767 [% SWITCH order.orderstatus %]
769 [% CASE 'ordered' %]Ordered
770 [% CASE 'partial' %]Partial
771 [% CASE 'complete' %]Complete
772 [% CASE 'cancelled' %]Cancelled
775 <td>[% order.quantity | html %]</td>
776 <td>[% order.order_internalnote | html %]</td>
778 [% IF order.subscriptionid %]
779 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
783 [% IF order.subscriptionid %]
784 [% order.subscription.callnumber | html %]
792 There is no order for this biblio.
797 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
798 <div id="editions"><h4>Editions</h4>
800 [% 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 %]
801 [% 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 %]
802 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
803 [% IF ( XISBN.publishercode ) %]
804 [% 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 %]
806 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
807 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
811 </table></div>[% END %]
814 [% IF ( LocalCoverImages ) %]
816 [% IF ( localimages.0 ) %]
817 <p>Click on an image to view it in the image viewer</p>
818 <ul class="thumbnails">
819 [% FOREACH image IN localimages %]
821 <li id="imagenumber-[% image | html %]">
822 <a class="thumbnail" href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | html %]&imagenumber=[% image | html %]">
823 <img alt="remove this image" src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image | html %]" />
824 [% IF CAN_user_tools_upload_local_cover_images %]
825 <span class="remove" title="remove this image">Delete image</span>
832 [%# ELSE - No image passed JavaScript takes care %]
837 [% IF ( HTML5MediaEnabled ) %]
838 <div id="html5media">
839 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
841 <[% HTML5MediaParent | html %] controls preload=none>
842 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]"[% HTML5MediaSet.typeblock | html %] />
843 [[% HTML5MediaParent | html %] tag not supported by your browser.]
844 </[% HTML5MediaParent | html %]>
851 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
852 <div id="NovelistSelect" class="novelistSelect">
853 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
857 </div><!-- /bibliodetails -->
859 <div class="yui-g" id="export" style="margin-top: 1em;">
860 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
862 <th>Save Record</th> </tr>
863 <tr><td> Select download format: <select name="format">
864 <option value="mods">MODS (XML)</option>
865 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
866 <option value="marcxml">MARCXML</option>
867 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
868 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
869 <input type="submit" name="save" value="Download Record" /></td>
872 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
878 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
879 <div class="modal-dialog modal-lg">
880 <div class="modal-content">
881 <div class="modal-header">
882 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
883 <h3 id="marcPreviewLabel">MARC preview</h3>
885 <div class="modal-body">
886 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
888 <div class="modal-footer">
889 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
896 </div> <!-- /.col-sm-10.col-sm-push-2 -->
898 <div class="col-sm-2 col-sm-pull-10">
900 [% INCLUDE 'biblio-view-menu.inc' %]
902 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
903 </div> <!-- /.row -->
907 [% MACRO jsinclude BLOCK %]
908 [% INCLUDE 'catalog-strings.inc' %]
909 [% Asset.js("js/catalog.js") | $raw %]
910 [% INCLUDE 'greybox.inc' %]
912 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
913 function verify_images() {
914 $("#bookcoverimg").each(function(i){
915 $(this).find('img').each(function(i){
916 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'))) {
919 if ((w == 1) || (h == 1)) {
920 $("#amazon-bookcoverimg").remove();
921 $(".yui-gb").attr("class","yui-g");
922 } else if ((this.complete != null) && (!this.complete)) {
923 $("#amazon-bookcoverimg").remove();
924 $(".yui-gb").attr("class","yui-g");
928 if( $(this).find('img').length < 1 ) $(this).remove();
930 $("#editions img").each(function(i){
931 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'))) {
934 if ((w == 1) || (h == 1)) {
935 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
936 } else if ((this.complete != null) && (!this.complete)) {
937 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
943 function removeLocalImage(imagenumber) {
945 url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
946 success: function(data) {
947 $(data).each( function(i) {
948 if ( this.deleted == 1 ) {
949 $('#imagenumber-' + this.imagenumber).remove();
951 if ( $('ul.thumbnails > li').length == 0 ) {
952 showNoImageMessage();
956 error: function(data) {
957 alert(_("An error occurred on deleting this image"));
962 function showNoImageMessage() {
963 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
964 no_images_msg = '<p>' + no_images_msg + '</p>';
965 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
966 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>");
967 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
969 $('#images').html(no_images_msg);
972 [% IF StaffDetailItemSelection %]
973 function itemSelectionBuildDeleteLink(div) {
974 var itemnumbers = new Array();
975 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
976 itemnumbers.push($(this).val());
978 if (itemnumbers.length > 0) {
979 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
980 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
981 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
982 $('a.itemselection_action_delete').attr('href', url);
989 function itemSelectionBuildModifyLink(div) {
990 var itemnumbers = new Array();
991 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
992 itemnumbers.push($(this).val());
994 if (itemnumbers.length > 0) {
995 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
996 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
997 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
998 $('a.itemselection_action_modify').attr('href', url);
1005 function itemSelectionBuildActionLinks(tab) {
1006 var div = $("#" + tab);
1007 var delete_link_ok = itemSelectionBuildDeleteLink(div);
1008 var modify_link_ok = itemSelectionBuildModifyLink(div);
1009 if (modify_link_ok || delete_link_ok) {
1010 $('.itemselection_actions', div).show();
1012 $('.itemselection_actions', div).hide();
1016 $(document).ready(function() {
1017 $('table.items_table').each(function() {
1018 var div = $(this).parent().attr("id");
1019 itemSelectionBuildActionLinks(div);
1022 $("input[name='itemnumber'][type='checkbox']").change(function() {
1023 var div = $(this).parents('table').parent().parent().attr("id");
1024 itemSelectionBuildActionLinks(div);
1027 $(".SelectAll").on("click",function(e){
1029 var tab = $(this).data("tab");
1030 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
1031 itemSelectionBuildActionLinks(tab);
1034 $(".ClearAll").on("click",function(e){
1036 var tab = $(this).data("tab");
1037 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
1038 itemSelectionBuildActionLinks(tab);
1043 $(document).ready(function() {
1044 $('#bibliodetails').tabs();
1046 $('#bibliodetails').tabs("option", "active", 3);
1048 $('#search-form').focus();
1049 $('.thumbnails > li > a > span.remove').click(function() {
1050 var result = confirm(_("Are you sure you want to delete this cover image?"));
1052 if ( result == true ) {
1053 var imagenumber = $(this).parent().parent().attr('id').split('-')[1];
1054 removeLocalImage(imagenumber);
1059 [%# inject no images message %]
1060 [% IF ( LocalCoverImages && ! localimages.0 ) %]
1061 showNoImageMessage();
1063 [% IF LocalCoverImages %]
1064 KOHA.LocalCover.GetCoverFromBibnumber(true);
1066 $("body").on("click",".previewMARC", function(e){
1068 var page = $(this).attr("href");
1069 $("#marcPreview .modal-body").load(page + " table");
1070 $('#marcPreview').modal({show:true});
1072 $("#marcPreview").on("hidden.bs.modal", function(){
1073 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1075 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1076 novSelect.loadContentForQuery({
1077 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1078 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1081 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
1082 '[% Koha.Preference('NovelistSelectPassword') | html %]',
1084 if ( d.length > 0 ){ //If no content
1085 $(".NovelistSelect").show();
1092 [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
1096 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1097 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1099 [% INCLUDE 'datatables.inc' %]
1100 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
1101 [% INCLUDE 'browser-strings.inc' %]
1102 [% INCLUDE 'columns_settings.inc' %]
1103 [% Asset.js("js/browser.js") | $raw %]
1104 [% Asset.js("js/table_filters.js") | $raw %]
1107 browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
1110 $(document).ready(function() {
1111 var ids = ['holdings_table', 'otherholdings_table'];
1113 for (var i in ids) {
1115 var dt_parameters = {
1118 'bAutoWidth': false,
1120 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1121 { "sType": "title-string", "aTargets" : [ "title-string" ] }
1124 var table = KohaTable(id, dt_parameters, null, 'with_filters');
1127 [% IF Koha.Preference('AcquisitionDetails') %]
1128 var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
1129 var acquisitiondetails_table = KohaTable("orders", {
1130 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1132 'bAutoWidth': false,
1133 "aaSorting": [[ 4, "desc" ]],
1135 { "aTargets": "title-string", "sType": "title-string" }
1137 }, columns_settings);
1142 [% INCLUDE 'intranet-bottom.inc' %]