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>
66 [% IntranetCoce = Koha.Preference('IntranetCoce') %]
67 [% CoceProviders = Koha.Preference('CoceProviders') %]
68 [% CoceHost = Koha.Preference('CoceHost') %]
70 [% INCLUDE 'cat-toolbar.inc' %]
72 <!-- COinS / OpenURL -->
73 <span class="Z3988" title="[% ocoins | html %]"></span>
76 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
77 [% IF ( XSLTDetailsDisplay ) %]
78 <div id="catalogue_detail_biblio" class="col-xs-9">
80 <div id="catalogue_detail_biblio" class="col-xs-9">
83 <div id="catalogue_detail_biblio" class="col-xs-12">
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 | uri %]">[% s.shelfname | html %]</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 | html %])</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 | uri %]&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 [% IF CAN_user_reserveforothers_place_holds %]
115 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a>
117 <span>[% holdcount | html %]</span>
123 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
124 <span class="results_summary">
125 <span class="label">Article requests:</span>
126 <span class="number_box">
127 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | uri %]">[% article_requests_count | html %]</a>
132 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
133 </div><div class="col-xs-3" id="bookcoverimg">
134 [% IF ( LocalCoverImages ) %]
135 <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
137 [% IF ( AdlibrisEnabled && normalized_isbn ) %]
138 <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>
140 [% IF ( AmazonCoverImages ) %]
141 <div id="amazon-bookcoverimg">
142 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
143 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
146 [% IF ( IntranetCoce && CoceProviders ) %]
147 [% coce_id = normalized_ean || normalized_isbn %]
148 <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% biblionumber | url %]">
150 <span style="block" title="[% biblionumber | url %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></span>
152 <span class="no-image">No cover image available</span>
157 [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
158 <a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /></a>
164 <div id="bibliodetails" class="toptabs">
167 [% IF (SeparateHoldings) %]
169 <a href="#holdings">[% LoginBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
172 <a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
176 <a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a>
179 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions</a></li>[% END %]
180 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
181 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
182 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
183 [% IF ( LocalCoverImages ) %]
184 [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
186 <a href="#images">Images ([% localimages.size() || 0 | html %])</a>
190 [% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %]
191 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
192 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
196 [% items_table_block_iter = 0 %]
197 [% BLOCK items_table %]
198 [% items_table_block_iter = items_table_block_iter + 1 %]
199 <div class="[% tab | html %]_table_table_controls">
200 [% IF (StaffDetailItemSelection) %]
201 | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
202 <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
203 <span class="itemselection_actions">
205 [% IF CAN_user_tools_items_batchdel %]
206 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
208 [% IF CAN_user_tools_items_batchmod %]
209 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
214 <table class="items_table" id="[% tab | html %]_table">
217 [% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %]
218 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
219 <th>Current location</th>
220 <th>Home library</th>
221 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
223 [% IF ( volinfo ) %]<th>Serial enumeration / chronology</th>[% END %]
225 <th class="title-string">Last seen</th>
226 <th class="title-string">Date accessioned</th>
228 [% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
229 [% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
230 [% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
231 [% IF materials %]<th>Materials specified</th>[% END %]
232 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
233 [% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %]
234 [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
235 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
236 [% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
237 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th class="NoSort">Spine label</th>[% END %]
238 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort"> </th>[% END %]
242 [% FOREACH item IN items %]
244 [% IF (StaffDetailItemSelection) %]
245 <td style="text-align:center;vertical-align:middle">
246 <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
249 [% IF ( item_level_itypes ) %]
251 [% IF !noItemTypeImages && item.imageurl %]
252 <img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
254 [% item.translated_description | html %]
257 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
258 <td class="homebranch">
259 [% Branches.GetName(item.homebranch) | html %]
260 <span class="shelvingloc">[% item.location | html %]</span>
262 [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
263 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
265 <td class="enumchron">
266 [% IF ( itemdata_enumchron ) %]
267 [% IF item.enumchron && item.serialseq %]
268 <span class="enum">[% item.enumchron | html %]</span>
269 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
270 <span class="sep"> -- </span>
271 <span class="serialseq">[% item.serialseq | html %]</span>
273 [% ELSIF item.enumchron %]
274 <span class="enum">[% item.enumchron | html %]</span>
275 [% ELSIF item.serialseq %]
276 <span class="serialseq">[% item.serialseq | html %]</span>
278 [% IF ( item.publisheddate ) %]
279 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
286 [% IF item.CheckedOutFor %]
287 [% IF item.onsite_checkout %]
288 <span>Currently in local use
290 <span class="datedue">Checked out
292 [% UNLESS ( item.NOTSAMEBRANCH ) %]
293 [% IF item.onsite_checkout %]
298 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
300 : due [% item.datedue | html %]
302 [% ELSIF ( item.transfertwhen ) %]
303 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
306 [% IF ( item.itemlost ) %]
307 [% IF itemlostloop %]
308 [% FOREACH itemlostloo IN itemlostloop %]
309 [% IF itemlostloo.authorised_value == item.itemlost %]
310 <span class="lost">[% itemlostloo.lib | html %]</span>
314 <span class="lost">Unavailable (lost or missing)</span>
318 [% IF ( item.withdrawn ) %]
319 [% IF itemwithdrawnloop %]
320 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
321 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
322 <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
326 <span class="wdn">Withdrawn</span>
330 [% IF ( item.damaged ) %]
331 [% IF itemdamagedloop %]
332 [% FOREACH itemdamagedloo IN itemdamagedloop %]
333 [% IF itemdamagedloo.authorised_value == item.damaged %]
334 <span class="dmg">[% itemdamagedloo.lib | html %]</span>
338 <span class="dmg">Damaged</span>
342 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
344 [% IF ( item.notforloanvalue ) %]
345 ([% item.notforloanvalue | html %])
349 [% IF ( item.reservedate ) %]
350 [% IF ( item.waitingdate ) %]
351 Waiting at [% Branches.GetName( item.ExpectedAtLibrary ) | html %] since [% item.waitingdate | $KohaDates %].
353 Item-level hold (placed [% item.reservedate | $KohaDates %]) for delivery at [% Branches.GetName( item.ExpectedAtLibrary ) | html %].
355 [% IF ( canreservefromotherbranches ) %]
357 [% INCLUDE 'patron-title.inc' patron=item.ReservedFor hide_patron_infos_if_needed=1 %]
360 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %]
364 [% IF ( item.restricted ) %]
365 <span class="restricted">([% item.restrictedvalue | html %])</span>
369 <td class="datelastseen"><span title="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</span></td>
370 <td class="dateaccessioned"><span title="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</span></td>
371 <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>
372 [% IF ( itemdata_uri ) %]
373 <td class="uri"><a href="[% item.uri | url %]">[% item.uri | html %]</a></td>
375 [% IF ( itemdata_copynumber ) %]
376 <td class="copynumber">[% item.copynumber | html %]</td>
378 [% IF ( itemdata_stocknumber ) %]
379 <td class="stocknumber">[% item.stocknumber | html %]</td>
382 <td class="materials"> [% item.materials | html %] </td>
384 [% IF ( itemdata_itemnotes ) %]
385 <td><div class="itemnotes">[% item.itemnotes | $raw %]</div></td>
387 [% IF itemdata_nonpublicnotes %]
388 <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
390 [% IF ( hostrecords ) %]
391 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
395 [% IF ( item.countanalytics ) %]
396 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
401 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
404 [% IF ShowCourseReserves %]
406 [% IF item.course_reserves %]
407 [% FOREACH r IN item.course_reserves %]
408 [% IF r.course.enabled == 'yes' %]
410 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
411 [% r.course.course_name | html %]
412 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
413 [% IF r.course.section %] [% r.course.section | html %] [% END %]
414 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
423 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
424 <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>
427 [% IF CAN_user_editcatalogue_edit_items %]
429 [% UNLESS item.cannot_be_edited %]
430 <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>
438 [% END %][%# end of block items_table %]
442 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
443 <span class="results_summary NovelistSelect" style="display:none;">
444 <span class="label">Novelist Select: </span>
445 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
450 [% IF ( showncount ) %]
451 [% PROCESS items_table tab="holdings" items=itemloop %]
453 [% IF ( hiddencount ) %]
454 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
456 [% IF ( debug_display ) %]
459 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
460 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
461 <tr><td>serial</td><td>[% serial | html %]</td></tr>
465 [% IF ( ALTERNATEHOLDINGS ) %]
466 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
467 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
470 <div id="noitems">No physical items for this record</div>
474 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
475 <span class="results_summary NovelistSelect" style="display:none;">
476 <span class="label">Novelist Select: </span>
477 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
482 [% IF (SeparateHoldings) %]
483 <div id="otherholdings">
484 [% IF (otheritemloop.size) %]
485 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
492 [% IF ( MARCNOTES || notes ) %]
494 <div id="description">
495 <div class="content_set">
497 [% IF ( MARCNOTES ) %]
498 [% FOREACH MARCNOTE IN MARCNOTES %]
500 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
501 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
503 [% MARCNOTE.marcnote | html | html_line_break %]
509 <p>[% notes | html %]</p>
517 [% IF ( subscriptionsnumber ) %]
518 <div id="subscriptions">
519 <div id="catalogue_detail_subscriptions">
520 <h2>This is a serial subscription</h2>
521 <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
522 [% FOREACH subscription IN subscriptions %]
523 [% IF subscription.branchcode %]
524 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
526 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
527 [% IF ( subscription.location ) %]<p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location ) | html %]</p>[% END %]
528 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
529 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
530 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
531 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
532 [% IF ( subscription.latestserials ) %]
533 <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
537 <th>Date arrived</th>
538 <th>Date published</th>
542 [% FOREACH latestserial IN subscription.latestserials %]
544 <td>[% latestserial.serialseq | html %]</td>
545 <td><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td>
546 <td><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td>
548 [% IF ( latestserial.status1 ) %]Expected[% END %]
549 [% IF ( latestserial.status2 ) %]Arrived[% END %]
550 [% IF ( latestserial.status3 ) %]Late[% END %]
551 [% IF ( latestserial.status4 ) %]Missing[% END %]
552 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
553 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
554 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
555 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
556 [% IF ( latestserial.status5 ) %]Not issued[% END %]
557 [% IF ( latestserial.status6 ) %]Delete[% END %]
558 [% IF ( latestserial.status7 ) %]Claimed[% END %]
559 [% IF ( latestserial.status8 ) %]Stopped[% END %]
561 <td>[% latestserial.notes | html %]</td>
566 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
572 [% IF Koha.Preference('AcquisitionDetails') %]
573 <div id="acq_details">
580 <th>Basket group</th>
582 <th>Order number</th>
583 <th class="title-string">Creation date</th>
584 <th class="title-string">Receive date</th>
587 <th>Internal note</th>
588 <th>Subscription</th>
589 <th>Subscription callnumber</th>
593 [% FOR order IN orders %]
594 [% SET basket = order.basket %]
595 [% SET vendor = basket.bookseller %]
598 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
601 [% IF order.invoiceid %]
602 [% IF CAN_user_acquisition %]
603 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
604 title="Invoice detail page">
605 [% order.invoice.invoicenumber | html %]</a>
607 [% order.invoice.invoicenumber | html %]
612 [% IF basket.basketgroupid %]
613 [% SET basket_group = basket.basket_group %]
614 [% IF CAN_user_acquisition_group_manage %]
615 <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>
617 [% basket_group.name | html %] ([% basket_group.id | html %])
621 <td>[% IF CAN_user_acquisition_order_manage %]
622 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
624 [% basket.basketname | html %] ([% basket.basketno | html %])
626 <td>[% order.ordernumber | html %]</td>
627 <td><span title="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</span></td>
628 <td><span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</span></td>
630 [% SWITCH order.orderstatus %]
632 [% CASE 'ordered' %]Ordered
633 [% CASE 'partial' %]Partial
634 [% CASE 'complete' %]Complete
635 [% CASE 'cancelled' %]Cancelled
638 <td>[% order.quantity | html %]</td>
639 <td>[% order.order_internalnote | html %]</td>
641 [% IF order.subscriptionid %]
642 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
646 [% IF order.subscriptionid %]
647 [% order.subscription.callnumber | html %]
655 There is no order for this biblio.
660 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
661 <div id="editions"><h4>Editions</h4>
663 [% 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 %]
664 [% 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 %]
665 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
666 [% IF ( XISBN.publishercode ) %]
667 [% 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 %]
669 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
670 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
674 </table></div>[% END %]
677 [% IF ( LocalCoverImages ) %]
679 [% IF ( localimages.0 ) %]
680 <p>Click on an image to view it in the image viewer</p>
681 <ul class="thumbnails">
682 [% FOREACH image IN localimages %]
684 <li id="imagenumber-[% image | html %]" class="thumbnail">
685 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image | uri %]">
686 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image | uri %]" />
688 [% IF CAN_user_tools_upload_local_cover_images %]
689 <a href="#" class="remove"><i class="fa fa-trash"></i> Delete image</a>
695 [% ELSE # - No image passed JavaScript takes care %]
696 No images have been uploaded for this bibliographic record yet.
698 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
699 <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>
705 [% IF ( HTML5MediaEnabled ) %]
706 <div id="html5media">
707 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
709 <[% HTML5MediaParent | html %] controls preload=none>
710 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]"[% HTML5MediaSet.typeblock | html %] />
711 [[% HTML5MediaParent | html %] tag not supported by your browser.]
712 </[% HTML5MediaParent | html %]>
719 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
720 <div id="NovelistSelect" class="novelistSelect">
721 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
725 </div><!-- /bibliodetails -->
727 <div id="export" style="margin-top: 1em;">
728 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
730 <th>Save record</th> </tr>
731 <tr><td> Select download format: <select name="format">
732 <option value="mods">MODS (XML)</option>
733 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
734 <option value="marcxml">MARCXML</option>
735 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
736 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
737 <input type="submit" name="save" value="Download record" /></td>
740 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
746 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
747 <div class="modal-dialog modal-lg">
748 <div class="modal-content">
749 <div class="modal-header">
750 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
751 <h3 id="marcPreviewLabel">MARC preview</h3>
753 <div class="modal-body">
754 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
756 <div class="modal-footer">
757 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
764 </div> <!-- /.col-sm-10.col-sm-push-2 -->
766 <div class="col-sm-2 col-sm-pull-10">
768 [% INCLUDE 'biblio-view-menu.inc' %]
770 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
771 </div> <!-- /.row -->
775 [% MACRO jsinclude BLOCK %]
776 [% INCLUDE 'catalog-strings.inc' %]
777 [% Asset.js("js/catalog.js") | $raw %]
778 [% INCLUDE 'greybox.inc' %]
779 [% Asset.js("js/coce.js") | $raw %]
781 var interface = "[% interface | html %]";
782 var theme = "[% theme | html %]";
783 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
784 function verify_images() {
785 $("#bookcoverimg").each(function(i){
786 $(this).find('img').each(function(i){
787 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'))) {
790 if ((w == 1) || (h == 1)) {
791 $("#amazon-bookcoverimg").remove();
792 $("#catalogue_detail_biblio").attr("class","col-xs-12");
793 } else if ((this.complete != null) && (!this.complete)) {
794 $("#amazon-bookcoverimg").remove();
795 $("#catalogue_detail_biblio").attr("class","col-xs-12");
799 if( $(this).find('img').length < 1 ) $(this).remove();
801 $("#editions img").each(function(i){
802 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'))) {
805 if ((w == 1) || (h == 1)) {
806 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
807 } else if ((this.complete != null) && (!this.complete)) {
808 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
814 function removeLocalImage(imagenumber) {
815 var thumbnail = $("#imagenumber-" + imagenumber );
816 var copy = thumbnail.html();
817 thumbnail.find("img").css("opacity", ".2");
818 thumbnail.find("a.remove").html("<img style='display:inline-block' src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' />");
820 url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
821 success: function(data) {
822 $(data).each( function(i) {
823 if ( this.deleted == 1 ) {
826 thumbnail.html( copy );
827 alert(_("An error occurred on deleting this image"));
829 if ( $('ul.thumbnails > li').length == 0 ) {
830 showNoImageMessage();
834 error: function(data) {
835 thumbnail.html( copy );
836 alert(_("An error occurred on deleting this image"));
841 function showNoImageMessage() {
842 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
843 no_images_msg = '<p>' + no_images_msg + '</p>';
844 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
845 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>");
846 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
848 $('#images').html(no_images_msg);
851 [% IF StaffDetailItemSelection %]
852 function itemSelectionBuildDeleteLink(div) {
853 var itemnumbers = new Array();
854 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
855 itemnumbers.push($(this).val());
857 if (itemnumbers.length > 0) {
858 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
859 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
860 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
861 $('a.itemselection_action_delete').attr('href', url);
868 function itemSelectionBuildModifyLink(div) {
869 var itemnumbers = new Array();
870 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
871 itemnumbers.push($(this).val());
873 if (itemnumbers.length > 0) {
874 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
875 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
876 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
877 $('a.itemselection_action_modify').attr('href', url);
884 function itemSelectionBuildActionLinks(tab) {
885 var div = $("#" + tab);
886 var delete_link_ok = itemSelectionBuildDeleteLink(div);
887 var modify_link_ok = itemSelectionBuildModifyLink(div);
888 if (modify_link_ok || delete_link_ok) {
889 $('.itemselection_actions', div).show();
891 $('.itemselection_actions', div).hide();
895 $(document).ready(function() {
896 $('table.items_table').each(function() {
897 var div = $(this).parent().attr("id");
898 itemSelectionBuildActionLinks(div);
901 $("input[name='itemnumber'][type='checkbox']").change(function() {
902 var div = $(this).parents('table').parent().parent().attr("id");
903 itemSelectionBuildActionLinks(div);
906 $(".SelectAll").on("click",function(e){
908 var tab = $(this).data("tab");
909 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
910 itemSelectionBuildActionLinks(tab);
913 $(".ClearAll").on("click",function(e){
915 var tab = $(this).data("tab");
916 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
917 itemSelectionBuildActionLinks(tab);
922 $(document).ready(function() {
923 $('#bibliodetails').tabs();
925 $('#bibliodetails').tabs("option", "active", 3);
927 $('#search-form').focus();
928 $('.thumbnails > li > .remove').click(function() {
929 var result = confirm(_("Are you sure you want to delete this cover image?"));
931 if ( result == true ) {
932 var imagenumber = $(this).parent().attr('id').split('-')[1];
933 removeLocalImage(imagenumber);
938 [%# inject no images message %]
939 [% IF LocalCoverImages %]
940 KOHA.LocalCover.GetCoverFromBibnumber(true);
942 [% IF ( IntranetCoce && CoceProviders ) %]
943 KOHA.coce.getURL('[% CoceHost | html %]', '[% CoceProviders | html %]');
946 $("body").on("click",".previewMARC", function(e){
948 var page = $(this).attr("href");
949 $("#marcPreview .modal-body").load(page + " table");
950 $('#marcPreview').modal({show:true});
952 $("#marcPreview").on("hidden.bs.modal", function(){
953 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
955 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
956 novSelect.loadContentForQuery({
957 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
958 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
961 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
962 '[% Koha.Preference('NovelistSelectPassword') | html %]',
964 if ( d.length > 0 ){ //If no content
965 $(".NovelistSelect").show();
969 $(".print-label").on("click", function(e){
971 link = $(this).attr("href");
972 openWindow(link,"Print spine label",400,400);
976 [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
980 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
981 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
983 [% INCLUDE 'datatables.inc' %]
984 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
985 [% INCLUDE 'browser-strings.inc' %]
986 [% INCLUDE 'columns_settings.inc' %]
987 [% Asset.js("js/browser.js") | $raw %]
988 [% Asset.js("js/table_filters.js") | $raw %]
991 browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
994 $(document).ready(function() {
995 var ids = ['holdings_table', 'otherholdings_table'];
999 var dt_parameters = {
1002 'bAutoWidth': false,
1004 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1005 { "sType": "title-string", "aTargets" : [ "title-string" ] }
1008 var table = KohaTable(id, dt_parameters, null, 'with_filters');
1011 [% IF Koha.Preference('AcquisitionDetails') %]
1012 var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
1013 var acquisitiondetails_table = KohaTable("orders", {
1014 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1016 'bAutoWidth': false,
1017 "aaSorting": [[ 4, "desc" ]],
1019 { "aTargets": "title-string", "sType": "title-string" }
1021 }, columns_settings);
1026 [% INCLUDE 'intranet-bottom.inc' %]