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 [% title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl | html %][% END %]
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>[% title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl | html %][% END %]</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 [% INCLUDE 'cat-toolbar.inc' %]
68 <!-- COinS / OpenURL -->
69 <span class="Z3988" title="[% ocoins | html %]"></span>
72 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %]
73 <div id="catalogue_detail_biblio" class="col-xs-9">
75 <div id="catalogue_detail_biblio" class="col-xs-12">
80 [% IF shelves.count %]
81 <span class="results_summary"><span class="label">Lists that include this title: </span>
82 [% FOREACH s IN shelves %]
83 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
84 [% IF ( loop.last ) %][% ELSE %]|[% END %]
88 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
89 <span class="results_summary"><span class="label">Tags:</span>
90 [% FOREACH TagLoo IN TagLoop %]
91 [% IF ( CAN_user_tools_moderate_tags ) %]
92 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
94 [% TagLoo.term | html %]
96 <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
100 <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>
102 [% IF ( holdcount ) %]
103 <span class="results_summary">
104 <span class="label">Holds:</span>
105 <span class="number_box">
106 [% IF CAN_user_reserveforothers_place_holds %]
107 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a>
109 <span>[% holdcount | html %]</span>
115 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
116 <span class="results_summary">
117 <span class="label">Article requests:</span>
118 <span class="number_box">
119 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | uri %]">[% article_requests_count | html %]</a>
124 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %]
125 </div><div class="col-xs-3" id="bookcoverimg">
126 [% IF ( LocalCoverImages ) %]
127 <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
129 [% IF ( AdlibrisEnabled && normalized_isbn ) %]
130 <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>
132 [% IF ( AmazonCoverImages ) %]
133 <div id="amazon-bookcoverimg">
134 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
135 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
142 <div id="bibliodetails" class="toptabs">
145 [% IF (SeparateHoldings) %]
147 <a href="#holdings">[% LoginBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
150 <a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
154 <a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a>
157 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions</a></li>[% END %]
158 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
159 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
160 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
161 [% IF ( LocalCoverImages ) %]
162 [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
164 <a href="#images">Images ([% localimages.size() || 0 | html %])</a>
168 [% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %]
169 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
170 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
174 [% items_table_block_iter = 0 %]
175 [% BLOCK items_table %]
176 [% items_table_block_iter = items_table_block_iter + 1 %]
177 <div class="[% tab | html %]_table_table_controls">
178 [% IF (StaffDetailItemSelection) %]
179 | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
180 <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
181 <span class="itemselection_actions">
183 [% IF CAN_user_tools_items_batchdel %]
184 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
186 [% IF CAN_user_tools_items_batchmod %]
187 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
192 <table class="items_table" id="[% tab | html %]_table">
195 [% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %]
196 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
197 <th>Current location</th>
198 <th>Home library</th>
199 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
201 [% IF ( volinfo ) %]<th>Serial enumeration / chronology</th>[% END %]
203 <th class="title-string">Last seen</th>
204 <th class="title-string">Date accessioned</th>
206 [% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
207 [% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
208 [% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
209 [% IF materials %]<th>Materials specified</th>[% END %]
210 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
211 [% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %]
212 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine label</th>[% END %]
213 [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
214 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
215 [% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
216 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort"> </th>[% END %]
220 [% FOREACH item IN items %]
222 [% IF (StaffDetailItemSelection) %]
223 <td style="text-align:center;vertical-align:middle">
224 <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
227 [% IF ( item_level_itypes ) %]
229 [% IF !noItemTypeImages && item.imageurl %]
230 <img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
232 [% item.translated_description | html %]
235 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
236 <td class="homebranch">
237 [% Branches.GetName(item.homebranch) | html %]
238 <span class="shelvingloc">[% item.location | html %]</span>
240 [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
241 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
243 <td class="enumchron">
244 [% IF ( itemdata_enumchron ) %]
245 [% IF item.enumchron && item.serialseq %]
246 <span class="enum">[% item.enumchron | html %]</span>
247 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
248 <span class="sep"> -- </span>
249 <span class="serialseq">[% item.serialseq | html %]</span>
251 [% ELSIF item.enumchron %]
252 <span class="enum">[% item.enumchron | html %]</span>
253 [% ELSIF item.serialseq %]
254 <span class="serialseq">[% item.serialseq | html %]</span>
256 [% IF ( item.publisheddate ) %]
257 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
264 [% IF item.CheckedOutFor %]
265 [% IF item.onsite_checkout %]
266 <span>Currently in local use
268 <span class="datedue">Checked out
270 [% UNLESS ( item.NOTSAMEBRANCH ) %]
271 [% IF item.onsite_checkout %]
276 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
278 : due [% item.datedue | html %]
280 [% ELSIF ( item.transfertwhen ) %]
281 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
284 [% IF ( item.itemlost ) %]
285 [% IF itemlostloop %]
286 [% FOREACH itemlostloo IN itemlostloop %]
287 [% IF itemlostloo.authorised_value == item.itemlost %]
288 <span class="lost">[% itemlostloo.lib | html %]</span>
292 <span class="lost">Unavailable (lost or missing)</span>
296 [% IF ( item.withdrawn ) %]
297 [% IF itemwithdrawnloop %]
298 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
299 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
300 <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
304 <span class="wdn">Withdrawn</span>
308 [% IF ( item.damaged ) %]
309 [% IF itemdamagedloop %]
310 [% FOREACH itemdamagedloo IN itemdamagedloop %]
311 [% IF itemdamagedloo.authorised_value == item.damaged %]
312 <span class="dmg">[% itemdamagedloo.lib | html %]</span>
316 <span class="dmg">Damaged</span>
320 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
322 [% IF ( item.notforloanvalue ) %]
323 ([% item.notforloanvalue | html %])
327 [% IF ( item.reservedate ) %]
328 [% IF ( item.waitingdate ) %]
329 Waiting at [% Branches.GetName( item.ExpectedAtLibrary ) | html %] since [% item.waitingdate | $KohaDates %].
331 Item-level hold (placed [% item.reservedate | $KohaDates %]) for delivery at [% Branches.GetName( item.ExpectedAtLibrary ) | html %].
333 [% IF ( canreservefromotherbranches ) %]
335 [% INCLUDE 'patron-title.inc' patron=item.ReservedFor hide_patron_infos_if_needed=1 %]
338 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %]
342 [% IF ( item.restricted ) %]
343 <span class="restricted">([% item.restrictedvalue | html %])</span>
347 <td class="datelastseen"><span title="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</span></td>
348 <td class="dateaccessioned"><span title="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</span></td>
349 <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>
350 [% IF ( itemdata_uri ) %]
351 <td class="uri"><a href="[% item.uri | url %]">[% item.uri | html %]</a></td>
353 [% IF ( itemdata_copynumber ) %]
354 <td class="copynumber">[% item.copynumber | html %]</td>
356 [% IF ( itemdata_stocknumber ) %]
357 <td class="stocknumber">[% item.stocknumber | html %]</td>
360 <td class="materials"> [% item.materials | html %] </td>
362 [% IF ( itemdata_itemnotes ) %]
363 <td><div class="itemnotes">[% item.itemnotes | $raw %]</div></td>
365 [% IF itemdata_nonpublicnotes %]
366 <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
368 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
369 <td><a href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% item.barcode | uri %]" >Print label</a></td>
371 [% IF ( hostrecords ) %]
372 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
376 [% IF ( item.countanalytics ) %]
377 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
382 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
385 [% IF ShowCourseReserves %]
387 [% IF item.course_reserves %]
388 [% FOREACH r IN item.course_reserves %]
389 [% IF r.course.enabled == 'yes' %]
391 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
392 [% r.course.course_name | html %]
393 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
394 [% IF r.course.section %] [% r.course.section | html %] [% END %]
395 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
403 [% IF CAN_user_editcatalogue_edit_items %]
405 [% UNLESS item.cannot_be_edited %]
406 <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>
414 [% END %][%# end of block items_table %]
418 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
419 <span class="results_summary NovelistSelect" style="display:none;">
420 <span class="label">Novelist Select: </span>
421 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
426 [% IF ( showncount ) %]
427 [% PROCESS items_table tab="holdings" items=itemloop %]
429 [% IF ( hiddencount ) %]
430 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
432 [% IF ( debug_display ) %]
435 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
436 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
437 <tr><td>serial</td><td>[% serial | html %]</td></tr>
441 [% IF ( ALTERNATEHOLDINGS ) %]
442 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
443 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
446 <div id="noitems">No physical items for this record</div>
450 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
451 <span class="results_summary NovelistSelect" style="display:none;">
452 <span class="label">Novelist Select: </span>
453 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
458 [% IF (SeparateHoldings) %]
459 <div id="otherholdings">
460 [% IF (otheritemloop.size) %]
461 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
468 [% IF ( MARCNOTES || notes ) %]
470 <div id="description">
471 <div class="content_set">
473 [% IF ( MARCNOTES ) %]
474 [% FOREACH MARCNOTE IN MARCNOTES %]
476 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
477 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
479 [% MARCNOTE.marcnote | html | html_line_break %]
485 <p>[% notes | html %]</p>
493 [% IF ( subscriptionsnumber ) %]
494 <div id="subscriptions">
495 <div id="catalogue_detail_subscriptions">
496 <h2>This is a serial subscription</h2>
497 <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
498 [% FOREACH subscription IN subscriptions %]
499 [% IF subscription.branchcode %]
500 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
502 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
503 [% IF ( subscription.location ) %]<p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location ) | html %]</p>[% END %]
504 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
505 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
506 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
507 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
508 [% IF ( subscription.latestserials ) %]
509 <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
513 <th>Date arrived</th>
514 <th>Date published</th>
518 [% FOREACH latestserial IN subscription.latestserials %]
520 <td>[% latestserial.serialseq | html %]</td>
521 <td><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td>
522 <td><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td>
524 [% IF ( latestserial.status1 ) %]Expected[% END %]
525 [% IF ( latestserial.status2 ) %]Arrived[% END %]
526 [% IF ( latestserial.status3 ) %]Late[% END %]
527 [% IF ( latestserial.status4 ) %]Missing[% END %]
528 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
529 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
530 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
531 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
532 [% IF ( latestserial.status5 ) %]Not issued[% END %]
533 [% IF ( latestserial.status6 ) %]Delete[% END %]
534 [% IF ( latestserial.status7 ) %]Claimed[% END %]
535 [% IF ( latestserial.status8 ) %]Stopped[% END %]
537 <td>[% latestserial.notes | html %]</td>
542 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
548 [% IF Koha.Preference('AcquisitionDetails') %]
549 <div id="acq_details">
556 <th>Basket group</th>
558 <th>Order number</th>
559 <th class="title-string">Creation date</th>
560 <th class="title-string">Receive date</th>
563 <th>Internal note</th>
564 <th>Subscription</th>
565 <th>Subscription callnumber</th>
569 [% FOR order IN orders %]
570 [% SET basket = order.basket %]
571 [% SET vendor = basket.bookseller %]
574 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
577 [% IF order.invoiceid %]
578 [% IF CAN_user_acquisition %]
579 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
580 title="Invoice detail page">
581 [% order.invoice.invoicenumber | html %]</a>
583 [% order.invoice.invoicenumber | html %]
588 [% IF basket.basketgroupid %]
589 [% SET basket_group = basket.basket_group %]
590 [% IF CAN_user_acquisition_group_manage %]
591 <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>
593 [% basket_group.name | html %] ([% basket_group.id | html %])
597 <td>[% IF CAN_user_acquisition_order_manage %]
598 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
600 [% basket.basketname | html %] ([% basket.basketno | html %])
602 <td>[% order.ordernumber | html %]</td>
603 <td><span title="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</span></td>
604 <td><span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</span></td>
606 [% SWITCH order.orderstatus %]
608 [% CASE 'ordered' %]Ordered
609 [% CASE 'partial' %]Partial
610 [% CASE 'complete' %]Complete
611 [% CASE 'cancelled' %]Cancelled
614 <td>[% order.quantity | html %]</td>
615 <td>[% order.order_internalnote | html %]</td>
617 [% IF order.subscriptionid %]
618 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
622 [% IF order.subscriptionid %]
623 [% order.subscription.callnumber | html %]
631 There is no order for this biblio.
636 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
637 <div id="editions"><h4>Editions</h4>
639 [% 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 %]
640 [% 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 %]
641 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
642 [% IF ( XISBN.publishercode ) %]
643 [% 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 %]
645 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
646 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
650 </table></div>[% END %]
653 [% IF ( LocalCoverImages ) %]
655 [% IF ( localimages.0 ) %]
656 <p>Click on an image to view it in the image viewer</p>
657 <ul class="thumbnails">
658 [% FOREACH image IN localimages %]
660 <li id="imagenumber-[% image | html %]" class="thumbnail">
661 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image | uri %]">
662 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image | uri %]" />
664 [% IF CAN_user_tools_upload_local_cover_images %]
665 <a href="#" class="remove"><i class="fa fa-trash"></i> Delete image</a>
671 [% ELSE # - No image passed JavaScript takes care %]
672 No images have been uploaded for this bibliographic record yet.
674 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
675 <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>
681 [% IF ( HTML5MediaEnabled ) %]
682 <div id="html5media">
683 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
685 <[% HTML5MediaParent | html %] controls preload=none>
686 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]"[% HTML5MediaSet.typeblock | html %] />
687 [[% HTML5MediaParent | html %] tag not supported by your browser.]
688 </[% HTML5MediaParent | html %]>
695 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
696 <div id="NovelistSelect" class="novelistSelect">
697 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
701 </div><!-- /bibliodetails -->
703 <div id="export" style="margin-top: 1em;">
704 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
706 <th>Save record</th> </tr>
707 <tr><td> Select download format: <select name="format">
708 <option value="mods">MODS (XML)</option>
709 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
710 <option value="marcxml">MARCXML</option>
711 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
712 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
713 <input type="submit" name="save" value="Download record" /></td>
716 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
722 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
723 <div class="modal-dialog modal-lg">
724 <div class="modal-content">
725 <div class="modal-header">
726 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
727 <h3 id="marcPreviewLabel">MARC preview</h3>
729 <div class="modal-body">
730 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
732 <div class="modal-footer">
733 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
740 </div> <!-- /.col-sm-10.col-sm-push-2 -->
742 <div class="col-sm-2 col-sm-pull-10">
744 [% INCLUDE 'biblio-view-menu.inc' %]
746 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
747 </div> <!-- /.row -->
751 [% MACRO jsinclude BLOCK %]
752 [% INCLUDE 'catalog-strings.inc' %]
753 [% Asset.js("js/catalog.js") | $raw %]
754 [% INCLUDE 'greybox.inc' %]
756 var interface = "[% interface | html %]";
757 var theme = "[% theme | html %]";
758 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
759 function verify_images() {
760 $("#bookcoverimg").each(function(i){
761 $(this).find('img').each(function(i){
762 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'))) {
765 if ((w == 1) || (h == 1)) {
766 $("#amazon-bookcoverimg").remove();
767 $("#catalogue_detail_biblio").attr("class","col-xs-12");
768 } else if ((this.complete != null) && (!this.complete)) {
769 $("#amazon-bookcoverimg").remove();
770 $("#catalogue_detail_biblio").attr("class","col-xs-12");
774 if( $(this).find('img').length < 1 ) $(this).remove();
776 $("#editions img").each(function(i){
777 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'))) {
780 if ((w == 1) || (h == 1)) {
781 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
782 } else if ((this.complete != null) && (!this.complete)) {
783 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
789 function removeLocalImage(imagenumber) {
790 var thumbnail = $("#imagenumber-" + imagenumber );
791 var copy = thumbnail.html();
792 thumbnail.find("img").css("opacity", ".2");
793 thumbnail.find("a.remove").html("<img style='display:inline-block' src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' />");
795 url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
796 success: function(data) {
797 $(data).each( function(i) {
798 if ( this.deleted == 1 ) {
801 thumbnail.html( copy );
802 alert(_("An error occurred on deleting this image"));
804 if ( $('ul.thumbnails > li').length == 0 ) {
805 showNoImageMessage();
809 error: function(data) {
810 thumbnail.html( copy );
811 alert(_("An error occurred on deleting this image"));
816 function showNoImageMessage() {
817 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
818 no_images_msg = '<p>' + no_images_msg + '</p>';
819 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
820 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>");
821 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
823 $('#images').html(no_images_msg);
826 [% IF StaffDetailItemSelection %]
827 function itemSelectionBuildDeleteLink(div) {
828 var itemnumbers = new Array();
829 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
830 itemnumbers.push($(this).val());
832 if (itemnumbers.length > 0) {
833 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
834 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
835 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
836 $('a.itemselection_action_delete').attr('href', url);
843 function itemSelectionBuildModifyLink(div) {
844 var itemnumbers = new Array();
845 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
846 itemnumbers.push($(this).val());
848 if (itemnumbers.length > 0) {
849 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
850 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
851 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
852 $('a.itemselection_action_modify').attr('href', url);
859 function itemSelectionBuildActionLinks(tab) {
860 var div = $("#" + tab);
861 var delete_link_ok = itemSelectionBuildDeleteLink(div);
862 var modify_link_ok = itemSelectionBuildModifyLink(div);
863 if (modify_link_ok || delete_link_ok) {
864 $('.itemselection_actions', div).show();
866 $('.itemselection_actions', div).hide();
870 $(document).ready(function() {
871 $('table.items_table').each(function() {
872 var div = $(this).parent().attr("id");
873 itemSelectionBuildActionLinks(div);
876 $("input[name='itemnumber'][type='checkbox']").change(function() {
877 var div = $(this).parents('table').parent().parent().attr("id");
878 itemSelectionBuildActionLinks(div);
881 $(".SelectAll").on("click",function(e){
883 var tab = $(this).data("tab");
884 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
885 itemSelectionBuildActionLinks(tab);
888 $(".ClearAll").on("click",function(e){
890 var tab = $(this).data("tab");
891 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
892 itemSelectionBuildActionLinks(tab);
897 $(document).ready(function() {
898 $('#bibliodetails').tabs();
900 $('#bibliodetails').tabs("option", "active", 3);
902 $('#search-form').focus();
903 $('.thumbnails > li > .remove').click(function() {
904 var result = confirm(_("Are you sure you want to delete this cover image?"));
906 if ( result == true ) {
907 var imagenumber = $(this).parent().attr('id').split('-')[1];
908 removeLocalImage(imagenumber);
913 [%# inject no images message %]
914 [% IF LocalCoverImages %]
915 KOHA.LocalCover.GetCoverFromBibnumber(true);
917 $("body").on("click",".previewMARC", function(e){
919 var page = $(this).attr("href");
920 $("#marcPreview .modal-body").load(page + " table");
921 $('#marcPreview').modal({show:true});
923 $("#marcPreview").on("hidden.bs.modal", function(){
924 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
926 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
927 novSelect.loadContentForQuery({
928 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
929 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
932 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
933 '[% Koha.Preference('NovelistSelectPassword') | html %]',
935 if ( d.length > 0 ){ //If no content
936 $(".NovelistSelect").show();
943 [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
947 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
948 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
950 [% INCLUDE 'datatables.inc' %]
951 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
952 [% INCLUDE 'browser-strings.inc' %]
953 [% INCLUDE 'columns_settings.inc' %]
954 [% Asset.js("js/browser.js") | $raw %]
955 [% Asset.js("js/table_filters.js") | $raw %]
958 browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
961 $(document).ready(function() {
962 var ids = ['holdings_table', 'otherholdings_table'];
966 var dt_parameters = {
971 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
972 { "sType": "title-string", "aTargets" : [ "title-string" ] }
975 var table = KohaTable(id, dt_parameters, null, 'with_filters');
978 [% IF Koha.Preference('AcquisitionDetails') %]
979 var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
980 var acquisitiondetails_table = KohaTable("orders", {
981 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
984 "aaSorting": [[ 4, "desc" ]],
986 { "aTargets": "title-string", "sType": "title-string" }
988 }, columns_settings);
993 [% INCLUDE 'intranet-bottom.inc' %]