3 [% USE AuthorisedValues %]
7 [% IF Koha.Preference('AmazonAssocTag') %]
8 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
10 [% AmazonAssocTag = '' %]
13 [% ShowCourseReserves = 0 %]
14 [% IF UseCourseReserves %]
15 [% FOREACH item IN itemloop %]
16 [% IF item.course_reserves %]
17 [% FOREACH r IN item.course_reserves %]
18 [% IF r.course.enabled == 'yes' %]
19 [% ShowCourseReserves = 1 %]
26 [% SET footerjs = 1 %]
27 [% INCLUDE 'doc-head-open.inc' %]
28 <title>Koha › Catalog ›
29 [% IF ( unknownbiblionumber ) %]
32 Details for [% title |html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]
35 [% INCLUDE 'doc-head-close.inc' %]
36 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
39 <body id="catalog_detail" class="catalog">
41 [% INCLUDE 'header.inc' %]
42 [% INCLUDE 'cat-search.inc' %]
44 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> ›
45 [% IF ( unknownbiblionumber ) %]
48 Details for <i>[% title |html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]</i>
52 <div id="doc3" class="yui-t2">
54 [% IF ( unknownbiblionumber ) %]
55 <div class="dialog message">The record you requested does not exist ([% biblionumber %]).</div>
61 [% INCLUDE 'cat-toolbar.inc' %]
63 <!-- COinS / OpenURL -->
64 <span class="Z3988" title="[% ocoins %]"></span>
67 [% IF ( AmazonCoverImages || LocalCoverImages ) %]
68 [% IF ( XSLTDetailsDisplay ) %]
70 <div id="catalogue_detail_biblio" class="yui-u first">
73 <div id="catalogue_detail_biblio" class="yui-u first">
76 [% IF ( XSLTDetailsDisplay ) %]
78 <div id="catalogue_detail_biblio">
81 <div id="catalogue_detail_biblio" class="yui-u first">
85 [% IF ( XSLTDetailsDisplay ) %]
88 [% IF shelves.count %]
89 <span class="results_summary"><span class="label">Lists that include this title: </span>
90 [% FOREACH s IN shelves %]
91 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber %]">[% s.shelfname %]</a>
92 [% IF ( loop.last ) %][% ELSE %]|[% END %]
96 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
97 <span class="results_summary"><span class="label">Tags:</span>
98 [% FOREACH TagLoo IN TagLoop %]
99 [% IF ( CAN_user_tools_moderate_tags ) %]
100 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term |html %]</a>
102 [% TagLoo.term |html %]
104 <span class="weight">([% TagLoo.weight_total %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
108 <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>
110 [% IF ( holdcount ) %]
111 <span class="results_summary">
112 <span class="label">Holds:</span>
113 <span class="number_box">
114 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">[% holdcount %]</a>
119 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
120 <span class="results_summary">
121 <span class="label">Article requests:</span>
122 <span class="number_box">
123 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber %]">[% article_requests_count %]</a>
128 [% IF ( AmazonCoverImages || LocalCoverImages ) %]
129 </div><div class="yui-u" id="bookcoverimg">
130 [% IF ( LocalCoverImages ) %]
131 <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
133 [% IF ( AmazonCoverImages ) %]
134 <div id="amazon-bookcoverimg">
135 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %][% AmazonAssocTag %]#reader-link">
136 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
142 <h3>[% title |html %]</h3>
143 [% FOREACH subtitl IN subtitle %]
144 <h4>[% subtitl.subfield %]</h4>
146 [% UNLESS ( item_level_itypes ) %]<img src="[% imageurl %]" alt="[% translated_description %]" title="[% translated_description %]">[% END %]
147 [% IF ( unititle ) %]<p>[% unititle |html %]</p>[% END %]
148 [% IF ( author ) %]<p>By <a href="/cgi-bin/koha/catalogue/search.pl?q=au:[% author |url %]">[% author | html %]</a></p>[% END %]
150 [% IF ( MARCAUTHORS ) %]
151 <li><strong>Additional authors:</strong><ul>
152 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
153 <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>
159 [% IF ( MARCSERIES ) %]
160 <li><strong>Series: </strong><ul>[% FOREACH MARCSERIE IN MARCSERIES %]
161 <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>
166 [% IF ( publishercode ) %]
167 <li><strong>Published by:</strong>
168 <a href="/cgi-bin/koha/catalogue/search.pl?q=pb:[% publishercode |url %]">
169 [% publishercode |html %]
170 </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %] [% IF ( editionstatement ) %][% editionstatement %][% END %] [% IF ( editionresponsibility ) %][% editionresponsibility %][% END %]
173 <li><strong>Description:</strong>
174 [% IF ( pages ) %] [% END %][% pages %] [% IF ( illus ) %][% illus %][% END %]
175 [% IF ( size ) %][% size %][% END %]
177 [% IF ( MARCURLS ) %]<li>
179 <strong>Online resources:</strong>
180 <ul> [% FOREACH MARCurl IN MARCURLS %]
181 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]
183 <!-- here you might do a tmpl_if name="toc" and use greybox or equivalent for table of contents -->
184 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">[% MARCurl.linktext %]</a>
185 [% IF ( MARCurl.notes ) %]<ul>[% FOREACH note IN MARCurl.notes %]<li>[% note.note %]</li>[% END %]</ul>[% END %]</li>
190 [% IF ( OPACBaseURL ) %]
191 <li><strong>OPAC view:</strong>
192 <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]" target="_blank">Open in new window</a>
195 <li id="catalogue_detail_marc_preview">
196 <strong>MARC Preview:</strong>
197 <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Show</a>
202 [% IF ( AmazonCoverImages || LocalCoverImages ) %]
203 <div class="yui-u" id="bookcoverimg">
204 [% IF ( LocalCoverImages ) %]
205 <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
207 [% IF ( AmazonCoverImages ) %]
208 <div id="amazon-bookcoverimg">
209 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %][% AmazonAssocTag %]#reader-link">
210 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
217 <div class="yui-u" style="margin-top: 1em;">
219 [% IF ( MARCISBNS ) %]
220 <li><strong>ISBN:</strong><ul>[% FOREACH MARCISBN IN MARCISBNS %]<li>[% MARCISBN | html %]</li>[% END %]</ul></li>
222 [% IF ( normalized_isbn ) %]
223 <li><strong>ISBN:</strong> [% normalized_isbn %]</li>
227 <li><strong>ISSN:</strong>[% issn %]</li>
229 [% IF ( collectiontitle ) %]
230 <li><strong>Collection: </strong>
231 [% collectiontitle %] [% IF ( collectionvolume ) %], [% collectionvolume %][% END %][% IF ( collectionissn ) %] (<strong>ISSN:</strong> [% collectionissn %])[% END %]
234 [% IF ( MARCSUBJCTS ) %]
235 <li><strong>Subjects:</strong>
237 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
238 <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>
243 [% IF ( copyrightdate ) %]
244 <li><strong>Copyright:</strong> [% copyrightdate %]</li>
247 [% IF ( classification ) %]
248 <li><strong>Classification:</strong> [% subclass %][% classification %]</li>
251 <li><strong>Dewey:</strong> [% dewey %]</li>
254 <li><strong>URL:</strong>
255 [% FOREACH url IN urlS %]
256 <a href="[% url.url %]">[% url.url %]</a>
260 <!--This grabs all of the lists a bib record appears in -->
261 [% IF shelves.count %]
262 <li><strong>Lists that include this title: </strong>
264 [% FOREACH s IN shelves %]
265 <li><a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber %]">[% s.shelfname %]</a></li>
270 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
271 <li><strong>Tags:</strong>
273 [% FOREACH TagLoo IN TagLoop %]
275 [% IF ( CAN_user_tools_moderate_tags ) %]
276 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term |html %]</a>
278 [% TagLoo.term |html %]
280 <span class="weight">([% TagLoo.weight_total %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]</li>
284 [% 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 %]
290 <div id="bibliodetails" class="toptabs">
293 [% IF (SeparateHoldings) %]
294 <li><a href="#holdings">[% LoginBranchname %] holdings</a></li>
295 <li><a href="#otherholdings">Other holdings</a></li>
297 <li><a href="#holdings">Holdings</a></li>
299 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions</a></li>[% END %]
300 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
301 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
302 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
303 [% IF ( LocalCoverImages ) %][% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]<li><a href="#images">Images</a></li>[% END %][% END %]
304 [% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %]
305 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
306 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
310 [% items_table_block_iter = 0 %]
311 [% BLOCK items_table %]
312 [% items_table_block_iter = items_table_block_iter + 1 %]
313 <div class="[% tab %]_table_controls">
314 [% IF (StaffDetailItemSelection) %]
315 | <a href="#" class="SelectAll" data-tab="[% tab %]"><i class="fa fa-check"></i> Select all</a> |
316 <a href="#" class="ClearAll" data-tab="[% tab %]"><i class="fa fa-remove"></i> Clear all</a>
317 <span class="itemselection_actions">
319 [% IF CAN_user_tools_items_batchdel %]
320 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
322 [% IF CAN_user_tools_items_batchmod %]
323 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
328 <table class="items_table">
331 [% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %]
332 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
333 <th>Current location</th>
334 <th>Home library</th>
335 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
340 [% IF ( volinfo ) %]<th>Serial enumeration / chronology</th>[% END %]
341 [% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
342 [% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
343 [% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
344 [% IF materials %]<th>Materials specified</th>[% END %]
345 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
346 [% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %]
347 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine label</th>[% END %]
348 [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
349 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
350 [% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
351 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort"> </th>[% END %]
355 [% FOREACH item IN items %]
357 [% IF (StaffDetailItemSelection) %]
358 <td style="text-align:center;vertical-align:middle">
359 <input type="checkbox" value="[% item.itemnumber %]" name="itemnumber" />
362 [% IF ( item_level_itypes ) %]
364 [% IF !noItemTypeImages && item.imageurl %]
365 <img src="[% item.imageurl %]" alt="[% item.translated_description %]" title="[% item.translated_description %]" />
367 [% item.translated_description %]
370 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) %] [% END %]</td>
371 <td class="homebranch">[% Branches.GetName(item.homebranch) %]<span class="shelvingloc">[% item.location %]</span> </td>
372 [% IF ( itemdata_ccode ) %]<td>[% item.ccode %]</td>[% END %]
373 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber %][% END %]</td>
376 [% IF ( item.datedue ) %]
377 [% IF item.onsite_checkout %]
378 <span>Currently in local use
380 <span class="datedue">Checked out
382 [% UNLESS ( item.NOTSAMEBRANCH ) %]
383 [% IF item.onsite_checkout %]
384 by <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% item.borrowernumber %]">
386 to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% item.borrowernumber %]">
388 [% IF ( item.hidepatronname ) %]
389 [% item.cardnumber %]
391 [% item.firstname %] [% item.surname %]
395 : due [% item.datedue %]
397 [% ELSIF ( item.transfertwhen ) %]
398 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) %] to [% Branches.GetName( item.transfertto ) %] since [% item.transfertwhen | $KohaDates %]</span>
401 [% IF ( item.itemlost ) %]
402 [% IF itemlostloop %]
403 [% FOREACH itemlostloo IN itemlostloop %]
404 [% IF itemlostloo.authorised_value == item.itemlost %]
405 <span class="lost">[% itemlostloo.lib %]</span>
409 <span class="lost">Unavailable (lost or missing)</span>
413 [% IF ( item.withdrawn ) %]
414 <span class="wdn">Withdrawn</span>
417 [% IF ( item.damaged ) %]
418 [% IF itemdamagedloop %]
419 [% FOREACH itemdamagedloo IN itemdamagedloop %]
420 [% IF itemdamagedloo.authorised_value == item.damaged %]
421 <span class="dmg">[% itemdamagedloo.lib %]</span>
425 <span class="dmg">Damaged</span>
429 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
431 [% IF ( item.notforloanvalue ) %]
432 ([% item.notforloanvalue %])
436 [% IF ( item.reservedate ) %]
437 [% IF ( item.waitingdate ) %]
438 Waiting at [% Branches.GetName( item.ExpectedAtLibrary ) %] since [% item.waitingdate | $KohaDates %].
440 Item-level hold (placed [% item.reservedate | $KohaDates %]) for delivery at [% Branches.GetName( item.ExpectedAtLibrary ) %].
442 [% IF ( canreservefromotherbranches ) %]
443 Hold for: <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% item.ReservedForBorrowernumber %]">
444 [% IF ( item.hidepatronname ) %]
445 [% item.Reservedcardnumber %]
447 [% item.ReservedForFirstname _ " " _ item.ReservedForSurname _ " (" _ item.Reservedcardnumber _ ")" %]
452 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %]
456 [% IF ( item.restricted ) %]
457 <span class="restricted">([% item.restricted %])</span>
461 <td class="datelastseen">[% item.datelastseen | $KohaDates %]</td>
462 <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>
464 <td class="enumchron">
465 [% IF ( itemdata_enumchron ) %]
466 [% IF item.enumchron && item.serialseq %]
467 <span class="enum">[% item.enumchron %]</span>
468 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
469 <span class="sep"> -- </span>
470 <span class="serialseq">[% item.serialseq %]</span>
472 [% ELSIF item.enumchron %]
473 <span class="enum">[% item.enumchron %]</span>
474 [% ELSIF item.serialseq %]
475 <span class="serialseq">[% item.serialseq %]</span>
477 [% IF ( item.publisheddate ) %]
478 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
483 [% IF ( itemdata_uri ) %]
484 <td class="uri"><a href="[% item.uri %]">[% item.uri %]</a></td>
486 [% IF ( itemdata_copynumber ) %]
487 <td class="copynumber">[% item.copynumber %]</td>
489 [% IF ( itemdata_stocknumber ) %]
490 <td class="stocknumber">[% item.stocknumber %]</td>
493 <td class="materials"> [% item.materials %] </td>
495 [% IF ( itemdata_itemnotes ) %]
496 <td><div class="itemnotes">[% item.itemnotes %]</div></td>
498 [% IF itemdata_nonpublicnotes %]
499 <td class="nonpublicnote">[% item.itemnotes_nonpublic %]</td>
501 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
502 <td><a href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% item.barcode %]" >Print label</a></td>
504 [% IF ( hostrecords ) %]
505 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber %]" >[% item.hosttitle %]</a>[% END %]</td>
509 [% IF ( item.countanalytics ) %]
510 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber %]">[% item.countanalytics %] analytics</a>
515 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber %]&hostitemnumber=[% item.itemnumber %]">Create analytics</a></td>
518 [% IF ShowCourseReserves %]
520 [% IF item.course_reserves %]
521 [% FOREACH r IN item.course_reserves %]
522 [% IF r.course.enabled == 'yes' %]
524 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id %]">
525 [% r.course.course_name %]
526 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
527 [% IF r.course.section %] [% r.course.section %] [% END %]
528 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
536 [% IF CAN_user_editcatalogue_edit_items %]
538 [% UNLESS item.cannot_be_edited %]
539 <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>
547 [% END %][%# end of block items_table %]
551 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
552 <span class="results_summary NovelistSelect" style="display:none;">
553 <span class="label">Novelist Select: </span>
554 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
559 [% IF ( showncount ) %]
560 [% PROCESS items_table tab="holdings" items=itemloop %]
562 [% IF ( hiddencount ) %]
563 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]&showallitems=1">Show all items ([% hiddencount %] hidden)</a>
565 [% IF ( debug_display ) %]
568 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron %]</td></tr>
569 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber %]</td></tr>
570 <tr><td>serial</td><td>[% serial %]</td></tr>
574 [% IF ( ALTERNATEHOLDINGS ) %]
575 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
576 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
579 <div id="noitems">No physical items for this record</div>
583 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
584 <span class="results_summary NovelistSelect" style="display:none;">
585 <span class="label">Novelist Select: </span>
586 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
591 [% IF (SeparateHoldings) %]
592 <div id="otherholdings">
593 [% IF (otheritemloop.size) %]
594 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
601 [% IF ( MARCNOTES || notes ) %]
603 <div id="description">
604 <div class="content_set">
606 [% IF ( MARCNOTES ) %]
607 [% FOREACH MARCNOTE IN MARCNOTES %]
609 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
610 <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
612 [% MARCNOTE.marcnote FILTER html_line_break %]
626 [% IF ( subscriptionsnumber ) %]
627 <div id="subscriptions">
629 <div id="catalogue_detail_subscriptions">
630 <h2>This is a serial subscription</h2>
631 <p> (There are [% subscriptionsnumber %] subscriptions associated with this title).</p>
632 [% FOREACH subscription IN subscriptions %]
633 [% IF subscription.branchcode %]
634 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode %]</h3>
636 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
637 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber %] </p>[% END %]
638 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>[% END %]
639 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist %] </p>[% END %]
640 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote %])</p>[% END %]
641 [% IF ( subscription.latestserials ) %]
642 <p> The [% subscription.staffdisplaycount %] latest issues related to this subscription:</p>
646 <th>Date arrived</th>
647 <th>Date published</th>
651 [% FOREACH latestserial IN subscription.latestserials %]
653 <td>[% latestserial.serialseq %]</td>
654 <td>[% latestserial.planneddate %]</td>
655 <td>[% latestserial.publisheddate%]</td>
657 [% IF ( latestserial.status1 ) %]Expected[% END %]
658 [% IF ( latestserial.status2 ) %]Arrived[% END %]
659 [% IF ( latestserial.status3 ) %]Late[% END %]
660 [% IF ( latestserial.status4 ) %]Missing[% END %]
661 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
662 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
663 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
664 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
665 [% IF ( latestserial.status5 ) %]Not issued[% END %]
666 [% IF ( latestserial.status6 ) %]Delete[% END %]
667 [% IF ( latestserial.status7 ) %]Claimed[% END %]
668 [% IF ( latestserial.status8 ) %]Stopped[% END %]
670 <td>[% latestserial.notes %]</td>
675 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]">Subscription details</a>
682 [% IF Koha.Preference('AcquisitionDetails') %]
683 <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.basketgroupid) %]
708 [% IF CAN_user_acquisition_group_manage %]
709 <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% order.id %]&basketgroupid=[% order.basketgroupid %]">[% order.groupname %] ([% order.basketgroupid %])</a>
711 [% order.groupname %] ([% order.basketgroupid %])
715 <td>[% IF CAN_user_acquisition_order_manage %]
716 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% order.basketno %]">[% order.basketname %] ([% order.basketno %])</a>
718 [% order.basketname %] ([% order.basketno %])
720 <td>[% order.ordernumber %]</td>
721 <td><span title="[% order.creationdate %]">[% order.creationdate | $KohaDates%]</span></td>
722 <td><span title="[% order.datereceived %]">[% order.datereceived | $KohaDates%]</span></td>
724 [% SWITCH order.orderstatus %]
726 [% CASE 'ordered' %]Ordered
727 [% CASE 'partial' %]Partial
728 [% CASE 'complete' %]Complete
729 [% CASE 'cancelled' %]Cancelled
732 <td>[% order.quantity %]</td>
738 There is no order for this biblio.
743 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
744 <div id="editions"><h4>Editions</h4>
746 [% 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 %]
747 [% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description %][% ELSE %]<img src="[% XISBN.imageurl %]" alt="[% XISBN.description %]" title="[% XISBN.description %]">[% END %]</td>[% END %]
748 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate %]
749 [% IF ( XISBN.publishercode ) %]
750 [% 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 %]
752 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages %] [% IF ( XISBN.illus ) %][% XISBN.illus %][% END %]
753 [% IF ( XISBN.size ) %], [% END %][% XISBN.size %]
757 </table></div>[% END %]
760 [% IF ( LocalCoverImages ) %]
762 [% IF ( localimages.0 ) %]
763 <p>Click on an image to view it in the image viewer</p>
764 <ul class="thumbnails">
765 [% FOREACH image IN localimages %]
767 <li id="imagenumber-[% image %]">
768 <a class="thumbnail" href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber %]&imagenumber=[% image %]">
769 <img alt="remove this image" src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image %]" />
770 [% IF CAN_user_tools_upload_local_cover_images %]
771 <span class="remove" title="remove this image">Delete image</span>
778 [%# ELSE - No image passed JavaScript takes care %]
783 [% IF ( HTML5MediaEnabled ) %]
784 <div id="html5media">
785 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
787 <[% HTML5MediaParent %] controls preload=none>
788 <[% HTML5MediaSet.child %] src="[% HTML5MediaSet.srcblock %]"[% HTML5MediaSet.typeblock %] />
789 [[% HTML5MediaParent %] tag not supported by your browser.]
790 </[% HTML5MediaParent %]>
797 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
798 <div id="NovelistSelect" class="novelistSelect">
799 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
803 </div><!-- /bibliodetails -->
805 <div class="yui-g" id="export" style="margin-top: 1em;">
806 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
808 <th>Save Record</th> </tr>
809 <tr><td> Select download format: <select name="format">
810 <option value="mods">MODS (XML)</option>
811 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
812 <option value="marcxml">MARCXML</option>
813 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
814 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
815 <input type="submit" name="save" value="Download Record" /></td>
818 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber %]" />
824 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
825 <div class="modal-dialog modal-lg">
826 <div class="modal-content">
827 <div class="modal-header">
828 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
829 <h3 id="marcPreviewLabel">MARC preview</h3>
831 <div class="modal-body">
832 <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
834 <div class="modal-footer">
835 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
844 [% INCLUDE 'biblio-view-menu.inc' %]
849 [% MACRO jsinclude BLOCK %]
850 [% INCLUDE 'catalog-strings.inc' %]
851 <script type="text/javascript" src="[% interface %]/[% theme %]/js/catalog.js"></script>
852 [% INCLUDE 'greybox.inc' %]
853 <script type="text/javascript">
854 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
855 function verify_images() {
856 $("#bookcoverimg").each(function(i){
857 $(this).find('img').each(function(i){
858 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'))) {
861 if ((w == 1) || (h == 1)) {
862 $("#amazon-bookcoverimg").remove();
863 $(".yui-gb").attr("class","yui-g");
864 } else if ((this.complete != null) && (!this.complete)) {
865 $("#amazon-bookcoverimg").remove();
866 $(".yui-gb").attr("class","yui-g");
870 if( $(this).find('img').length < 1 ) $(this).remove();
872 $("#editions img").each(function(i){
873 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'))) {
876 if ((w == 1) || (h == 1)) {
877 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
878 } else if ((this.complete != null) && (!this.complete)) {
879 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
885 function removeLocalImage(imagenumber) {
887 url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
888 success: function(data) {
889 $(data).each( function(i) {
890 if ( this.deleted == 1 ) {
891 $('#imagenumber-' + this.imagenumber).remove();
893 if ( $('ul.thumbnails > li').length == 0 ) {
894 showNoImageMessage();
898 error: function(data) {
899 alert(_("An error occurred on deleting this image"));
904 function showNoImageMessage() {
905 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
906 no_images_msg = '<p>' + no_images_msg + '</p>';
907 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
908 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>");
909 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
911 $('#images').html(no_images_msg);
914 [% IF StaffDetailItemSelection %]
915 function itemSelectionBuildDeleteLink(div) {
916 var itemnumbers = new Array();
917 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
918 itemnumbers.push($(this).val());
920 if (itemnumbers.length > 0) {
921 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
922 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
923 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
924 $('a.itemselection_action_delete').attr('href', url);
931 function itemSelectionBuildModifyLink(div) {
932 var itemnumbers = new Array();
933 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
934 itemnumbers.push($(this).val());
936 if (itemnumbers.length > 0) {
937 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
938 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
939 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
940 $('a.itemselection_action_modify').attr('href', url);
947 function itemSelectionBuildActionLinks(tab) {
948 var div = $("#" + tab);
949 var delete_link_ok = itemSelectionBuildDeleteLink(div);
950 var modify_link_ok = itemSelectionBuildModifyLink(div);
951 if (modify_link_ok || delete_link_ok) {
952 $('.itemselection_actions', div).show();
954 $('.itemselection_actions', div).hide();
958 $(document).ready(function() {
959 $('table.items_table').each(function() {
960 var div = $(this).parent().attr("id");
961 itemSelectionBuildActionLinks(div);
964 $("input[name='itemnumber'][type='checkbox']").change(function() {
965 var div = $(this).parents('table').parent().parent().attr("id");
966 itemSelectionBuildActionLinks(div);
969 $(".SelectAll").on("click",function(e){
971 var tab = $(this).data("tab");
972 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
973 itemSelectionBuildActionLinks(tab);
976 $(".ClearAll").on("click",function(e){
978 var tab = $(this).data("tab");
979 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
980 itemSelectionBuildActionLinks(tab);
985 $(document).ready(function() {
986 $('#bibliodetails').tabs();
988 $('#bibliodetails').tabs("option", "active", 3);
990 $('#search-form').focus();
991 $('.thumbnails > li > a > span.remove').click(function() {
992 var result = confirm(_("Are you sure you want to delete this cover image?"));
994 if ( result == true ) {
995 var imagenumber = $(this).parent().parent().attr('id').split('-')[1];
996 removeLocalImage(imagenumber);
1001 [%# inject no images message %]
1002 [% IF ( LocalCoverImages && ! localimages.0 ) %]
1003 showNoImageMessage();
1005 [% IF LocalCoverImages %]
1006 KOHA.LocalCover.GetCoverFromBibnumber(true);
1008 $("body").on("click",".previewMARC", function(e){
1010 var page = $(this).attr("href");
1011 $("#marcPreview .modal-body").load(page + " table");
1012 $('#marcPreview').modal({show:true});
1014 $("#marcPreview").on("hidden", function(){
1015 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1017 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && ( normalized_isbn || normalized_upc ) ) %]
1018 novSelect.loadContentForQuery({
1019 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1020 ISBN : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1023 '[% Koha.Preference('NovelistSelectProfile') %]',
1024 '[% Koha.Preference('NovelistSelectPassword') %]',
1026 if ( d.length > 0 ){ //If no content
1027 $(".NovelistSelect").show();
1034 [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
1038 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && ( normalized_isbn || normalized_upc ) ) %]
1039 <script type="text/javascript" src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1041 [% INCLUDE 'datatables.inc' %]
1042 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script>
1043 [% INCLUDE 'browser-strings.inc' %]
1044 <script type="text/javascript" src="[% interface %]/js/browser.js"></script>
1045 <script type="text/javascript">
1046 var browser = KOHA.browser('[% searchid %]', parseInt(biblionumber, 10));
1049 function activate_filters(id) {
1050 var table = $("#" + id + " table");
1051 if (table.length == 1) {
1052 filters_row = table.find('thead tr.filters_row');
1055 filters_row.find('th').each(function() {
1056 if(this.className === "NoSort"){
1057 aoColumns.push(null);
1059 aoColumns.push('text');
1063 if (table.find('thead tr.columnFilter').length == 0) {
1064 table.dataTable().columnFilter({
1065 'sPlaceHolder': 'head:after'
1066 , 'aoColumns': aoColumns
1068 filters_row.addClass('columnFilter');
1073 $('#' + id + '_activate_filters')
1074 .html('<i class="fa fa-filter"></i> ' + _("Deactivate filters") )
1077 deactivate_filters(id);
1082 function deactivate_filters(id) {
1083 filters_row = $("#" + id + " table").find('thead tr.filters_row');
1085 filters_row.find('input[type="text"]')
1086 .val('') // Empty filter text boxes
1087 .trigger('keyup') // Filter (display all rows)
1088 .trigger('blur'); // Reset value to the column name
1091 $('#' + id + '_activate_filters')
1092 .html('<i class="fa fa-filter"></i> ' + _("Activate filters") )
1095 activate_filters(id);
1100 $(document).ready(function() {
1101 var ids = ['holdings', 'otherholdings'];
1102 for (var i in ids) {
1104 var table = $('#' + id + ' table');
1106 // Duplicate the table header row for columnFilter
1107 thead_row = table.find('thead tr');
1108 clone = thead_row.clone().addClass('filters_row');
1109 clone.find("th.NoSort").html('');
1110 thead_row.before(clone);
1113 table.dataTable($.extend(true, {}, dataTablesDefaults, {
1116 'bAutoWidth': false,
1118 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }
1122 // Show a link to activate filtering
1125 .attr('id', id + '_activate_filters');
1126 $("." + id + "_table_controls").prepend(link);
1127 deactivate_filters(id);
1129 [% IF Koha.Preference('AcquisitionDetails') %]
1130 $("#orders").dataTable($.extend(true, {}, dataTablesDefaults, {
1133 'bAutoWidth': false,
1134 "aaSorting": [[ 4, "desc" ]],
1136 { "aTargets": "title-string", "sType": "title-string" }
1143 [% INCLUDE 'intranet-bottom.inc' %]