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 [% IF CAN_user_reserveforothers_place_holds %]
116 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">[% holdcount %]</a>
118 <span>[% holdcount %]</span>
124 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
125 <span class="results_summary">
126 <span class="label">Article requests:</span>
127 <span class="number_box">
128 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber %]">[% article_requests_count %]</a>
133 [% IF ( AmazonCoverImages || LocalCoverImages ) %]
134 </div><div class="yui-u" id="bookcoverimg">
135 [% IF ( LocalCoverImages ) %]
136 <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
138 [% IF ( AmazonCoverImages ) %]
139 <div id="amazon-bookcoverimg">
140 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %][% AmazonAssocTag %]#reader-link">
141 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
147 <h3>[% title |html %]</h3>
148 [% FOREACH subtitl IN subtitle %]
149 <h4>[% subtitl.subfield %]</h4>
151 [% UNLESS ( item_level_itypes ) %]<img src="[% imageurl %]" alt="[% translated_description %]" title="[% translated_description %]">[% END %]
152 [% IF ( unititle ) %]<p>[% unititle |html %]</p>[% END %]
153 [% IF ( author ) %]<p>By <a href="/cgi-bin/koha/catalogue/search.pl?q=au:[% author |url %]">[% author | html %]</a></p>[% END %]
155 [% IF ( MARCAUTHORS ) %]
156 <li><strong>Additional authors:</strong><ul>
157 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
158 <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>
164 [% IF ( MARCSERIES ) %]
165 <li><strong>Series: </strong><ul>[% FOREACH MARCSERIE IN MARCSERIES %]
166 <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>
171 [% IF ( publishercode ) %]
172 <li><strong>Published by:</strong>
173 <a href="/cgi-bin/koha/catalogue/search.pl?q=pb:[% publishercode |url %]">
174 [% publishercode |html %]
175 </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %] [% IF ( editionstatement ) %][% editionstatement %][% END %] [% IF ( editionresponsibility ) %][% editionresponsibility %][% END %]
178 <li><strong>Description:</strong>
179 [% IF ( pages ) %] [% END %][% pages %] [% IF ( illus ) %][% illus %][% END %]
180 [% IF ( size ) %][% size %][% END %]
182 [% IF ( MARCURLS ) %]<li>
184 <strong>Online resources:</strong>
185 <ul> [% FOREACH MARCurl IN MARCURLS %]
186 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]
188 <!-- here you might do a tmpl_if name="toc" and use greybox or equivalent for table of contents -->
189 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">[% MARCurl.linktext %]</a>
190 [% IF ( MARCurl.notes ) %]<ul>[% FOREACH note IN MARCurl.notes %]<li>[% note.note %]</li>[% END %]</ul>[% END %]</li>
195 [% IF ( OPACBaseURL ) %]
196 <li><strong>OPAC view:</strong>
197 <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]" target="_blank">Open in new window</a>
200 <li id="catalogue_detail_marc_preview">
201 <strong>MARC Preview:</strong>
202 <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Show</a>
207 [% IF ( AmazonCoverImages || LocalCoverImages ) %]
208 <div class="yui-u" id="bookcoverimg">
209 [% IF ( LocalCoverImages ) %]
210 <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
212 [% IF ( AmazonCoverImages ) %]
213 <div id="amazon-bookcoverimg">
214 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %][% AmazonAssocTag %]#reader-link">
215 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
222 <div class="yui-u" style="margin-top: 1em;">
224 [% IF ( MARCISBNS ) %]
225 <li><strong>ISBN:</strong><ul>[% FOREACH MARCISBN IN MARCISBNS %]<li>[% MARCISBN | html %]</li>[% END %]</ul></li>
227 [% IF ( normalized_isbn ) %]
228 <li><strong>ISBN:</strong> [% normalized_isbn %]</li>
232 <li><strong>ISSN:</strong>[% issn %]</li>
234 [% IF ( collectiontitle ) %]
235 <li><strong>Collection: </strong>
236 [% collectiontitle %] [% IF ( collectionvolume ) %], [% collectionvolume %][% END %][% IF ( collectionissn ) %] (<strong>ISSN:</strong> [% collectionissn %])[% END %]
239 [% IF ( MARCSUBJCTS ) %]
240 <li><strong>Subjects:</strong>
242 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
243 <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>
248 [% IF ( copyrightdate ) %]
249 <li><strong>Copyright:</strong> [% copyrightdate %]</li>
252 [% IF ( classification ) %]
253 <li><strong>Classification:</strong> [% subclass %][% classification %]</li>
256 <li><strong>Dewey:</strong> [% dewey %]</li>
259 <li><strong>URL:</strong>
260 [% FOREACH url IN urlS %]
261 <a href="[% url.url %]">[% url.url %]</a>
265 <!--This grabs all of the lists a bib record appears in -->
266 [% IF shelves.count %]
267 <li><strong>Lists that include this title: </strong>
269 [% FOREACH s IN shelves %]
270 <li><a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber %]">[% s.shelfname %]</a></li>
275 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
276 <li><strong>Tags:</strong>
278 [% FOREACH TagLoo IN TagLoop %]
280 [% IF ( CAN_user_tools_moderate_tags ) %]
281 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term |html %]</a>
283 [% TagLoo.term |html %]
285 <span class="weight">([% TagLoo.weight_total %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]</li>
289 [% 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 %]
295 <div id="bibliodetails" class="toptabs">
298 [% IF (SeparateHoldings) %]
300 <a href="#holdings">[% LoginBranchname %] holdings ([% itemloop.size() || 0 %])</a>
303 <a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 %])</a>
307 <a href="#holdings">Holdings ([% itemloop.size() || 0 %])</a>
310 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions</a></li>[% END %]
311 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
312 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
313 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
314 [% IF ( LocalCoverImages ) %]
315 [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
317 <a href="#images">Images ([% localimages.size() || 0 %])</a>
321 [% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %]
322 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
323 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
327 [% items_table_block_iter = 0 %]
328 [% BLOCK items_table %]
329 [% items_table_block_iter = items_table_block_iter + 1 %]
330 <div class="[% tab %]_table_table_controls">
331 [% IF (StaffDetailItemSelection) %]
332 | <a href="#" class="SelectAll" data-tab="[% tab %]"><i class="fa fa-check"></i> Select all</a> |
333 <a href="#" class="ClearAll" data-tab="[% tab %]"><i class="fa fa-remove"></i> Clear all</a>
334 <span class="itemselection_actions">
336 [% IF CAN_user_tools_items_batchdel %]
337 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
339 [% IF CAN_user_tools_items_batchmod %]
340 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
345 <table class="items_table" id="[% tab %]_table">
348 [% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %]
349 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
350 <th>Current location</th>
351 <th>Home library</th>
352 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
357 [% IF ( volinfo ) %]<th>Serial enumeration / chronology</th>[% END %]
358 [% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
359 [% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
360 [% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
361 [% IF materials %]<th>Materials specified</th>[% END %]
362 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
363 [% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %]
364 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine label</th>[% END %]
365 [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
366 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
367 [% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
368 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort"> </th>[% END %]
372 [% FOREACH item IN items %]
374 [% IF (StaffDetailItemSelection) %]
375 <td style="text-align:center;vertical-align:middle">
376 <input type="checkbox" value="[% item.itemnumber %]" name="itemnumber" />
379 [% IF ( item_level_itypes ) %]
381 [% IF !noItemTypeImages && item.imageurl %]
382 <img src="[% item.imageurl %]" alt="[% item.translated_description %]" title="[% item.translated_description %]" />
384 [% item.translated_description %]
387 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) %] [% END %]</td>
388 <td class="homebranch">[% Branches.GetName(item.homebranch) %]<span class="shelvingloc">[% item.location %]</span> </td>
389 [% IF ( itemdata_ccode ) %]<td>[% item.ccode %]</td>[% END %]
390 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber %][% END %]</td>
393 [% IF item.CheckedOutFor %]
394 [% IF item.onsite_checkout %]
395 <span>Currently in local use
397 <span class="datedue">Checked out
399 [% UNLESS ( item.NOTSAMEBRANCH ) %]
400 [% IF item.onsite_checkout %]
405 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
407 : due [% item.datedue %]
409 [% ELSIF ( item.transfertwhen ) %]
410 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) %] to [% Branches.GetName( item.transfertto ) %] since [% item.transfertwhen | $KohaDates %]</span>
413 [% IF ( item.itemlost ) %]
414 [% IF itemlostloop %]
415 [% FOREACH itemlostloo IN itemlostloop %]
416 [% IF itemlostloo.authorised_value == item.itemlost %]
417 <span class="lost">[% itemlostloo.lib %]</span>
421 <span class="lost">Unavailable (lost or missing)</span>
425 [% IF ( item.withdrawn ) %]
426 [% IF itemwithdrawnloop %]
427 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
428 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
429 <span class="wdn">[% itemwithdrawnloo.lib %]</span>
433 <span class="wdn">Withdrawn</span>
437 [% IF ( item.damaged ) %]
438 [% IF itemdamagedloop %]
439 [% FOREACH itemdamagedloo IN itemdamagedloop %]
440 [% IF itemdamagedloo.authorised_value == item.damaged %]
441 <span class="dmg">[% itemdamagedloo.lib %]</span>
445 <span class="dmg">Damaged</span>
449 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
451 [% IF ( item.notforloanvalue ) %]
452 ([% item.notforloanvalue %])
456 [% IF ( item.reservedate ) %]
457 [% IF ( item.waitingdate ) %]
458 Waiting at [% Branches.GetName( item.ExpectedAtLibrary ) %] since [% item.waitingdate | $KohaDates %].
460 Item-level hold (placed [% item.reservedate | $KohaDates %]) for delivery at [% Branches.GetName( item.ExpectedAtLibrary ) %].
462 [% IF ( canreservefromotherbranches ) %]
464 [% INCLUDE 'patron-title.inc' patron=item.ReservedFor hide_patron_infos_if_needed=1 %]
467 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %]
471 [% IF ( item.restricted ) %]
472 <span class="restricted">([% item.restricted %])</span>
476 <td class="datelastseen">[% item.datelastseen | $KohaDates %]</td>
477 <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>
479 <td class="enumchron">
480 [% IF ( itemdata_enumchron ) %]
481 [% IF item.enumchron && item.serialseq %]
482 <span class="enum">[% item.enumchron %]</span>
483 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
484 <span class="sep"> -- </span>
485 <span class="serialseq">[% item.serialseq | html %]</span>
487 [% ELSIF item.enumchron %]
488 <span class="enum">[% item.enumchron | html %]</span>
489 [% ELSIF item.serialseq %]
490 <span class="serialseq">[% item.serialseq | html %]</span>
492 [% IF ( item.publisheddate ) %]
493 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
498 [% IF ( itemdata_uri ) %]
499 <td class="uri"><a href="[% item.uri %]">[% item.uri %]</a></td>
501 [% IF ( itemdata_copynumber ) %]
502 <td class="copynumber">[% item.copynumber %]</td>
504 [% IF ( itemdata_stocknumber ) %]
505 <td class="stocknumber">[% item.stocknumber %]</td>
508 <td class="materials"> [% item.materials %] </td>
510 [% IF ( itemdata_itemnotes ) %]
511 <td><div class="itemnotes">[% item.itemnotes %]</div></td>
513 [% IF itemdata_nonpublicnotes %]
514 <td class="nonpublicnote">[% item.itemnotes_nonpublic %]</td>
516 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
517 <td><a href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% item.barcode %]" >Print label</a></td>
519 [% IF ( hostrecords ) %]
520 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber %]" >[% item.hosttitle %]</a>[% END %]</td>
524 [% IF ( item.countanalytics ) %]
525 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber %]">[% item.countanalytics %] analytics</a>
530 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber %]&hostitemnumber=[% item.itemnumber %]">Create analytics</a></td>
533 [% IF ShowCourseReserves %]
535 [% IF item.course_reserves %]
536 [% FOREACH r IN item.course_reserves %]
537 [% IF r.course.enabled == 'yes' %]
539 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id %]">
540 [% r.course.course_name %]
541 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
542 [% IF r.course.section %] [% r.course.section %] [% END %]
543 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
551 [% IF CAN_user_editcatalogue_edit_items %]
553 [% UNLESS item.cannot_be_edited %]
554 <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>
562 [% END %][%# end of block items_table %]
566 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
567 <span class="results_summary NovelistSelect" style="display:none;">
568 <span class="label">Novelist Select: </span>
569 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
574 [% IF ( showncount ) %]
575 [% PROCESS items_table tab="holdings" items=itemloop %]
577 [% IF ( hiddencount ) %]
578 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]&showallitems=1">Show all items ([% hiddencount %] hidden)</a>
580 [% IF ( debug_display ) %]
583 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron %]</td></tr>
584 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber %]</td></tr>
585 <tr><td>serial</td><td>[% serial %]</td></tr>
589 [% IF ( ALTERNATEHOLDINGS ) %]
590 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
591 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
594 <div id="noitems">No physical items for this record</div>
598 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
599 <span class="results_summary NovelistSelect" style="display:none;">
600 <span class="label">Novelist Select: </span>
601 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
606 [% IF (SeparateHoldings) %]
607 <div id="otherholdings">
608 [% IF (otheritemloop.size) %]
609 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
616 [% IF ( MARCNOTES || notes ) %]
618 <div id="description">
619 <div class="content_set">
621 [% IF ( MARCNOTES ) %]
622 [% FOREACH MARCNOTE IN MARCNOTES %]
624 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
625 <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
627 [% MARCNOTE.marcnote FILTER html_line_break %]
641 [% IF ( subscriptionsnumber ) %]
642 <div id="subscriptions">
644 <div id="catalogue_detail_subscriptions">
645 <h2>This is a serial subscription</h2>
646 <p> (There are [% subscriptionsnumber %] subscriptions associated with this title).</p>
647 [% FOREACH subscription IN subscriptions %]
648 [% IF subscription.branchcode %]
649 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode %]</h3>
651 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
652 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber %] </p>[% END %]
653 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>[% END %]
654 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist %] </p>[% END %]
655 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote %])</p>[% END %]
656 [% IF ( subscription.latestserials ) %]
657 <p> The [% subscription.staffdisplaycount %] latest issues related to this subscription:</p>
661 <th>Date arrived</th>
662 <th>Date published</th>
666 [% FOREACH latestserial IN subscription.latestserials %]
668 <td>[% latestserial.serialseq %]</td>
669 <td>[% latestserial.planneddate %]</td>
670 <td>[% latestserial.publisheddate%]</td>
672 [% IF ( latestserial.status1 ) %]Expected[% END %]
673 [% IF ( latestserial.status2 ) %]Arrived[% END %]
674 [% IF ( latestserial.status3 ) %]Late[% END %]
675 [% IF ( latestserial.status4 ) %]Missing[% END %]
676 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
677 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
678 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
679 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
680 [% IF ( latestserial.status5 ) %]Not issued[% END %]
681 [% IF ( latestserial.status6 ) %]Delete[% END %]
682 [% IF ( latestserial.status7 ) %]Claimed[% END %]
683 [% IF ( latestserial.status8 ) %]Stopped[% END %]
685 <td>[% latestserial.notes %]</td>
690 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]">Subscription details</a>
697 [% IF Koha.Preference('AcquisitionDetails') %]
698 <div id="acq_details">
705 <th>Basket group</th>
707 <th>Order number</th>
708 <th class="title-string">Creation date</th>
709 <th class="title-string">Receive date</th>
715 [% FOR order IN orders %]
719 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.id %]" title="Vendor detail page">[% order.name %]</a>
723 [% IF (order.invoiceid) %]
724 [% IF CAN_user_acquisition %]
725 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid %]"
726 title="Invoice detail page">
727 [% order.invoicenumber %]</a>
729 [% order.invoicenumber %]
734 [% IF (order.basketgroupid) %]
735 [% IF CAN_user_acquisition_group_manage %]
736 <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% order.id %]&basketgroupid=[% order.basketgroupid %]">[% order.groupname %] ([% order.basketgroupid %])</a>
738 [% order.groupname %] ([% order.basketgroupid %])
742 <td>[% IF CAN_user_acquisition_order_manage %]
743 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% order.basketno %]">[% order.basketname %] ([% order.basketno %])</a>
745 [% order.basketname %] ([% order.basketno %])
747 <td>[% order.ordernumber %]</td>
748 <td><span title="[% order.creationdate %]">[% order.creationdate | $KohaDates%]</span></td>
749 <td><span title="[% order.datereceived %]">[% order.datereceived | $KohaDates%]</span></td>
751 [% SWITCH order.orderstatus %]
753 [% CASE 'ordered' %]Ordered
754 [% CASE 'partial' %]Partial
755 [% CASE 'complete' %]Complete
756 [% CASE 'cancelled' %]Cancelled
759 <td>[% order.quantity %]</td>
765 There is no order for this biblio.
770 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
771 <div id="editions"><h4>Editions</h4>
773 [% 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 %]
774 [% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description %][% ELSE %]<img src="[% XISBN.imageurl %]" alt="[% XISBN.description %]" title="[% XISBN.description %]">[% END %]</td>[% END %]
775 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate %]
776 [% IF ( XISBN.publishercode ) %]
777 [% 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 %]
779 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages %] [% IF ( XISBN.illus ) %][% XISBN.illus %][% END %]
780 [% IF ( XISBN.size ) %], [% END %][% XISBN.size %]
784 </table></div>[% END %]
787 [% IF ( LocalCoverImages ) %]
789 [% IF ( localimages.0 ) %]
790 <p>Click on an image to view it in the image viewer</p>
791 <ul class="thumbnails">
792 [% FOREACH image IN localimages %]
794 <li id="imagenumber-[% image %]">
795 <a class="thumbnail" href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber %]&imagenumber=[% image %]">
796 <img alt="remove this image" src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image %]" />
797 [% IF CAN_user_tools_upload_local_cover_images %]
798 <span class="remove" title="remove this image">Delete image</span>
805 [%# ELSE - No image passed JavaScript takes care %]
810 [% IF ( HTML5MediaEnabled ) %]
811 <div id="html5media">
812 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
814 <[% HTML5MediaParent %] controls preload=none>
815 <[% HTML5MediaSet.child %] src="[% HTML5MediaSet.srcblock %]"[% HTML5MediaSet.typeblock %] />
816 [[% HTML5MediaParent %] tag not supported by your browser.]
817 </[% HTML5MediaParent %]>
824 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
825 <div id="NovelistSelect" class="novelistSelect">
826 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
830 </div><!-- /bibliodetails -->
832 <div class="yui-g" id="export" style="margin-top: 1em;">
833 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
835 <th>Save Record</th> </tr>
836 <tr><td> Select download format: <select name="format">
837 <option value="mods">MODS (XML)</option>
838 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
839 <option value="marcxml">MARCXML</option>
840 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
841 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
842 <input type="submit" name="save" value="Download Record" /></td>
845 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber %]" />
851 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
852 <div class="modal-dialog modal-lg">
853 <div class="modal-content">
854 <div class="modal-header">
855 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
856 <h3 id="marcPreviewLabel">MARC preview</h3>
858 <div class="modal-body">
859 <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
861 <div class="modal-footer">
862 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
871 [% INCLUDE 'biblio-view-menu.inc' %]
876 [% MACRO jsinclude BLOCK %]
877 [% INCLUDE 'catalog-strings.inc' %]
878 [% Asset.js("js/catalog.js") %]
879 [% INCLUDE 'greybox.inc' %]
880 <script type="text/javascript">
881 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
882 function verify_images() {
883 $("#bookcoverimg").each(function(i){
884 $(this).find('img').each(function(i){
885 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'))) {
888 if ((w == 1) || (h == 1)) {
889 $("#amazon-bookcoverimg").remove();
890 $(".yui-gb").attr("class","yui-g");
891 } else if ((this.complete != null) && (!this.complete)) {
892 $("#amazon-bookcoverimg").remove();
893 $(".yui-gb").attr("class","yui-g");
897 if( $(this).find('img').length < 1 ) $(this).remove();
899 $("#editions img").each(function(i){
900 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'))) {
903 if ((w == 1) || (h == 1)) {
904 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
905 } else if ((this.complete != null) && (!this.complete)) {
906 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
912 function removeLocalImage(imagenumber) {
914 url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
915 success: function(data) {
916 $(data).each( function(i) {
917 if ( this.deleted == 1 ) {
918 $('#imagenumber-' + this.imagenumber).remove();
920 if ( $('ul.thumbnails > li').length == 0 ) {
921 showNoImageMessage();
925 error: function(data) {
926 alert(_("An error occurred on deleting this image"));
931 function showNoImageMessage() {
932 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
933 no_images_msg = '<p>' + no_images_msg + '</p>';
934 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
935 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>");
936 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
938 $('#images').html(no_images_msg);
941 [% IF StaffDetailItemSelection %]
942 function itemSelectionBuildDeleteLink(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&del=1';
949 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
950 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
951 $('a.itemselection_action_delete').attr('href', url);
958 function itemSelectionBuildModifyLink(div) {
959 var itemnumbers = new Array();
960 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
961 itemnumbers.push($(this).val());
963 if (itemnumbers.length > 0) {
964 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
965 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
966 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
967 $('a.itemselection_action_modify').attr('href', url);
974 function itemSelectionBuildActionLinks(tab) {
975 var div = $("#" + tab);
976 var delete_link_ok = itemSelectionBuildDeleteLink(div);
977 var modify_link_ok = itemSelectionBuildModifyLink(div);
978 if (modify_link_ok || delete_link_ok) {
979 $('.itemselection_actions', div).show();
981 $('.itemselection_actions', div).hide();
985 $(document).ready(function() {
986 $('table.items_table').each(function() {
987 var div = $(this).parent().attr("id");
988 itemSelectionBuildActionLinks(div);
991 $("input[name='itemnumber'][type='checkbox']").change(function() {
992 var div = $(this).parents('table').parent().parent().attr("id");
993 itemSelectionBuildActionLinks(div);
996 $(".SelectAll").on("click",function(e){
998 var tab = $(this).data("tab");
999 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
1000 itemSelectionBuildActionLinks(tab);
1003 $(".ClearAll").on("click",function(e){
1005 var tab = $(this).data("tab");
1006 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
1007 itemSelectionBuildActionLinks(tab);
1012 $(document).ready(function() {
1013 $('#bibliodetails').tabs();
1015 $('#bibliodetails').tabs("option", "active", 3);
1017 $('#search-form').focus();
1018 $('.thumbnails > li > a > span.remove').click(function() {
1019 var result = confirm(_("Are you sure you want to delete this cover image?"));
1021 if ( result == true ) {
1022 var imagenumber = $(this).parent().parent().attr('id').split('-')[1];
1023 removeLocalImage(imagenumber);
1028 [%# inject no images message %]
1029 [% IF ( LocalCoverImages && ! localimages.0 ) %]
1030 showNoImageMessage();
1032 [% IF LocalCoverImages %]
1033 KOHA.LocalCover.GetCoverFromBibnumber(true);
1035 $("body").on("click",".previewMARC", function(e){
1037 var page = $(this).attr("href");
1038 $("#marcPreview .modal-body").load(page + " table");
1039 $('#marcPreview').modal({show:true});
1041 $("#marcPreview").on("hidden", function(){
1042 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1044 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1045 novSelect.loadContentForQuery({
1046 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1047 ISBN : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1050 '[% Koha.Preference('NovelistSelectStaffProfile') %]',
1051 '[% Koha.Preference('NovelistSelectPassword') %]',
1053 if ( d.length > 0 ){ //If no content
1054 $(".NovelistSelect").show();
1061 [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
1065 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1066 [% Asset.js("https://imageserver.ebscohost.com/novelistselect/ns2init.js") %]
1068 [% INCLUDE 'datatables.inc' %]
1069 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") %]
1070 [% INCLUDE 'browser-strings.inc' %]
1071 [% INCLUDE 'columns_settings.inc' %]
1072 [% Asset.js("js/browser.js") %]
1073 [% Asset.js("js/table_filters.js") %]
1074 <script type="text/javascript">
1076 browser = KOHA.browser('[% searchid %]', parseInt(biblionumber, 10));
1079 $(document).ready(function() {
1080 var ids = ['holdings_table', 'otherholdings_table'];
1082 for (var i in ids) {
1084 var dt_parameters = {
1087 'bAutoWidth': false,
1089 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }
1092 var table = KohaTable(id, dt_parameters, null, 'with_filters');
1095 [% IF Koha.Preference('AcquisitionDetails') %]
1096 $("#orders").dataTable($.extend(true, {}, dataTablesDefaults, {
1099 'bAutoWidth': false,
1100 "aaSorting": [[ 4, "desc" ]],
1102 { "aTargets": "title-string", "sType": "title-string" }
1109 [% INCLUDE 'intranet-bottom.inc' %]