4 [% USE AuthorisedValues %]
8 [% IF Koha.Preference('AmazonAssocTag') %]
9 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
11 [% AmazonAssocTag = '' %]
14 [% ShowCourseReserves = 0 %]
15 [% IF UseCourseReserves %]
16 [% FOREACH item IN itemloop %]
17 [% IF item.course_reserves %]
18 [% FOREACH r IN item.course_reserves %]
19 [% IF r.course.enabled == 'yes' %]
20 [% ShowCourseReserves = 1 %]
27 [% SET footerjs = 1 %]
28 [% INCLUDE 'doc-head-open.inc' %]
29 <title>Koha › Catalog ›
30 [% IF ( unknownbiblionumber ) %]
33 Details for [% title |html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]
36 [% INCLUDE 'doc-head-close.inc' %]
37 [% Asset.css("css/datatables.css") %]
40 <body id="catalog_detail" class="catalog">
42 [% INCLUDE 'header.inc' %]
43 [% INCLUDE 'cat-search.inc' %]
45 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> ›
46 [% IF ( unknownbiblionumber ) %]
49 Details for <i>[% title |html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]</i>
53 <div id="doc3" class="yui-t2">
55 [% IF ( unknownbiblionumber ) %]
56 <div class="dialog message">The record you requested does not exist ([% biblionumber %]).</div>
62 [% INCLUDE 'cat-toolbar.inc' %]
64 <!-- COinS / OpenURL -->
65 <span class="Z3988" title="[% ocoins %]"></span>
68 [% IF ( AmazonCoverImages || LocalCoverImages ) %]
69 [% IF ( XSLTDetailsDisplay ) %]
71 <div id="catalogue_detail_biblio" class="yui-u first">
74 <div id="catalogue_detail_biblio" class="yui-u first">
77 [% IF ( XSLTDetailsDisplay ) %]
79 <div id="catalogue_detail_biblio">
82 <div id="catalogue_detail_biblio" class="yui-u first">
86 [% IF ( XSLTDetailsDisplay ) %]
89 [% IF shelves.count %]
90 <span class="results_summary"><span class="label">Lists that include this title: </span>
91 [% FOREACH s IN shelves %]
92 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber %]">[% s.shelfname %]</a>
93 [% IF ( loop.last ) %][% ELSE %]|[% END %]
97 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
98 <span class="results_summary"><span class="label">Tags:</span>
99 [% FOREACH TagLoo IN TagLoop %]
100 [% IF ( CAN_user_tools_moderate_tags ) %]
101 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term |html %]</a>
103 [% TagLoo.term |html %]
105 <span class="weight">([% TagLoo.weight_total %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
109 <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 %]&viewas=html" title="MARC" class="previewMARC">Show</a></span>
111 [% IF ( holdcount ) %]
112 <span class="results_summary">
113 <span class="label">Holds:</span>
114 <span class="number_box">
115 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">[% holdcount %]</a>
120 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
121 <span class="results_summary">
122 <span class="label">Article requests:</span>
123 <span class="number_box">
124 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber %]">[% article_requests_count %]</a>
129 [% IF ( AmazonCoverImages || LocalCoverImages ) %]
130 </div><div class="yui-u" id="bookcoverimg">
131 [% IF ( LocalCoverImages ) %]
132 <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
134 [% IF ( AmazonCoverImages ) %]
135 <div id="amazon-bookcoverimg">
136 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %][% AmazonAssocTag %]#reader-link">
137 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
143 <h3>[% title |html %]</h3>
144 [% FOREACH subtitl IN subtitle %]
145 <h4>[% subtitl.subfield %]</h4>
147 [% UNLESS ( item_level_itypes ) %]<img src="[% imageurl %]" alt="[% translated_description %]" title="[% translated_description %]">[% END %]
148 [% IF ( unititle ) %]<p>[% unititle |html %]</p>[% END %]
149 [% IF ( author ) %]<p>By <a href="/cgi-bin/koha/catalogue/search.pl?q=au:[% author |url %]">[% author | html %]</a></p>[% END %]
151 [% IF ( MARCAUTHORS ) %]
152 <li><strong>Additional authors:</strong><ul>
153 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
154 <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 | html %]</a>[% END %]</li>
160 [% IF ( MARCSERIES ) %]
161 <li><strong>Series: </strong><ul>[% FOREACH MARCSERIE IN MARCSERIES %]
162 <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>
167 [% IF ( publishercode ) %]
168 <li><strong>Published by:</strong>
169 <a href="/cgi-bin/koha/catalogue/search.pl?q=pb:[% publishercode |url %]">
170 [% publishercode |html %]
171 </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %] [% IF ( editionstatement ) %][% editionstatement %][% END %] [% IF ( editionresponsibility ) %][% editionresponsibility %][% END %]
174 <li><strong>Description:</strong>
175 [% IF ( pages ) %] [% END %][% pages %] [% IF ( illus ) %][% illus %][% END %]
176 [% IF ( size ) %][% size %][% END %]
178 [% IF ( MARCURLS ) %]<li>
180 <strong>Online resources:</strong>
181 <ul> [% FOREACH MARCurl IN MARCURLS %]
182 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]
184 <!-- here you might do a tmpl_if name="toc" and use greybox or equivalent for table of contents -->
185 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">[% MARCurl.linktext %]</a>
186 [% IF ( MARCurl.notes ) %]<ul>[% FOREACH note IN MARCurl.notes %]<li>[% note.note %]</li>[% END %]</ul>[% END %]</li>
191 [% IF ( OPACBaseURL ) %]
192 <li><strong>OPAC view:</strong>
193 <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]" target="_blank">Open in new window</a>
196 <li id="catalogue_detail_marc_preview">
197 <strong>MARC Preview:</strong>
198 <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Show</a>
203 [% IF ( AmazonCoverImages || LocalCoverImages ) %]
204 <div class="yui-u" id="bookcoverimg">
205 [% IF ( LocalCoverImages ) %]
206 <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
208 [% IF ( AmazonCoverImages ) %]
209 <div id="amazon-bookcoverimg">
210 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %][% AmazonAssocTag %]#reader-link">
211 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
218 <div class="yui-u" style="margin-top: 1em;">
220 [% IF ( MARCISBNS ) %]
221 <li><strong>ISBN:</strong><ul>[% FOREACH MARCISBN IN MARCISBNS %]<li>[% MARCISBN | html %]</li>[% END %]</ul></li>
223 [% IF ( normalized_isbn ) %]
224 <li><strong>ISBN:</strong> [% normalized_isbn %]</li>
228 <li><strong>ISSN:</strong>[% issn %]</li>
230 [% IF ( collectiontitle ) %]
231 <li><strong>Collection: </strong>
232 [% collectiontitle %] [% IF ( collectionvolume ) %], [% collectionvolume %][% END %][% IF ( collectionissn ) %] (<strong>ISSN:</strong> [% collectionissn %])[% END %]
235 [% IF ( MARCSUBJCTS ) %]
236 <li><strong>Subjects:</strong>
238 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
239 <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>
244 [% IF ( copyrightdate ) %]
245 <li><strong>Copyright:</strong> [% copyrightdate %]</li>
248 [% IF ( classification ) %]
249 <li><strong>Classification:</strong> [% subclass %][% classification %]</li>
252 <li><strong>Dewey:</strong> [% dewey %]</li>
255 <li><strong>URL:</strong>
256 [% FOREACH url IN urlS %]
257 <a href="[% url.url %]">[% url.url %]</a>
261 <!--This grabs all of the lists a bib record appears in -->
262 [% IF shelves.count %]
263 <li><strong>Lists that include this title: </strong>
265 [% FOREACH s IN shelves %]
266 <li><a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber %]">[% s.shelfname %]</a></li>
271 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
272 <li><strong>Tags:</strong>
274 [% FOREACH TagLoo IN TagLoop %]
276 [% IF ( CAN_user_tools_moderate_tags ) %]
277 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term |html %]</a>
279 [% TagLoo.term |html %]
281 <span class="weight">([% TagLoo.weight_total %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]</li>
285 [% IF ( holdcount ) %]<li><strong>Holds:</strong> <span class="number_box"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">[% holdcount %]</a></span></li>[% ELSE %][% END %]
291 <div id="bibliodetails" class="toptabs">
294 [% IF (SeparateHoldings) %]
295 <li><a href="#holdings">[% LoginBranchname %] holdings</a></li>
296 <li><a href="#otherholdings">Other holdings</a></li>
298 <li><a href="#holdings">Holdings</a></li>
300 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions</a></li>[% END %]
301 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
302 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
303 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
304 [% IF ( LocalCoverImages ) %][% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]<li><a href="#images">Images</a></li>[% END %][% END %]
305 [% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %]
306 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
307 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
311 [% items_table_block_iter = 0 %]
312 [% BLOCK items_table %]
313 [% items_table_block_iter = items_table_block_iter + 1 %]
314 <div class="[% tab %]_table_table_controls">
315 [% IF (StaffDetailItemSelection) %]
316 | <a href="#" class="SelectAll" data-tab="[% tab %]"><i class="fa fa-check"></i> Select all</a> |
317 <a href="#" class="ClearAll" data-tab="[% tab %]"><i class="fa fa-remove"></i> Clear all</a>
318 <span class="itemselection_actions">
320 [% IF CAN_user_tools_items_batchdel %]
321 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
323 [% IF CAN_user_tools_items_batchmod %]
324 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
329 <table class="items_table" id="[% tab %]_table">
332 [% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %]
333 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
334 <th>Current location</th>
335 <th>Home library</th>
336 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
341 [% IF ( volinfo ) %]<th>Serial enumeration / chronology</th>[% END %]
342 [% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
343 [% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
344 [% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
345 [% IF materials %]<th>Materials specified</th>[% END %]
346 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
347 [% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %]
348 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine label</th>[% END %]
349 [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
350 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
351 [% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
352 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort"> </th>[% END %]
356 [% FOREACH item IN items %]
358 [% IF (StaffDetailItemSelection) %]
359 <td style="text-align:center;vertical-align:middle">
360 <input type="checkbox" value="[% item.itemnumber %]" name="itemnumber" />
363 [% IF ( item_level_itypes ) %]
365 [% IF !noItemTypeImages && item.imageurl %]
366 <img src="[% item.imageurl %]" alt="[% item.translated_description %]" title="[% item.translated_description %]" />
368 [% item.translated_description %]
371 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) %] [% END %]</td>
372 <td class="homebranch">[% Branches.GetName(item.homebranch) %]<span class="shelvingloc">[% item.location %]</span> </td>
373 [% IF ( itemdata_ccode ) %]<td>[% item.ccode %]</td>[% END %]
374 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber %][% END %]</td>
377 [% IF item.CheckedOutFor %]
378 [% IF item.onsite_checkout %]
379 <span>Currently in local use
381 <span class="datedue">Checked out
383 [% UNLESS ( item.NOTSAMEBRANCH ) %]
384 [% IF item.onsite_checkout %]
389 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
391 : due [% item.datedue %]
393 [% ELSIF ( item.transfertwhen ) %]
394 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) %] to [% Branches.GetName( item.transfertto ) %] since [% item.transfertwhen | $KohaDates %]</span>
397 [% IF ( item.itemlost ) %]
398 [% IF itemlostloop %]
399 [% FOREACH itemlostloo IN itemlostloop %]
400 [% IF itemlostloo.authorised_value == item.itemlost %]
401 <span class="lost">[% itemlostloo.lib %]</span>
405 <span class="lost">Unavailable (lost or missing)</span>
409 [% IF ( item.withdrawn ) %]
410 [% IF itemwithdrawnloop %]
411 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
412 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
413 <span class="wdn">[% itemwithdrawnloo.lib %]</span>
417 <span class="wdn">Withdrawn</span>
421 [% IF ( item.damaged ) %]
422 [% IF itemdamagedloop %]
423 [% FOREACH itemdamagedloo IN itemdamagedloop %]
424 [% IF itemdamagedloo.authorised_value == item.damaged %]
425 <span class="dmg">[% itemdamagedloo.lib %]</span>
429 <span class="dmg">Damaged</span>
433 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
435 [% IF ( item.notforloanvalue ) %]
436 ([% item.notforloanvalue %])
440 [% IF ( item.reservedate ) %]
441 [% IF ( item.waitingdate ) %]
442 Waiting at [% Branches.GetName( item.ExpectedAtLibrary ) %] since [% item.waitingdate | $KohaDates %].
444 Item-level hold (placed [% item.reservedate | $KohaDates %]) for delivery at [% Branches.GetName( item.ExpectedAtLibrary ) %].
446 [% IF ( canreservefromotherbranches ) %]
448 [% INCLUDE 'patron-title.inc' patron=item.ReservedFor hide_patron_infos_if_needed=1 %]
451 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %]
455 [% IF ( item.restricted ) %]
456 <span class="restricted">([% item.restricted %])</span>
460 <td class="datelastseen">[% item.datelastseen | $KohaDates %]</td>
461 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=[% item.type %]&itemnumber=[% item.itemnumber %]&biblionumber=[% item.biblionumber %]&bi=[% item.biblioitemnumber %]#item[% item.itemnumber %]">[% item.barcode %]</a></td>
463 <td class="enumchron">
464 [% IF ( itemdata_enumchron ) %]
465 [% IF item.enumchron && item.serialseq %]
466 <span class="enum">[% item.enumchron %]</span>
467 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
468 <span class="sep"> -- </span>
469 <span class="serialseq">[% item.serialseq | html %]</span>
471 [% ELSIF item.enumchron %]
472 <span class="enum">[% item.enumchron | html %]</span>
473 [% ELSIF item.serialseq %]
474 <span class="serialseq">[% item.serialseq | html %]</span>
476 [% IF ( item.publisheddate ) %]
477 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
482 [% IF ( itemdata_uri ) %]
483 <td class="uri"><a href="[% item.uri %]">[% item.uri %]</a></td>
485 [% IF ( itemdata_copynumber ) %]
486 <td class="copynumber">[% item.copynumber %]</td>
488 [% IF ( itemdata_stocknumber ) %]
489 <td class="stocknumber">[% item.stocknumber %]</td>
492 <td class="materials"> [% item.materials %] </td>
494 [% IF ( itemdata_itemnotes ) %]
495 <td><div class="itemnotes">[% item.itemnotes %]</div></td>
497 [% IF itemdata_nonpublicnotes %]
498 <td class="nonpublicnote">[% item.itemnotes_nonpublic %]</td>
500 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
501 <td><a href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% item.barcode %]" >Print label</a></td>
503 [% IF ( hostrecords ) %]
504 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber %]" >[% item.hosttitle %]</a>[% END %]</td>
508 [% IF ( item.countanalytics ) %]
509 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber %]">[% item.countanalytics %] analytics</a>
514 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber %]&hostitemnumber=[% item.itemnumber %]">Create analytics</a></td>
517 [% IF ShowCourseReserves %]
519 [% IF item.course_reserves %]
520 [% FOREACH r IN item.course_reserves %]
521 [% IF r.course.enabled == 'yes' %]
523 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id %]">
524 [% r.course.course_name %]
525 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
526 [% IF r.course.section %] [% r.course.section %] [% END %]
527 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
535 [% IF CAN_user_editcatalogue_edit_items %]
537 [% UNLESS item.cannot_be_edited %]
538 <a class="btn btn-default btn-xs" href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber %]&itemnumber=[% item.itemnumber %]#edititem"><i class="fa fa-pencil"></i> Edit</a>
546 [% END %][%# end of block items_table %]
550 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
551 <span class="results_summary NovelistSelect" style="display:none;">
552 <span class="label">Novelist Select: </span>
553 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
558 [% IF ( showncount ) %]
559 [% PROCESS items_table tab="holdings" items=itemloop %]
561 [% IF ( hiddencount ) %]
562 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]&showallitems=1">Show all items ([% hiddencount %] hidden)</a>
564 [% IF ( debug_display ) %]
567 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron %]</td></tr>
568 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber %]</td></tr>
569 <tr><td>serial</td><td>[% serial %]</td></tr>
573 [% IF ( ALTERNATEHOLDINGS ) %]
574 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
575 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
578 <div id="noitems">No physical items for this record</div>
582 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
583 <span class="results_summary NovelistSelect" style="display:none;">
584 <span class="label">Novelist Select: </span>
585 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
590 [% IF (SeparateHoldings) %]
591 <div id="otherholdings">
592 [% IF (otheritemloop.size) %]
593 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
600 [% IF ( MARCNOTES || notes ) %]
602 <div id="description">
603 <div class="content_set">
605 [% IF ( MARCNOTES ) %]
606 [% FOREACH MARCNOTE IN MARCNOTES %]
608 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
609 <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
611 [% MARCNOTE.marcnote FILTER html_line_break %]
625 [% IF ( subscriptionsnumber ) %]
626 <div id="subscriptions">
628 <div id="catalogue_detail_subscriptions">
629 <h2>This is a serial subscription</h2>
630 <p> (There are [% subscriptionsnumber %] subscriptions associated with this title).</p>
631 [% FOREACH subscription IN subscriptions %]
632 [% IF subscription.branchcode %]
633 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode %]</h3>
635 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
636 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber %] </p>[% END %]
637 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>[% END %]
638 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist %] </p>[% END %]
639 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote %])</p>[% END %]
640 [% IF ( subscription.latestserials ) %]
641 <p> The [% subscription.staffdisplaycount %] latest issues related to this subscription:</p>
645 <th>Date arrived</th>
646 <th>Date published</th>
650 [% FOREACH latestserial IN subscription.latestserials %]
652 <td>[% latestserial.serialseq %]</td>
653 <td>[% latestserial.planneddate %]</td>
654 <td>[% latestserial.publisheddate%]</td>
656 [% IF ( latestserial.status1 ) %]Expected[% END %]
657 [% IF ( latestserial.status2 ) %]Arrived[% END %]
658 [% IF ( latestserial.status3 ) %]Late[% END %]
659 [% IF ( latestserial.status4 ) %]Missing[% END %]
660 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
661 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
662 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
663 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
664 [% IF ( latestserial.status5 ) %]Not issued[% END %]
665 [% IF ( latestserial.status6 ) %]Delete[% END %]
666 [% IF ( latestserial.status7 ) %]Claimed[% END %]
667 [% IF ( latestserial.status8 ) %]Stopped[% END %]
669 <td>[% latestserial.notes %]</td>
674 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]">Subscription details</a>
681 [% IF Koha.Preference('AcquisitionDetails') %]
682 <div id="acq_details">
689 <th>Basket group</th>
691 <th>Order number</th>
692 <th class="title-string">Creation date</th>
693 <th class="title-string">Receive date</th>
699 [% FOR order IN orders %]
703 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.id %]" title="Vendor detail page">[% order.name %]</a>
707 [% IF (order.invoiceid) %]
708 [% IF CAN_user_acquisition %]
709 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid %]"
710 title="Invoice detail page">
711 [% order.invoicenumber %]</a>
713 [% order.invoicenumber %]
718 [% IF (order.basketgroupid) %]
719 [% IF CAN_user_acquisition_group_manage %]
720 <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% order.id %]&basketgroupid=[% order.basketgroupid %]">[% order.groupname %] ([% order.basketgroupid %])</a>
722 [% order.groupname %] ([% order.basketgroupid %])
726 <td>[% IF CAN_user_acquisition_order_manage %]
727 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% order.basketno %]">[% order.basketname %] ([% order.basketno %])</a>
729 [% order.basketname %] ([% order.basketno %])
731 <td>[% order.ordernumber %]</td>
732 <td><span title="[% order.creationdate %]">[% order.creationdate | $KohaDates%]</span></td>
733 <td><span title="[% order.datereceived %]">[% order.datereceived | $KohaDates%]</span></td>
735 [% SWITCH order.orderstatus %]
737 [% CASE 'ordered' %]Ordered
738 [% CASE 'partial' %]Partial
739 [% CASE 'complete' %]Complete
740 [% CASE 'cancelled' %]Cancelled
743 <td>[% order.quantity %]</td>
749 There is no order for this biblio.
754 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
755 <div id="editions"><h4>Editions</h4>
757 [% FOREACH XISBN IN XISBNS %]<tr>[% IF ( AmazonCoverImages ) %]<td><a href="http://www.amazon.com/gp/reader/[% XISBN.normalized_isbn %][% AmazonAssocTag %]#reader-link"><img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" /></a></td>[% END %]
758 [% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description %][% ELSE %]<img src="[% XISBN.imageurl %]" alt="[% XISBN.description %]" title="[% XISBN.description %]">[% END %]</td>[% END %]
759 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate %]
760 [% IF ( XISBN.publishercode ) %]
761 [% XISBN.publishercode %] [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %] [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear %][% END %] [% IF ( XISBN.editionstatement ) %][% XISBN.editionstatement %][% END %] [% IF ( XISBN.editionresponsibility ) %][% XISBN.editionresponsibility %][% END %]
763 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages %] [% IF ( XISBN.illus ) %][% XISBN.illus %][% END %]
764 [% IF ( XISBN.size ) %], [% END %][% XISBN.size %]
768 </table></div>[% END %]
771 [% IF ( LocalCoverImages ) %]
773 [% IF ( localimages.0 ) %]
774 <p>Click on an image to view it in the image viewer</p>
775 <ul class="thumbnails">
776 [% FOREACH image IN localimages %]
778 <li id="imagenumber-[% image %]">
779 <a class="thumbnail" href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber %]&imagenumber=[% image %]">
780 <img alt="remove this image" src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image %]" />
781 [% IF CAN_user_tools_upload_local_cover_images %]
782 <span class="remove" title="remove this image">Delete image</span>
789 [%# ELSE - No image passed JavaScript takes care %]
794 [% IF ( HTML5MediaEnabled ) %]
795 <div id="html5media">
796 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
798 <[% HTML5MediaParent %] controls preload=none>
799 <[% HTML5MediaSet.child %] src="[% HTML5MediaSet.srcblock %]"[% HTML5MediaSet.typeblock %] />
800 [[% HTML5MediaParent %] tag not supported by your browser.]
801 </[% HTML5MediaParent %]>
808 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
809 <div id="NovelistSelect" class="novelistSelect">
810 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
814 </div><!-- /bibliodetails -->
816 <div class="yui-g" id="export" style="margin-top: 1em;">
817 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
819 <th>Save Record</th> </tr>
820 <tr><td> Select download format: <select name="format">
821 <option value="mods">MODS (XML)</option>
822 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
823 <option value="marcxml">MARCXML</option>
824 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
825 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
826 <input type="submit" name="save" value="Download Record" /></td>
829 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber %]" />
835 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
836 <div class="modal-dialog modal-lg">
837 <div class="modal-content">
838 <div class="modal-header">
839 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
840 <h3 id="marcPreviewLabel">MARC preview</h3>
842 <div class="modal-body">
843 <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
845 <div class="modal-footer">
846 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
855 [% INCLUDE 'biblio-view-menu.inc' %]
860 [% MACRO jsinclude BLOCK %]
861 [% INCLUDE 'catalog-strings.inc' %]
862 [% Asset.js("js/catalog.js") %]
863 [% INCLUDE 'greybox.inc' %]
864 <script type="text/javascript">
865 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
866 function verify_images() {
867 $("#bookcoverimg").each(function(i){
868 $(this).find('img').each(function(i){
869 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'))) {
872 if ((w == 1) || (h == 1)) {
873 $("#amazon-bookcoverimg").remove();
874 $(".yui-gb").attr("class","yui-g");
875 } else if ((this.complete != null) && (!this.complete)) {
876 $("#amazon-bookcoverimg").remove();
877 $(".yui-gb").attr("class","yui-g");
881 if( $(this).find('img').length < 1 ) $(this).remove();
883 $("#editions img").each(function(i){
884 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'))) {
887 if ((w == 1) || (h == 1)) {
888 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
889 } else if ((this.complete != null) && (!this.complete)) {
890 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
896 function removeLocalImage(imagenumber) {
898 url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
899 success: function(data) {
900 $(data).each( function(i) {
901 if ( this.deleted == 1 ) {
902 $('#imagenumber-' + this.imagenumber).remove();
904 if ( $('ul.thumbnails > li').length == 0 ) {
905 showNoImageMessage();
909 error: function(data) {
910 alert(_("An error occurred on deleting this image"));
915 function showNoImageMessage() {
916 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
917 no_images_msg = '<p>' + no_images_msg + '</p>';
918 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
919 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>");
920 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
922 $('#images').html(no_images_msg);
925 [% IF StaffDetailItemSelection %]
926 function itemSelectionBuildDeleteLink(div) {
927 var itemnumbers = new Array();
928 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
929 itemnumbers.push($(this).val());
931 if (itemnumbers.length > 0) {
932 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
933 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
934 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
935 $('a.itemselection_action_delete').attr('href', url);
942 function itemSelectionBuildModifyLink(div) {
943 var itemnumbers = new Array();
944 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
945 itemnumbers.push($(this).val());
947 if (itemnumbers.length > 0) {
948 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
949 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
950 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
951 $('a.itemselection_action_modify').attr('href', url);
958 function itemSelectionBuildActionLinks(tab) {
959 var div = $("#" + tab);
960 var delete_link_ok = itemSelectionBuildDeleteLink(div);
961 var modify_link_ok = itemSelectionBuildModifyLink(div);
962 if (modify_link_ok || delete_link_ok) {
963 $('.itemselection_actions', div).show();
965 $('.itemselection_actions', div).hide();
969 $(document).ready(function() {
970 $('table.items_table').each(function() {
971 var div = $(this).parent().attr("id");
972 itemSelectionBuildActionLinks(div);
975 $("input[name='itemnumber'][type='checkbox']").change(function() {
976 var div = $(this).parents('table').parent().parent().attr("id");
977 itemSelectionBuildActionLinks(div);
980 $(".SelectAll").on("click",function(e){
982 var tab = $(this).data("tab");
983 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
984 itemSelectionBuildActionLinks(tab);
987 $(".ClearAll").on("click",function(e){
989 var tab = $(this).data("tab");
990 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
991 itemSelectionBuildActionLinks(tab);
996 $(document).ready(function() {
997 $('#bibliodetails').tabs();
999 $('#bibliodetails').tabs("option", "active", 3);
1001 $('#search-form').focus();
1002 $('.thumbnails > li > a > span.remove').click(function() {
1003 var result = confirm(_("Are you sure you want to delete this cover image?"));
1005 if ( result == true ) {
1006 var imagenumber = $(this).parent().parent().attr('id').split('-')[1];
1007 removeLocalImage(imagenumber);
1012 [%# inject no images message %]
1013 [% IF ( LocalCoverImages && ! localimages.0 ) %]
1014 showNoImageMessage();
1016 [% IF LocalCoverImages %]
1017 KOHA.LocalCover.GetCoverFromBibnumber(true);
1019 $("body").on("click",".previewMARC", function(e){
1021 var page = $(this).attr("href");
1022 $("#marcPreview .modal-body").load(page + " table");
1023 $('#marcPreview').modal({show:true});
1025 $("#marcPreview").on("hidden", function(){
1026 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1028 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1029 novSelect.loadContentForQuery({
1030 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1031 ISBN : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1034 '[% Koha.Preference('NovelistSelectStaffProfile') %]',
1035 '[% Koha.Preference('NovelistSelectPassword') %]',
1037 if ( d.length > 0 ){ //If no content
1038 $(".NovelistSelect").show();
1045 [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
1049 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1050 [% Asset.js("https://imageserver.ebscohost.com/novelistselect/ns2init.js") %]
1052 [% INCLUDE 'datatables.inc' %]
1053 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") %]
1054 [% INCLUDE 'browser-strings.inc' %]
1055 [% INCLUDE 'columns_settings.inc' %]
1056 [% Asset.js("js/browser.js") %]
1057 [% Asset.js("js/table_filters.js") %]
1058 <script type="text/javascript">
1060 browser = KOHA.browser('[% searchid %]', parseInt(biblionumber, 10));
1063 $(document).ready(function() {
1064 var ids = ['holdings_table', 'otherholdings_table'];
1066 for (var i in ids) {
1068 var dt_parameters = {
1071 'bAutoWidth': false,
1073 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }
1076 var table = KohaTable(id, dt_parameters, null, 'with_filters');
1079 [% IF Koha.Preference('AcquisitionDetails') %]
1080 $("#orders").dataTable($.extend(true, {}, dataTablesDefaults, {
1083 'bAutoWidth': false,
1084 "aaSorting": [[ 4, "desc" ]],
1086 { "aTargets": "title-string", "sType": "title-string" }
1093 [% INCLUDE 'intranet-bottom.inc' %]