5 [% USE AuthorisedValues %]
8 [% USE ColumnsSettings %]
9 [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
10 [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
12 [% IF Koha.Preference('AmazonAssocTag') %]
13 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
15 [% AmazonAssocTag = '' %]
18 [% ShowCourseReserves = 0 | html %]
19 [% IF UseCourseReserves %]
20 [% FOREACH item IN itemloop %]
21 [% IF item.course_reserves %]
22 [% FOREACH r IN item.course_reserves %]
23 [% IF r.course.enabled == 'yes' %]
24 [% ShowCourseReserves = 1 | html %]
31 [% SET footerjs = 1 %]
32 [% INCLUDE 'doc-head-open.inc' %]
33 <title>Koha › Catalog ›
34 [% IF ( unknownbiblionumber ) %]
37 Details for [% INCLUDE 'biblio-title-head.inc' %]
40 [% INCLUDE 'doc-head-close.inc' %]
43 <body id="catalog_detail" class="catalog">
45 [% INCLUDE 'header.inc' %]
46 [% INCLUDE 'cat-search.inc' %]
48 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> ›
49 [% IF ( unknownbiblionumber ) %]
52 Details for <i>[% INCLUDE 'biblio-title.inc' %]</i>
56 <div class="main container-fluid">
58 <div class="col-sm-10 col-sm-push-2">
62 [% IF ( unknownbiblionumber ) %]
63 <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
67 IntranetCoce = Koha.Preference('IntranetCoce')
68 CoceProviders = Koha.Preference('CoceProviders')
69 CoceHost = Koha.Preference('CoceHost')
72 [% INCLUDE 'cat-toolbar.inc' %]
74 <!-- COinS / OpenURL -->
75 <span class="Z3988" title="[% ocoins | html %]"></span>
78 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce ) %]
79 <div id="catalogue_detail_biblio" class="col-xs-9">
81 <div id="catalogue_detail_biblio" class="col-xs-12">
86 [% IF shelves.count %]
87 <span class="results_summary"><span class="label">Lists that include this title: </span>
88 [% FOREACH s IN shelves %]
89 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
90 [% IF ( loop.last ) %][% ELSE %]|[% END %]
94 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
95 <span class="results_summary"><span class="label">Tags:</span>
96 [% FOREACH TagLoo IN TagLoop %]
97 [% IF ( CAN_user_tools_moderate_tags ) %]
98 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
100 [% TagLoo.term | html %]
102 <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
106 <span id="catalogue_detail_marc_preview" class="results_summary"><span class="label">MARC Preview:</span> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber | uri %]&viewas=html" title="MARC" class="previewMARC">Show</a></span>
108 [% IF ( holdcount ) %]
109 <span class="results_summary">
110 <span class="label">Holds:</span>
111 <span class="number_box">
112 [% IF CAN_user_reserveforothers_place_holds %]
113 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a>
115 <span>[% holdcount | html %]</span>
121 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
122 <span class="results_summary">
123 <span class="label">Article requests:</span>
124 <span class="number_box">
125 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | uri %]">[% article_requests_count | html %]</a>
130 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce ) %]
131 </div><div class="col-xs-3" id="bookcoverimg">
132 [% IF ( LocalCoverImages ) %]
133 <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
135 [% IF ( AdlibrisEnabled && normalized_isbn ) %]
136 <a href="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]"><img src="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]" class="adlibris-cover-big" alt="Adlibris cover image" /></a>
138 [% IF ( AmazonCoverImages ) %]
139 <div id="amazon-bookcoverimg">
140 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
141 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
144 [% IF ( IntranetCoce && CoceProviders ) %]
145 [% coce_id = normalized_ean || normalized_isbn %]
146 <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% biblionumber |url %]">
148 <span style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></span>
150 <span class="no-image">No cover image available</span>
158 <div id="bibliodetails" class="toptabs">
161 [% IF (SeparateHoldings) %]
163 <a href="#holdings">[% LoginBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
166 <a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
170 <a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a>
173 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions</a></li>[% END %]
174 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
175 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
176 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
177 [% IF ( LocalCoverImages ) %]
178 [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
180 <a href="#images">Images ([% localimages.size() || 0 | html %])</a>
184 [% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %]
185 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
186 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
190 [% items_table_block_iter = 0 %]
191 [% BLOCK items_table %]
192 [% items_table_block_iter = items_table_block_iter + 1 %]
193 <div class="[% tab | html %]_table_table_controls">
194 [% IF (StaffDetailItemSelection) %]
195 | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
196 <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
197 <span class="itemselection_actions">
199 [% IF CAN_user_tools_items_batchdel %]
200 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
202 [% IF CAN_user_tools_items_batchmod %]
203 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
208 <table class="items_table" id="[% tab | html %]_table">
211 [% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %]
212 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
213 <th>Current location</th>
214 <th>Home library</th>
215 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
217 [% IF ( volinfo ) %]<th>Serial enumeration / chronology</th>[% END %]
219 <th class="title-string">Last seen</th>
220 <th class="title-string">Date accessioned</th>
222 [% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
223 [% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
224 [% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
225 [% IF materials %]<th>Materials specified</th>[% END %]
226 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
227 [% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %]
228 [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
229 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
230 [% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
231 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th class="NoSort">Spine label</th>[% END %]
232 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort"> </th>[% END %]
236 [% FOREACH item IN items %]
238 [% IF (StaffDetailItemSelection) %]
239 <td style="text-align:center;vertical-align:middle">
240 <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
243 [% IF ( item_level_itypes ) %]
245 [% IF !noItemTypeImages && item.imageurl %]
246 <img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
248 [% item.translated_description | html %]
251 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
252 <td class="homebranch">
253 [% Branches.GetName(item.homebranch) | html %]
254 <span class="shelvingloc">[% item.location | html %]</span>
256 [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
257 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
259 <td class="enumchron">
260 [% IF ( itemdata_enumchron ) %]
261 [% IF item.enumchron && item.serialseq %]
262 <span class="enum">[% item.enumchron | html %]</span>
263 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
264 <span class="sep"> -- </span>
265 <span class="serialseq">[% item.serialseq | html %]</span>
267 [% ELSIF item.enumchron %]
268 <span class="enum">[% item.enumchron | html %]</span>
269 [% ELSIF item.serialseq %]
270 <span class="serialseq">[% item.serialseq | html %]</span>
272 [% IF ( item.publisheddate ) %]
273 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
280 [% IF item.CheckedOutFor %]
281 [% IF item.onsite_checkout %]
282 <span>Currently in local use
284 <span class="datedue">Checked out
286 [% UNLESS ( item.NOTSAMEBRANCH ) %]
287 [% IF item.onsite_checkout %]
292 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
294 : due [% item.datedue | html %]
296 [% ELSIF ( item.transfertwhen ) %]
297 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
300 [% IF ( item.itemlost ) %]
301 [% IF itemlostloop %]
302 [% FOREACH itemlostloo IN itemlostloop %]
303 [% IF itemlostloo.authorised_value == item.itemlost %]
304 <span class="lost">[% itemlostloo.lib | html %]</span>
308 <span class="lost">Unavailable (lost or missing)</span>
312 [% IF ( item.withdrawn ) %]
313 [% IF itemwithdrawnloop %]
314 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
315 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
316 <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
320 <span class="wdn">Withdrawn</span>
324 [% IF ( item.damaged ) %]
325 [% IF itemdamagedloop %]
326 [% FOREACH itemdamagedloo IN itemdamagedloop %]
327 [% IF itemdamagedloo.authorised_value == item.damaged %]
328 <span class="dmg">[% itemdamagedloo.lib | html %]</span>
332 <span class="dmg">Damaged</span>
336 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
338 [% IF ( item.notforloanvalue ) %]
339 ([% item.notforloanvalue | html %])
343 [% IF ( item.reservedate ) %]
344 [% IF ( item.waitingdate ) %]
345 Waiting at [% Branches.GetName( item.ExpectedAtLibrary ) | html %] since [% item.waitingdate | $KohaDates %].
347 Item-level hold (placed [% item.reservedate | $KohaDates %]) for delivery at [% Branches.GetName( item.ExpectedAtLibrary ) | html %].
349 [% IF ( canreservefromotherbranches ) %]
351 [% INCLUDE 'patron-title.inc' patron=item.ReservedFor hide_patron_infos_if_needed=1 %]
354 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %]
358 [% IF ( item.restricted ) %]
359 <span class="restricted">([% item.restrictedvalue | html %])</span>
363 <td class="datelastseen"><span title="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</span></td>
364 <td class="dateaccessioned"><span title="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</span></td>
365 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=[% item.type | uri %]&itemnumber=[% item.itemnumber | uri %]&biblionumber=[% item.biblionumber | uri %]&bi=[% item.biblioitemnumber | uri %]#item[% item.itemnumber | uri %]">[% item.barcode | html %]</a></td>
366 [% IF ( itemdata_uri ) %]
367 <td class="uri"><a href="[% item.uri | url %]">[% item.uri | html %]</a></td>
369 [% IF ( itemdata_copynumber ) %]
370 <td class="copynumber">[% item.copynumber | html %]</td>
372 [% IF ( itemdata_stocknumber ) %]
373 <td class="stocknumber">[% item.stocknumber | html %]</td>
376 <td class="materials"> [% item.materials | html %] </td>
378 [% IF ( itemdata_itemnotes ) %]
379 <td><div class="itemnotes">[% item.itemnotes | $raw %]</div></td>
381 [% IF itemdata_nonpublicnotes %]
382 <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
384 [% IF ( hostrecords ) %]
385 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
389 [% IF ( item.countanalytics ) %]
390 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
395 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
398 [% IF ShowCourseReserves %]
400 [% IF item.course_reserves %]
401 [% FOREACH r IN item.course_reserves %]
402 [% IF r.course.enabled == 'yes' %]
404 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
405 [% r.course.course_name | html %]
406 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
407 [% IF r.course.section %] [% r.course.section | html %] [% END %]
408 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
417 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
418 <td><a class="btn btn-default btn-xs print-label" href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% item.barcode | uri %]"><i class="fa fa-print"></i> Print label</a></td>
421 [% IF CAN_user_editcatalogue_edit_items %]
423 [% UNLESS item.cannot_be_edited %]
424 <a class="btn btn-default btn-xs" href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber | html %]&itemnumber=[% item.itemnumber | html %]#edititem"><i class="fa fa-pencil"></i> Edit</a>
432 [% END %][%# end of block items_table %]
436 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
437 <span class="results_summary NovelistSelect" style="display:none;">
438 <span class="label">Novelist Select: </span>
439 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
444 [% IF ( showncount ) %]
445 [% PROCESS items_table tab="holdings" items=itemloop %]
447 [% IF ( hiddencount ) %]
448 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
450 [% IF ( debug_display ) %]
453 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
454 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
455 <tr><td>serial</td><td>[% serial | html %]</td></tr>
459 [% IF ( ALTERNATEHOLDINGS ) %]
460 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
461 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
464 <div id="noitems">No physical items for this record</div>
468 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
469 <span class="results_summary NovelistSelect" style="display:none;">
470 <span class="label">Novelist Select: </span>
471 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
476 [% IF (SeparateHoldings) %]
477 <div id="otherholdings">
478 [% IF (otheritemloop.size) %]
479 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
486 [% IF ( MARCNOTES || notes ) %]
488 <div id="description">
489 <div class="content_set">
491 [% IF ( MARCNOTES ) %]
492 [% FOREACH MARCNOTE IN MARCNOTES %]
494 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
495 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
497 [% MARCNOTE.marcnote | html | html_line_break %]
503 <p>[% notes | html %]</p>
511 [% IF ( subscriptionsnumber ) %]
512 <div id="subscriptions">
513 <div id="catalogue_detail_subscriptions">
514 <h2>This is a serial subscription</h2>
515 <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
516 [% FOREACH subscription IN subscriptions %]
517 [% IF subscription.branchcode %]
518 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
520 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
521 [% IF ( subscription.location ) %]<p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location ) | html %]</p>[% END %]
522 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
523 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
524 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
525 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
526 [% IF ( subscription.latestserials ) %]
527 <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
531 <th>Date arrived</th>
532 <th>Date published</th>
536 [% FOREACH latestserial IN subscription.latestserials %]
538 <td>[% latestserial.serialseq | html %]</td>
539 <td><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td>
540 <td><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td>
542 [% IF ( latestserial.status1 ) %]Expected[% END %]
543 [% IF ( latestserial.status2 ) %]Arrived[% END %]
544 [% IF ( latestserial.status3 ) %]Late[% END %]
545 [% IF ( latestserial.status4 ) %]Missing[% END %]
546 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
547 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
548 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
549 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
550 [% IF ( latestserial.status5 ) %]Not issued[% END %]
551 [% IF ( latestserial.status6 ) %]Delete[% END %]
552 [% IF ( latestserial.status7 ) %]Claimed[% END %]
553 [% IF ( latestserial.status8 ) %]Stopped[% END %]
555 <td>[% latestserial.notes | html %]</td>
560 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
566 [% IF Koha.Preference('AcquisitionDetails') %]
567 <div id="acq_details">
574 <th>Basket group</th>
576 <th>Order number</th>
577 <th class="title-string">Creation date</th>
578 <th class="title-string">Receive date</th>
581 <th>Internal note</th>
582 <th>Subscription</th>
583 <th>Subscription callnumber</th>
587 [% FOR order IN orders %]
588 [% SET basket = order.basket %]
589 [% SET vendor = basket.bookseller %]
592 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
595 [% IF order.invoiceid %]
596 [% IF CAN_user_acquisition %]
597 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
598 title="Invoice detail page">
599 [% order.invoice.invoicenumber | html %]</a>
601 [% order.invoice.invoicenumber | html %]
606 [% IF basket.basketgroupid %]
607 [% SET basket_group = basket.basket_group %]
608 [% IF CAN_user_acquisition_group_manage %]
609 <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% vendor.id | uri %]&basketgroupid=[% basket_group.id | uri %]">[% basket_group.name | html%] ([% basket_group.id | html %])</a>
611 [% basket_group.name | html %] ([% basket_group.id | html %])
615 <td>[% IF CAN_user_acquisition_order_manage %]
616 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
618 [% basket.basketname | html %] ([% basket.basketno | html %])
620 <td>[% order.ordernumber | html %]</td>
621 <td><span title="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</span></td>
622 <td><span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</span></td>
624 [% SWITCH order.orderstatus %]
626 [% CASE 'ordered' %]Ordered
627 [% CASE 'partial' %]Partial
628 [% CASE 'complete' %]Complete
629 [% CASE 'cancelled' %]Cancelled
632 <td>[% order.quantity | html %]</td>
633 <td>[% order.order_internalnote | html %]</td>
635 [% IF order.subscriptionid %]
636 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
640 [% IF order.subscriptionid %]
641 [% order.subscription.callnumber | html %]
649 There is no order for this biblio.
654 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
655 <div id="editions"><h4>Editions</h4>
657 [% FOREACH XISBN IN XISBNS %]<tr>[% IF ( AmazonCoverImages ) %]<td><a href="http://www.amazon.com/gp/reader/[% XISBN.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"><img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" /></a></td>[% END %]
658 [% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description | html %][% ELSE %]<img src="[% XISBN.imageurl | html %]" alt="[% XISBN.description | html %]" title="[% XISBN.description | html %]">[% END %]</td>[% END %]
659 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
660 [% IF ( XISBN.publishercode ) %]
661 [% XISBN.publishercode | html %] [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %] [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear | html %][% END %] [% IF ( XISBN.editionstatement ) %][% XISBN.editionstatement | html %][% END %] [% IF ( XISBN.editionresponsibility ) %][% XISBN.editionresponsibility | html %][% END %]
663 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
664 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
668 </table></div>[% END %]
671 [% IF ( LocalCoverImages ) %]
673 [% IF ( localimages.0 ) %]
674 <p>Click on an image to view it in the image viewer</p>
675 <ul class="thumbnails">
676 [% FOREACH image IN localimages %]
678 <li id="imagenumber-[% image | html %]" class="thumbnail">
679 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image | uri %]">
680 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image | uri %]" />
682 [% IF CAN_user_tools_upload_local_cover_images %]
683 <a href="#" class="remove"><i class="fa fa-trash"></i> Delete image</a>
689 [% ELSE # - No image passed JavaScript takes care %]
690 No images have been uploaded for this bibliographic record yet.
692 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
693 <p>Upload an image file: <a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber | uri %]&filetype=image"><i class="fa fa-upload" aria-hidden="true"></i> Upload</a>
699 [% IF ( HTML5MediaEnabled ) %]
700 <div id="html5media">
701 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
703 <[% HTML5MediaParent | html %] controls preload=none>
704 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]"[% HTML5MediaSet.typeblock | html %] />
705 [[% HTML5MediaParent | html %] tag not supported by your browser.]
706 </[% HTML5MediaParent | html %]>
713 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
714 <div id="NovelistSelect" class="novelistSelect">
715 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
719 </div><!-- /bibliodetails -->
721 <div id="export" style="margin-top: 1em;">
722 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
724 <th>Save record</th> </tr>
725 <tr><td> Select download format: <select name="format">
726 <option value="mods">MODS (XML)</option>
727 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
728 <option value="marcxml">MARCXML</option>
729 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
730 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
731 <input type="submit" name="save" value="Download record" /></td>
734 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
740 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
741 <div class="modal-dialog modal-lg">
742 <div class="modal-content">
743 <div class="modal-header">
744 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
745 <h3 id="marcPreviewLabel">MARC preview</h3>
747 <div class="modal-body">
748 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
750 <div class="modal-footer">
751 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
758 </div> <!-- /.col-sm-10.col-sm-push-2 -->
760 <div class="col-sm-2 col-sm-pull-10">
762 [% INCLUDE 'biblio-view-menu.inc' %]
764 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
765 </div> <!-- /.row -->
769 [% MACRO jsinclude BLOCK %]
770 [% INCLUDE 'catalog-strings.inc' %]
771 [% Asset.js("js/catalog.js") | $raw %]
772 [% INCLUDE 'greybox.inc' %]
773 <script type="text/javascript" src="[% interface %]/prog/js/coce_[% KOHA_VERSION %].js"></script>
775 var interface = "[% interface | html %]";
776 var theme = "[% theme | html %]";
777 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
778 function verify_images() {
779 $("#bookcoverimg").each(function(i){
780 $(this).find('img').each(function(i){
781 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'))) {
784 if ((w == 1) || (h == 1)) {
785 $("#amazon-bookcoverimg").remove();
786 $("#catalogue_detail_biblio").attr("class","col-xs-12");
787 } else if ((this.complete != null) && (!this.complete)) {
788 $("#amazon-bookcoverimg").remove();
789 $("#catalogue_detail_biblio").attr("class","col-xs-12");
793 if( $(this).find('img').length < 1 ) $(this).remove();
795 $("#editions img").each(function(i){
796 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'))) {
799 if ((w == 1) || (h == 1)) {
800 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
801 } else if ((this.complete != null) && (!this.complete)) {
802 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
808 function removeLocalImage(imagenumber) {
809 var thumbnail = $("#imagenumber-" + imagenumber );
810 var copy = thumbnail.html();
811 thumbnail.find("img").css("opacity", ".2");
812 thumbnail.find("a.remove").html("<img style='display:inline-block' src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' />");
814 url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
815 success: function(data) {
816 $(data).each( function(i) {
817 if ( this.deleted == 1 ) {
820 thumbnail.html( copy );
821 alert(_("An error occurred on deleting this image"));
823 if ( $('ul.thumbnails > li').length == 0 ) {
824 showNoImageMessage();
828 error: function(data) {
829 thumbnail.html( copy );
830 alert(_("An error occurred on deleting this image"));
835 function showNoImageMessage() {
836 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
837 no_images_msg = '<p>' + no_images_msg + '</p>';
838 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
839 var please_upload = _("Upload an image file: %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>");
840 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
842 $('#images').html(no_images_msg);
845 [% IF StaffDetailItemSelection %]
846 function itemSelectionBuildDeleteLink(div) {
847 var itemnumbers = new Array();
848 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
849 itemnumbers.push($(this).val());
851 if (itemnumbers.length > 0) {
852 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
853 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
854 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
855 $('a.itemselection_action_delete').attr('href', url);
862 function itemSelectionBuildModifyLink(div) {
863 var itemnumbers = new Array();
864 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
865 itemnumbers.push($(this).val());
867 if (itemnumbers.length > 0) {
868 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
869 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
870 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
871 $('a.itemselection_action_modify').attr('href', url);
878 function itemSelectionBuildActionLinks(tab) {
879 var div = $("#" + tab);
880 var delete_link_ok = itemSelectionBuildDeleteLink(div);
881 var modify_link_ok = itemSelectionBuildModifyLink(div);
882 if (modify_link_ok || delete_link_ok) {
883 $('.itemselection_actions', div).show();
885 $('.itemselection_actions', div).hide();
889 $(document).ready(function() {
890 $('table.items_table').each(function() {
891 var div = $(this).parent().attr("id");
892 itemSelectionBuildActionLinks(div);
895 $("input[name='itemnumber'][type='checkbox']").change(function() {
896 var div = $(this).parents('table').parent().parent().attr("id");
897 itemSelectionBuildActionLinks(div);
900 $(".SelectAll").on("click",function(e){
902 var tab = $(this).data("tab");
903 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
904 itemSelectionBuildActionLinks(tab);
907 $(".ClearAll").on("click",function(e){
909 var tab = $(this).data("tab");
910 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
911 itemSelectionBuildActionLinks(tab);
916 $(document).ready(function() {
917 $('#bibliodetails').tabs();
919 $('#bibliodetails').tabs("option", "active", 3);
921 $('#search-form').focus();
922 $('.thumbnails > li > .remove').click(function() {
923 var result = confirm(_("Are you sure you want to delete this cover image?"));
925 if ( result == true ) {
926 var imagenumber = $(this).parent().attr('id').split('-')[1];
927 removeLocalImage(imagenumber);
932 [%# inject no images message %]
933 [% IF LocalCoverImages %]
934 KOHA.LocalCover.GetCoverFromBibnumber(true);
936 [% IF ( IntranetCoce && CoceProviders ) %]
937 KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]');
940 $("body").on("click",".previewMARC", function(e){
942 var page = $(this).attr("href");
943 $("#marcPreview .modal-body").load(page + " table");
944 $('#marcPreview').modal({show:true});
946 $("#marcPreview").on("hidden.bs.modal", function(){
947 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
949 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
950 novSelect.loadContentForQuery({
951 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
952 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
955 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
956 '[% Koha.Preference('NovelistSelectPassword') | html %]',
958 if ( d.length > 0 ){ //If no content
959 $(".NovelistSelect").show();
963 $(".print-label").on("click", function(e){
965 link = $(this).attr("href");
966 openWindow(link,"Print spine label",400,400);
970 [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
974 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
975 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
977 [% INCLUDE 'datatables.inc' %]
978 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
979 [% INCLUDE 'browser-strings.inc' %]
980 [% INCLUDE 'columns_settings.inc' %]
981 [% Asset.js("js/browser.js") | $raw %]
982 [% Asset.js("js/table_filters.js") | $raw %]
985 browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
988 $(document).ready(function() {
989 var ids = ['holdings_table', 'otherholdings_table'];
993 var dt_parameters = {
998 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
999 { "sType": "title-string", "aTargets" : [ "title-string" ] }
1002 var table = KohaTable(id, dt_parameters, null, 'with_filters');
1005 [% IF Koha.Preference('AcquisitionDetails') %]
1006 var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
1007 var acquisitiondetails_table = KohaTable("orders", {
1008 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1010 'bAutoWidth': false,
1011 "aaSorting": [[ 4, "desc" ]],
1013 { "aTargets": "title-string", "sType": "title-string" }
1015 }, columns_settings);
1020 [% INCLUDE 'intranet-bottom.inc' %]