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) %]
296 <a href="#holdings">[% LoginBranchname %] holdings ([% itemloop.size() || 0 %])</a>
299 <a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 %])</a>
303 <a href="#holdings">Holdings ([% itemloop.size() || 0 %])</a>
306 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions</a></li>[% END %]
307 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
308 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
309 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
310 [% IF ( LocalCoverImages ) %]
311 [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
313 <a href="#images">Images ([% localimages.size() || 0 %])</a>
317 [% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %]
318 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
319 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
323 [% items_table_block_iter = 0 %]
324 [% BLOCK items_table %]
325 [% items_table_block_iter = items_table_block_iter + 1 %]
326 <div class="[% tab %]_table_table_controls">
327 [% IF (StaffDetailItemSelection) %]
328 | <a href="#" class="SelectAll" data-tab="[% tab %]"><i class="fa fa-check"></i> Select all</a> |
329 <a href="#" class="ClearAll" data-tab="[% tab %]"><i class="fa fa-remove"></i> Clear all</a>
330 <span class="itemselection_actions">
332 [% IF CAN_user_tools_items_batchdel %]
333 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
335 [% IF CAN_user_tools_items_batchmod %]
336 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
341 <table class="items_table" id="[% tab %]_table">
344 [% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %]
345 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
346 <th>Current location</th>
347 <th>Home library</th>
348 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
353 [% IF ( volinfo ) %]<th>Serial enumeration / chronology</th>[% END %]
354 [% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
355 [% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
356 [% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
357 [% IF materials %]<th>Materials specified</th>[% END %]
358 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
359 [% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %]
360 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine label</th>[% END %]
361 [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
362 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
363 [% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
364 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort"> </th>[% END %]
368 [% FOREACH item IN items %]
370 [% IF (StaffDetailItemSelection) %]
371 <td style="text-align:center;vertical-align:middle">
372 <input type="checkbox" value="[% item.itemnumber %]" name="itemnumber" />
375 [% IF ( item_level_itypes ) %]
377 [% IF !noItemTypeImages && item.imageurl %]
378 <img src="[% item.imageurl %]" alt="[% item.translated_description %]" title="[% item.translated_description %]" />
380 [% item.translated_description %]
383 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) %] [% END %]</td>
384 <td class="homebranch">[% Branches.GetName(item.homebranch) %]<span class="shelvingloc">[% item.location %]</span> </td>
385 [% IF ( itemdata_ccode ) %]<td>[% item.ccode %]</td>[% END %]
386 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber %][% END %]</td>
389 [% IF item.CheckedOutFor %]
390 [% IF item.onsite_checkout %]
391 <span>Currently in local use
393 <span class="datedue">Checked out
395 [% UNLESS ( item.NOTSAMEBRANCH ) %]
396 [% IF item.onsite_checkout %]
401 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
403 : due [% item.datedue %]
405 [% ELSIF ( item.transfertwhen ) %]
406 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) %] to [% Branches.GetName( item.transfertto ) %] since [% item.transfertwhen | $KohaDates %]</span>
409 [% IF ( item.itemlost ) %]
410 [% IF itemlostloop %]
411 [% FOREACH itemlostloo IN itemlostloop %]
412 [% IF itemlostloo.authorised_value == item.itemlost %]
413 <span class="lost">[% itemlostloo.lib %]</span>
417 <span class="lost">Unavailable (lost or missing)</span>
421 [% IF ( item.withdrawn ) %]
422 [% IF itemwithdrawnloop %]
423 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
424 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
425 <span class="wdn">[% itemwithdrawnloo.lib %]</span>
429 <span class="wdn">Withdrawn</span>
433 [% IF ( item.damaged ) %]
434 [% IF itemdamagedloop %]
435 [% FOREACH itemdamagedloo IN itemdamagedloop %]
436 [% IF itemdamagedloo.authorised_value == item.damaged %]
437 <span class="dmg">[% itemdamagedloo.lib %]</span>
441 <span class="dmg">Damaged</span>
445 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
447 [% IF ( item.notforloanvalue ) %]
448 ([% item.notforloanvalue %])
452 [% IF ( item.reservedate ) %]
453 [% IF ( item.waitingdate ) %]
454 Waiting at [% Branches.GetName( item.ExpectedAtLibrary ) %] since [% item.waitingdate | $KohaDates %].
456 Item-level hold (placed [% item.reservedate | $KohaDates %]) for delivery at [% Branches.GetName( item.ExpectedAtLibrary ) %].
458 [% IF ( canreservefromotherbranches ) %]
460 [% INCLUDE 'patron-title.inc' patron=item.ReservedFor hide_patron_infos_if_needed=1 %]
463 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %]
467 [% IF ( item.restricted ) %]
468 <span class="restricted">([% item.restricted %])</span>
472 <td class="datelastseen">[% item.datelastseen | $KohaDates %]</td>
473 <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>
475 <td class="enumchron">
476 [% IF ( itemdata_enumchron ) %]
477 [% IF item.enumchron && item.serialseq %]
478 <span class="enum">[% item.enumchron %]</span>
479 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
480 <span class="sep"> -- </span>
481 <span class="serialseq">[% item.serialseq | html %]</span>
483 [% ELSIF item.enumchron %]
484 <span class="enum">[% item.enumchron | html %]</span>
485 [% ELSIF item.serialseq %]
486 <span class="serialseq">[% item.serialseq | html %]</span>
488 [% IF ( item.publisheddate ) %]
489 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
494 [% IF ( itemdata_uri ) %]
495 <td class="uri"><a href="[% item.uri %]">[% item.uri %]</a></td>
497 [% IF ( itemdata_copynumber ) %]
498 <td class="copynumber">[% item.copynumber %]</td>
500 [% IF ( itemdata_stocknumber ) %]
501 <td class="stocknumber">[% item.stocknumber %]</td>
504 <td class="materials"> [% item.materials %] </td>
506 [% IF ( itemdata_itemnotes ) %]
507 <td><div class="itemnotes">[% item.itemnotes %]</div></td>
509 [% IF itemdata_nonpublicnotes %]
510 <td class="nonpublicnote">[% item.itemnotes_nonpublic %]</td>
512 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
513 <td><a href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% item.barcode %]" >Print label</a></td>
515 [% IF ( hostrecords ) %]
516 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber %]" >[% item.hosttitle %]</a>[% END %]</td>
520 [% IF ( item.countanalytics ) %]
521 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber %]">[% item.countanalytics %] analytics</a>
526 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber %]&hostitemnumber=[% item.itemnumber %]">Create analytics</a></td>
529 [% IF ShowCourseReserves %]
531 [% IF item.course_reserves %]
532 [% FOREACH r IN item.course_reserves %]
533 [% IF r.course.enabled == 'yes' %]
535 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id %]">
536 [% r.course.course_name %]
537 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
538 [% IF r.course.section %] [% r.course.section %] [% END %]
539 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
547 [% IF CAN_user_editcatalogue_edit_items %]
549 [% UNLESS item.cannot_be_edited %]
550 <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>
558 [% END %][%# end of block items_table %]
562 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
563 <span class="results_summary NovelistSelect" style="display:none;">
564 <span class="label">Novelist Select: </span>
565 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
570 [% IF ( showncount ) %]
571 [% PROCESS items_table tab="holdings" items=itemloop %]
573 [% IF ( hiddencount ) %]
574 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]&showallitems=1">Show all items ([% hiddencount %] hidden)</a>
576 [% IF ( debug_display ) %]
579 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron %]</td></tr>
580 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber %]</td></tr>
581 <tr><td>serial</td><td>[% serial %]</td></tr>
585 [% IF ( ALTERNATEHOLDINGS ) %]
586 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
587 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
590 <div id="noitems">No physical items for this record</div>
594 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
595 <span class="results_summary NovelistSelect" style="display:none;">
596 <span class="label">Novelist Select: </span>
597 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
602 [% IF (SeparateHoldings) %]
603 <div id="otherholdings">
604 [% IF (otheritemloop.size) %]
605 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
612 [% IF ( MARCNOTES || notes ) %]
614 <div id="description">
615 <div class="content_set">
617 [% IF ( MARCNOTES ) %]
618 [% FOREACH MARCNOTE IN MARCNOTES %]
620 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
621 <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
623 [% MARCNOTE.marcnote FILTER html_line_break %]
637 [% IF ( subscriptionsnumber ) %]
638 <div id="subscriptions">
640 <div id="catalogue_detail_subscriptions">
641 <h2>This is a serial subscription</h2>
642 <p> (There are [% subscriptionsnumber %] subscriptions associated with this title).</p>
643 [% FOREACH subscription IN subscriptions %]
644 [% IF subscription.branchcode %]
645 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode %]</h3>
647 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
648 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber %] </p>[% END %]
649 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>[% END %]
650 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist %] </p>[% END %]
651 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote %])</p>[% END %]
652 [% IF ( subscription.latestserials ) %]
653 <p> The [% subscription.staffdisplaycount %] latest issues related to this subscription:</p>
657 <th>Date arrived</th>
658 <th>Date published</th>
662 [% FOREACH latestserial IN subscription.latestserials %]
664 <td>[% latestserial.serialseq %]</td>
665 <td>[% latestserial.planneddate %]</td>
666 <td>[% latestserial.publisheddate%]</td>
668 [% IF ( latestserial.status1 ) %]Expected[% END %]
669 [% IF ( latestserial.status2 ) %]Arrived[% END %]
670 [% IF ( latestserial.status3 ) %]Late[% END %]
671 [% IF ( latestserial.status4 ) %]Missing[% END %]
672 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
673 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
674 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
675 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
676 [% IF ( latestserial.status5 ) %]Not issued[% END %]
677 [% IF ( latestserial.status6 ) %]Delete[% END %]
678 [% IF ( latestserial.status7 ) %]Claimed[% END %]
679 [% IF ( latestserial.status8 ) %]Stopped[% END %]
681 <td>[% latestserial.notes %]</td>
686 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]">Subscription details</a>
693 [% IF Koha.Preference('AcquisitionDetails') %]
694 <div id="acq_details">
701 <th>Basket group</th>
703 <th>Order number</th>
704 <th class="title-string">Creation date</th>
705 <th class="title-string">Receive date</th>
711 [% FOR order IN orders %]
715 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.id %]" title="Vendor detail page">[% order.name %]</a>
719 [% IF (order.invoiceid) %]
720 [% IF CAN_user_acquisition %]
721 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid %]"
722 title="Invoice detail page">
723 [% order.invoicenumber %]</a>
725 [% order.invoicenumber %]
730 [% IF (order.basketgroupid) %]
731 [% IF CAN_user_acquisition_group_manage %]
732 <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% order.id %]&basketgroupid=[% order.basketgroupid %]">[% order.groupname %] ([% order.basketgroupid %])</a>
734 [% order.groupname %] ([% order.basketgroupid %])
738 <td>[% IF CAN_user_acquisition_order_manage %]
739 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% order.basketno %]">[% order.basketname %] ([% order.basketno %])</a>
741 [% order.basketname %] ([% order.basketno %])
743 <td>[% order.ordernumber %]</td>
744 <td><span title="[% order.creationdate %]">[% order.creationdate | $KohaDates%]</span></td>
745 <td><span title="[% order.datereceived %]">[% order.datereceived | $KohaDates%]</span></td>
747 [% SWITCH order.orderstatus %]
749 [% CASE 'ordered' %]Ordered
750 [% CASE 'partial' %]Partial
751 [% CASE 'complete' %]Complete
752 [% CASE 'cancelled' %]Cancelled
755 <td>[% order.quantity %]</td>
761 There is no order for this biblio.
766 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
767 <div id="editions"><h4>Editions</h4>
769 [% 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 %]
770 [% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description %][% ELSE %]<img src="[% XISBN.imageurl %]" alt="[% XISBN.description %]" title="[% XISBN.description %]">[% END %]</td>[% END %]
771 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate %]
772 [% IF ( XISBN.publishercode ) %]
773 [% 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 %]
775 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages %] [% IF ( XISBN.illus ) %][% XISBN.illus %][% END %]
776 [% IF ( XISBN.size ) %], [% END %][% XISBN.size %]
780 </table></div>[% END %]
783 [% IF ( LocalCoverImages ) %]
785 [% IF ( localimages.0 ) %]
786 <p>Click on an image to view it in the image viewer</p>
787 <ul class="thumbnails">
788 [% FOREACH image IN localimages %]
790 <li id="imagenumber-[% image %]">
791 <a class="thumbnail" href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber %]&imagenumber=[% image %]">
792 <img alt="remove this image" src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image %]" />
793 [% IF CAN_user_tools_upload_local_cover_images %]
794 <span class="remove" title="remove this image">Delete image</span>
801 [%# ELSE - No image passed JavaScript takes care %]
806 [% IF ( HTML5MediaEnabled ) %]
807 <div id="html5media">
808 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
810 <[% HTML5MediaParent %] controls preload=none>
811 <[% HTML5MediaSet.child %] src="[% HTML5MediaSet.srcblock %]"[% HTML5MediaSet.typeblock %] />
812 [[% HTML5MediaParent %] tag not supported by your browser.]
813 </[% HTML5MediaParent %]>
820 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
821 <div id="NovelistSelect" class="novelistSelect">
822 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
826 </div><!-- /bibliodetails -->
828 <div class="yui-g" id="export" style="margin-top: 1em;">
829 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
831 <th>Save Record</th> </tr>
832 <tr><td> Select download format: <select name="format">
833 <option value="mods">MODS (XML)</option>
834 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
835 <option value="marcxml">MARCXML</option>
836 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
837 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
838 <input type="submit" name="save" value="Download Record" /></td>
841 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber %]" />
847 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
848 <div class="modal-dialog modal-lg">
849 <div class="modal-content">
850 <div class="modal-header">
851 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
852 <h3 id="marcPreviewLabel">MARC preview</h3>
854 <div class="modal-body">
855 <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
857 <div class="modal-footer">
858 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
867 [% INCLUDE 'biblio-view-menu.inc' %]
872 [% MACRO jsinclude BLOCK %]
873 [% INCLUDE 'catalog-strings.inc' %]
874 [% Asset.js("js/catalog.js") %]
875 [% INCLUDE 'greybox.inc' %]
876 <script type="text/javascript">
877 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
878 function verify_images() {
879 $("#bookcoverimg").each(function(i){
880 $(this).find('img').each(function(i){
881 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'))) {
884 if ((w == 1) || (h == 1)) {
885 $("#amazon-bookcoverimg").remove();
886 $(".yui-gb").attr("class","yui-g");
887 } else if ((this.complete != null) && (!this.complete)) {
888 $("#amazon-bookcoverimg").remove();
889 $(".yui-gb").attr("class","yui-g");
893 if( $(this).find('img').length < 1 ) $(this).remove();
895 $("#editions img").each(function(i){
896 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'))) {
899 if ((w == 1) || (h == 1)) {
900 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
901 } else if ((this.complete != null) && (!this.complete)) {
902 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
908 function removeLocalImage(imagenumber) {
910 url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
911 success: function(data) {
912 $(data).each( function(i) {
913 if ( this.deleted == 1 ) {
914 $('#imagenumber-' + this.imagenumber).remove();
916 if ( $('ul.thumbnails > li').length == 0 ) {
917 showNoImageMessage();
921 error: function(data) {
922 alert(_("An error occurred on deleting this image"));
927 function showNoImageMessage() {
928 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
929 no_images_msg = '<p>' + no_images_msg + '</p>';
930 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
931 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>");
932 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
934 $('#images').html(no_images_msg);
937 [% IF StaffDetailItemSelection %]
938 function itemSelectionBuildDeleteLink(div) {
939 var itemnumbers = new Array();
940 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
941 itemnumbers.push($(this).val());
943 if (itemnumbers.length > 0) {
944 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
945 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
946 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
947 $('a.itemselection_action_delete').attr('href', url);
954 function itemSelectionBuildModifyLink(div) {
955 var itemnumbers = new Array();
956 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
957 itemnumbers.push($(this).val());
959 if (itemnumbers.length > 0) {
960 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
961 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
962 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
963 $('a.itemselection_action_modify').attr('href', url);
970 function itemSelectionBuildActionLinks(tab) {
971 var div = $("#" + tab);
972 var delete_link_ok = itemSelectionBuildDeleteLink(div);
973 var modify_link_ok = itemSelectionBuildModifyLink(div);
974 if (modify_link_ok || delete_link_ok) {
975 $('.itemselection_actions', div).show();
977 $('.itemselection_actions', div).hide();
981 $(document).ready(function() {
982 $('table.items_table').each(function() {
983 var div = $(this).parent().attr("id");
984 itemSelectionBuildActionLinks(div);
987 $("input[name='itemnumber'][type='checkbox']").change(function() {
988 var div = $(this).parents('table').parent().parent().attr("id");
989 itemSelectionBuildActionLinks(div);
992 $(".SelectAll").on("click",function(e){
994 var tab = $(this).data("tab");
995 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
996 itemSelectionBuildActionLinks(tab);
999 $(".ClearAll").on("click",function(e){
1001 var tab = $(this).data("tab");
1002 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
1003 itemSelectionBuildActionLinks(tab);
1008 $(document).ready(function() {
1009 $('#bibliodetails').tabs();
1011 $('#bibliodetails').tabs("option", "active", 3);
1013 $('#search-form').focus();
1014 $('.thumbnails > li > a > span.remove').click(function() {
1015 var result = confirm(_("Are you sure you want to delete this cover image?"));
1017 if ( result == true ) {
1018 var imagenumber = $(this).parent().parent().attr('id').split('-')[1];
1019 removeLocalImage(imagenumber);
1024 [%# inject no images message %]
1025 [% IF ( LocalCoverImages && ! localimages.0 ) %]
1026 showNoImageMessage();
1028 [% IF LocalCoverImages %]
1029 KOHA.LocalCover.GetCoverFromBibnumber(true);
1031 $("body").on("click",".previewMARC", function(e){
1033 var page = $(this).attr("href");
1034 $("#marcPreview .modal-body").load(page + " table");
1035 $('#marcPreview').modal({show:true});
1037 $("#marcPreview").on("hidden", function(){
1038 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1040 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1041 novSelect.loadContentForQuery({
1042 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1043 ISBN : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1046 '[% Koha.Preference('NovelistSelectStaffProfile') %]',
1047 '[% Koha.Preference('NovelistSelectPassword') %]',
1049 if ( d.length > 0 ){ //If no content
1050 $(".NovelistSelect").show();
1057 [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
1061 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1062 [% Asset.js("https://imageserver.ebscohost.com/novelistselect/ns2init.js") %]
1064 [% INCLUDE 'datatables.inc' %]
1065 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") %]
1066 [% INCLUDE 'browser-strings.inc' %]
1067 [% INCLUDE 'columns_settings.inc' %]
1068 [% Asset.js("js/browser.js") %]
1069 [% Asset.js("js/table_filters.js") %]
1070 <script type="text/javascript">
1072 browser = KOHA.browser('[% searchid %]', parseInt(biblionumber, 10));
1075 $(document).ready(function() {
1076 var ids = ['holdings_table', 'otherholdings_table'];
1078 for (var i in ids) {
1080 var dt_parameters = {
1083 'bAutoWidth': false,
1085 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }
1088 var table = KohaTable(id, dt_parameters, null, 'with_filters');
1091 [% IF Koha.Preference('AcquisitionDetails') %]
1092 $("#orders").dataTable($.extend(true, {}, dataTablesDefaults, {
1095 'bAutoWidth': false,
1096 "aaSorting": [[ 4, "desc" ]],
1098 { "aTargets": "title-string", "sType": "title-string" }
1105 [% INCLUDE 'intranet-bottom.inc' %]