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' %]
71 [% IF decoding_error %]
73 There is an error with this bibliographic record, the view may be degraded.
74 <br/> Error: [% decoding_error | html %]
78 <!-- COinS / OpenURL -->
79 <span class="Z3988" title="[% ocoins | html %]"></span>
82 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
83 [% IF ( XSLTDetailsDisplay ) %]
84 <div id="catalogue_detail_biblio" class="col-xs-9">
86 <div id="catalogue_detail_biblio" class="col-xs-9">
89 <div id="catalogue_detail_biblio" class="col-xs-12">
94 [% IF shelves.count %]
95 <span class="results_summary"><span class="label">Lists that include this title: </span>
96 [% FOREACH s IN shelves %]
97 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
98 [% IF ( loop.last ) %][% ELSE %]|[% END %]
102 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
103 <span class="results_summary"><span class="label">Tags:</span>
104 [% FOREACH TagLoo IN TagLoop %]
105 [% IF ( CAN_user_tools_moderate_tags ) %]
106 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
108 [% TagLoo.term | html %]
110 <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
114 <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>
116 [% IF ( holdcount ) %]
117 <span class="results_summary">
118 <span class="label">Holds:</span>
119 <span class="number_box">
120 [% IF CAN_user_reserveforothers_place_holds %]
121 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a>
123 <span>[% holdcount | html %]</span>
129 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
130 <span class="results_summary">
131 <span class="label">Article requests:</span>
132 <span class="number_box">
133 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | uri %]">[% article_requests_count | html %]</a>
138 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
139 </div><div class="col-xs-3" id="bookcoverimg">
140 [% IF ( LocalCoverImages ) %]
141 <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
143 [% IF ( AdlibrisEnabled && normalized_isbn ) %]
144 <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>
146 [% IF ( AmazonCoverImages ) %]
147 <div id="amazon-bookcoverimg">
148 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
149 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
152 [% IF ( IntranetCoce && CoceProviders ) %]
153 [% coce_id = normalized_ean || normalized_isbn %]
154 <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% biblionumber | url %]">
156 <span style="block" title="[% biblionumber | url %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></span>
158 <span class="no-image">No cover image available</span>
163 [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
164 <a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /></a>
170 <div id="bibliodetails" class="toptabs">
173 [% IF (SeparateHoldings) %]
175 <a href="#holdings">[% LoginBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
178 <a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
182 <a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a>
185 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions</a></li>[% END %]
186 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
187 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
188 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
189 [% IF ( LocalCoverImages ) %]
190 [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
192 <a href="#images">Images ([% localimages.size() || 0 | html %])</a>
196 [% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %]
197 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
198 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
200 [% FOREACH tab IN tabs %]
201 <li><a href="#[% tab.id | uri %]">[% tab.title | html %]</a></li>
205 [% items_table_block_iter = 0 %]
206 [% BLOCK items_table %]
207 [% items_table_block_iter = items_table_block_iter + 1 %]
208 <div class="[% tab | html %]_table_table_controls">
209 [% IF (StaffDetailItemSelection) %]
210 | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
211 <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
212 <span class="itemselection_actions">
214 [% IF CAN_user_tools_items_batchdel %]
215 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
217 [% IF CAN_user_tools_items_batchmod %]
218 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
223 <table class="items_table" id="[% tab | html %]_table">
226 [% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %]
227 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
228 <th>Current location</th>
229 <th>Home library</th>
230 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
232 [% IF ( volinfo ) %]<th>Serial enumeration / chronology</th>[% END %]
234 <th class="title-string">Last seen</th>
235 <th class="title-string">Date accessioned</th>
237 [% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
238 [% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
239 [% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
240 [% IF materials %]<th>Materials specified</th>[% END %]
241 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
242 [% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %]
243 [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
244 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
245 [% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
246 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th class="NoSort">Spine label</th>[% END %]
247 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort"> </th>[% END %]
251 [% FOREACH item IN items %]
253 [% IF (StaffDetailItemSelection) %]
254 <td style="text-align:center;vertical-align:middle">
255 <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
258 [% IF ( item_level_itypes ) %]
260 [% IF !noItemTypeImages && item.imageurl %]
261 <img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
263 [% item.translated_description | html %]
266 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
267 <td class="homebranch">
268 [% Branches.GetName(item.homebranch) | html %]
269 <span class="shelvingloc">[% item.location | html %]</span>
271 [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
272 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
274 <td class="enumchron">
275 [% IF ( itemdata_enumchron ) %]
276 [% IF item.enumchron && item.serialseq %]
277 <span class="enum">[% item.enumchron | html %]</span>
278 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
279 <span class="sep"> -- </span>
280 <span class="serialseq">[% item.serialseq | html %]</span>
282 [% ELSIF item.enumchron %]
283 <span class="enum">[% item.enumchron | html %]</span>
284 [% ELSIF item.serialseq %]
285 <span class="serialseq">[% item.serialseq | html %]</span>
287 [% IF ( item.publisheddate ) %]
288 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
295 [% IF item.CheckedOutFor %]
296 [% IF item.onsite_checkout %]
297 <span>Currently in local use
299 <span class="datedue">Checked out
301 [% UNLESS ( item.NOTSAMEBRANCH ) %]
302 [% IF item.onsite_checkout %]
307 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
309 : due [% item.datedue | html %]
311 [% ELSIF ( item.transfertwhen ) %]
312 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
315 [% IF ( item.itemlost ) %]
316 [% IF itemlostloop %]
317 [% FOREACH itemlostloo IN itemlostloop %]
318 [% IF itemlostloo.authorised_value == item.itemlost %]
319 <span class="lost">[% itemlostloo.lib | html %]</span>
323 <span class="lost">Unavailable (lost or missing)</span>
327 [% IF ( item.withdrawn ) %]
328 [% IF itemwithdrawnloop %]
329 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
330 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
331 <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
335 <span class="wdn">Withdrawn</span>
339 [% IF ( item.damaged ) %]
340 [% IF itemdamagedloop %]
341 [% FOREACH itemdamagedloo IN itemdamagedloop %]
342 [% IF itemdamagedloo.authorised_value == item.damaged %]
343 <span class="dmg">[% itemdamagedloo.lib | html %]</span>
347 <span class="dmg">Damaged</span>
351 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
353 [% IF ( item.notforloanvalue ) %]
354 ([% item.notforloanvalue | html %])
358 [% IF ( item.reservedate ) %]
359 [% IF ( item.waitingdate ) %]
360 Waiting at [% Branches.GetName( item.ExpectedAtLibrary ) | html %] since [% item.waitingdate | $KohaDates %].
362 Item-level hold (placed [% item.reservedate | $KohaDates %]) for delivery at [% Branches.GetName( item.ExpectedAtLibrary ) | html %].
364 [% IF ( canreservefromotherbranches ) %]
366 [% INCLUDE 'patron-title.inc' patron=item.ReservedFor hide_patron_infos_if_needed=1 %]
369 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %]
373 [% IF ( item.restricted ) %]
374 <span class="restricted">([% item.restrictedvalue | html %])</span>
378 <td class="datelastseen"><span title="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</span></td>
379 <td class="dateaccessioned"><span title="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</span></td>
380 <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>
381 [% IF ( itemdata_uri ) %]
382 <td class="uri"><a href="[% item.uri | url %]">[% item.uri | html %]</a></td>
384 [% IF ( itemdata_copynumber ) %]
385 <td class="copynumber">[% item.copynumber | html %]</td>
387 [% IF ( itemdata_stocknumber ) %]
388 <td class="stocknumber">[% item.stocknumber | html %]</td>
391 <td class="materials"> [% item.materials | html %] </td>
393 [% IF ( itemdata_itemnotes ) %]
394 <td><div class="itemnotes">[% item.itemnotes | $raw %]</div></td>
396 [% IF itemdata_nonpublicnotes %]
397 <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
399 [% IF ( hostrecords ) %]
400 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
404 [% IF ( item.countanalytics ) %]
405 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
410 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
413 [% IF ShowCourseReserves %]
415 [% IF item.course_reserves %]
416 [% FOREACH r IN item.course_reserves %]
417 [% IF r.course.enabled == 'yes' %]
419 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
420 [% r.course.course_name | html %]
421 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
422 [% IF r.course.section %] [% r.course.section | html %] [% END %]
423 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
432 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
433 <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>
436 [% IF CAN_user_editcatalogue_edit_items %]
438 [% UNLESS item.cannot_be_edited %]
439 <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>
447 [% END %][%# end of block items_table %]
451 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
452 <span class="results_summary NovelistSelect" style="display:none;">
453 <span class="label">Novelist Select: </span>
454 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
459 [% IF ( showncount ) %]
460 [% PROCESS items_table tab="holdings" items=itemloop %]
462 [% IF ( hiddencount ) %]
463 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
465 [% IF ( debug_display ) %]
468 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
469 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
470 <tr><td>serial</td><td>[% serial | html %]</td></tr>
474 [% IF ( ALTERNATEHOLDINGS ) %]
475 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
476 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
479 <div id="noitems">No physical items for this record</div>
483 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
484 <span class="results_summary NovelistSelect" style="display:none;">
485 <span class="label">Novelist Select: </span>
486 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
491 [% IF (SeparateHoldings) %]
492 <div id="otherholdings">
493 [% IF (otheritemloop.size) %]
494 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
501 [% IF ( MARCNOTES || notes ) %]
503 <div id="description">
504 <div class="content_set">
506 [% IF ( MARCNOTES ) %]
507 [% FOREACH MARCNOTE IN MARCNOTES %]
509 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
510 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
512 [% MARCNOTE.marcnote | html | html_line_break %]
518 <p>[% notes | html %]</p>
526 [% IF ( subscriptionsnumber ) %]
527 <div id="subscriptions">
528 <div id="catalogue_detail_subscriptions">
529 <h2>This is a serial subscription</h2>
530 <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
531 [% FOREACH subscription IN subscriptions %]
532 [% IF subscription.branchcode %]
533 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
535 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
536 [% IF ( subscription.location ) %]<p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location ) | html %]</p>[% END %]
537 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
538 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
539 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
540 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
541 [% IF ( subscription.latestserials ) %]
542 <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
546 <th>Date arrived</th>
547 <th>Date published</th>
551 [% FOREACH latestserial IN subscription.latestserials %]
553 <td>[% latestserial.serialseq | html %]</td>
554 <td><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td>
555 <td><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td>
557 [% IF ( latestserial.status1 ) %]Expected[% END %]
558 [% IF ( latestserial.status2 ) %]Arrived[% END %]
559 [% IF ( latestserial.status3 ) %]Late[% END %]
560 [% IF ( latestserial.status4 ) %]Missing[% END %]
561 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
562 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
563 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
564 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
565 [% IF ( latestserial.status5 ) %]Not issued[% END %]
566 [% IF ( latestserial.status6 ) %]Delete[% END %]
567 [% IF ( latestserial.status7 ) %]Claimed[% END %]
568 [% IF ( latestserial.status8 ) %]Stopped[% END %]
570 <td>[% latestserial.notes | html %]</td>
575 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
581 [% IF Koha.Preference('AcquisitionDetails') %]
582 <div id="acq_details">
583 [% IF orders.count %]
589 <th>Basket group</th>
591 <th>Order number</th>
592 <th class="title-string">Creation date</th>
593 <th class="title-string">Receive date</th>
596 <th>Internal note</th>
597 <th>Subscription</th>
598 <th>Subscription callnumber</th>
602 [% FOR order IN orders %]
603 [% SET basket = order.basket %]
604 [% SET vendor = basket.bookseller %]
607 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
610 [% IF order.invoiceid %]
611 [% IF CAN_user_acquisition %]
612 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
613 title="Invoice detail page">
614 [% order.invoice.invoicenumber | html %]</a>
616 [% order.invoice.invoicenumber | html %]
621 [% IF basket.basketgroupid %]
622 [% SET basket_group = basket.basket_group %]
623 [% IF CAN_user_acquisition_group_manage %]
624 <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>
626 [% basket_group.name | html %] ([% basket_group.id | html %])
630 <td>[% IF CAN_user_acquisition_order_manage %]
631 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
633 [% basket.basketname | html %] ([% basket.basketno | html %])
635 <td>[% order.ordernumber | html %]</td>
636 <td><span title="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</span></td>
637 <td><span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</span></td>
639 [% SWITCH order.orderstatus %]
641 [% CASE 'ordered' %]Ordered
642 [% CASE 'partial' %]Partial
643 [% CASE 'complete' %]Complete
644 [% CASE 'cancelled' %]Cancelled
647 <td>[% order.quantity | html %]</td>
648 <td>[% order.order_internalnote | html %]</td>
650 [% IF order.subscriptionid %]
651 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
655 [% IF order.subscriptionid %]
656 [% order.subscription.callnumber | html %]
664 There is no order for this biblio.
669 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
670 <div id="editions"><h4>Editions</h4>
672 [% 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 %]
673 [% 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 %]
674 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
675 [% IF ( XISBN.publishercode ) %]
676 [% 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 %]
678 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
679 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
683 </table></div>[% END %]
686 [% IF ( LocalCoverImages ) %]
688 [% IF ( localimages.0 ) %]
689 <p>Click on an image to view it in the image viewer</p>
690 <ul class="thumbnails">
691 [% FOREACH image IN localimages %]
693 <li id="imagenumber-[% image | html %]" class="thumbnail">
694 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image | uri %]">
695 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image | uri %]" />
697 [% IF CAN_user_tools_upload_local_cover_images %]
698 <a href="#" class="remove"><i class="fa fa-trash"></i> Delete image</a>
704 [% ELSE # - No image passed JavaScript takes care %]
705 No images have been uploaded for this bibliographic record yet.
707 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
708 <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>
714 [% IF ( HTML5MediaEnabled ) %]
715 <div id="html5media">
716 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
718 <[% HTML5MediaParent | html %] controls preload=none>
719 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]"[% HTML5MediaSet.typeblock | html %] />
720 [[% HTML5MediaParent | html %] tag not supported by your browser.]
721 </[% HTML5MediaParent | html %]>
728 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
729 <div id="NovelistSelect" class="novelistSelect">
730 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
734 [% FOREACH tab IN tabs %]
735 <div id="[% tab.id | html %]">
736 [% tab.content | $raw %]
740 </div><!-- /bibliodetails -->
742 <div id="export" style="margin-top: 1em;">
743 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
745 <th>Save record</th> </tr>
746 <tr><td> Select download format: <select name="format">
747 <option value="mods">MODS (XML)</option>
748 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
749 <option value="marcxml">MARCXML</option>
750 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
751 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
752 <input type="submit" name="save" value="Download record" /></td>
755 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
761 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
762 <div class="modal-dialog modal-lg">
763 <div class="modal-content">
764 <div class="modal-header">
765 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
766 <h3 id="marcPreviewLabel">MARC preview</h3>
768 <div class="modal-body">
769 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
771 <div class="modal-footer">
772 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
779 </div> <!-- /.col-sm-10.col-sm-push-2 -->
781 <div class="col-sm-2 col-sm-pull-10">
783 [% INCLUDE 'biblio-view-menu.inc' %]
785 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
786 </div> <!-- /.row -->
790 [% MACRO jsinclude BLOCK %]
791 [% INCLUDE 'catalog-strings.inc' %]
792 [% Asset.js("js/catalog.js") | $raw %]
793 [% INCLUDE 'greybox.inc' %]
794 [% Asset.js("js/coce.js") | $raw %]
796 var interface = "[% interface | html %]";
797 var theme = "[% theme | html %]";
798 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
799 function verify_images() {
800 $("#bookcoverimg").each(function(i){
801 $(this).find('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 $("#amazon-bookcoverimg").remove();
807 $("#catalogue_detail_biblio").attr("class","col-xs-12");
808 } else if ((this.complete != null) && (!this.complete)) {
809 $("#amazon-bookcoverimg").remove();
810 $("#catalogue_detail_biblio").attr("class","col-xs-12");
814 if( $(this).find('img').length < 1 ) $(this).remove();
816 $("#editions img").each(function(i){
817 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'))) {
820 if ((w == 1) || (h == 1)) {
821 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
822 } else if ((this.complete != null) && (!this.complete)) {
823 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
829 function removeLocalImage(imagenumber) {
830 var thumbnail = $("#imagenumber-" + imagenumber );
831 var copy = thumbnail.html();
832 thumbnail.find("img").css("opacity", ".2");
833 thumbnail.find("a.remove").html("<img style='display:inline-block' src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' />");
835 url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
836 success: function(data) {
837 $(data).each( function(i) {
838 if ( this.deleted == 1 ) {
841 thumbnail.html( copy );
842 alert(_("An error occurred on deleting this image"));
844 if ( $('ul.thumbnails > li').length == 0 ) {
845 showNoImageMessage();
849 error: function(data) {
850 thumbnail.html( copy );
851 alert(_("An error occurred on deleting this image"));
856 function showNoImageMessage() {
857 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
858 no_images_msg = '<p>' + no_images_msg + '</p>';
859 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
860 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>");
861 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
863 $('#images').html(no_images_msg);
866 [% IF StaffDetailItemSelection %]
867 function itemSelectionBuildDeleteLink(div) {
868 var itemnumbers = new Array();
869 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
870 itemnumbers.push($(this).val());
872 if (itemnumbers.length > 0) {
873 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
874 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
875 url += '&src=CATALOGUING';
876 $('a.itemselection_action_delete').attr('href', url);
883 function itemSelectionBuildModifyLink(div) {
884 var itemnumbers = new Array();
885 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
886 itemnumbers.push($(this).val());
888 if (itemnumbers.length > 0) {
889 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
890 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
891 url += '&src=CATALOGUING';
892 $('a.itemselection_action_modify').attr('href', url);
899 function itemSelectionBuildActionLinks(tab) {
900 var div = $("#" + tab);
901 var delete_link_ok = itemSelectionBuildDeleteLink(div);
902 var modify_link_ok = itemSelectionBuildModifyLink(div);
903 if (modify_link_ok || delete_link_ok) {
904 $('.itemselection_actions', div).show();
906 $('.itemselection_actions', div).hide();
910 $(document).ready(function() {
911 $('table.items_table').each(function() {
912 var div = $(this).parent().attr("id");
913 itemSelectionBuildActionLinks(div);
916 $("input[name='itemnumber'][type='checkbox']").change(function() {
917 var div = $(this).parents('table').parent().parent().attr("id");
918 itemSelectionBuildActionLinks(div);
921 $(".SelectAll").on("click",function(e){
923 var tab = $(this).data("tab");
924 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
925 itemSelectionBuildActionLinks(tab);
928 $(".ClearAll").on("click",function(e){
930 var tab = $(this).data("tab");
931 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
932 itemSelectionBuildActionLinks(tab);
937 $(document).ready(function() {
938 $('#bibliodetails').tabs();
939 [% IF count == 0 and ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) %]
940 $('#bibliodetails').tabs("option", "active", 3);
942 $('#search-form').focus();
943 $('.thumbnails > li > .remove').click(function() {
944 var result = confirm(_("Are you sure you want to delete this cover image?"));
946 if ( result == true ) {
947 var imagenumber = $(this).parent().attr('id').split('-')[1];
948 removeLocalImage(imagenumber);
953 [%# inject no images message %]
954 [% IF LocalCoverImages %]
955 KOHA.LocalCover.GetCoverFromBibnumber(true);
957 [% IF ( IntranetCoce && CoceProviders ) %]
958 KOHA.coce.getURL('[% CoceHost | html %]', '[% CoceProviders | html %]');
961 $("body").on("click",".previewMARC", function(e){
963 var page = $(this).attr("href");
964 $("#marcPreview .modal-body").load(page + " table");
965 $('#marcPreview').modal({show:true});
967 $("#marcPreview").on("hidden.bs.modal", function(){
968 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
970 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
971 novSelect.loadContentForQuery({
972 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
973 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
976 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
977 '[% Koha.Preference('NovelistSelectPassword') | html %]',
979 if ( d.length > 0 ){ //If no content
980 $(".NovelistSelect").show();
984 $(".print-label").on("click", function(e){
986 link = $(this).attr("href");
987 openWindow(link,"Print spine label",400,400);
991 [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
995 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
996 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
998 [% INCLUDE 'datatables.inc' %]
999 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
1000 [% INCLUDE 'browser-strings.inc' %]
1001 [% INCLUDE 'columns_settings.inc' %]
1002 [% Asset.js("js/browser.js") | $raw %]
1003 [% Asset.js("js/table_filters.js") | $raw %]
1006 browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
1009 $(document).ready(function() {
1010 var ids = ['holdings_table', 'otherholdings_table'];
1012 for (var i in ids) {
1014 var dt_parameters = {
1017 'bAutoWidth': false,
1019 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1020 { "sType": "title-string", "aTargets" : [ "title-string" ] }
1023 var table = KohaTable(id, dt_parameters, null, 'with_filters');
1026 [% IF Koha.Preference('AcquisitionDetails') %]
1027 var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
1028 var acquisitiondetails_table = KohaTable("orders", {
1029 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1031 'bAutoWidth': false,
1032 "aaSorting": [[ 4, "desc" ]],
1034 { "aTargets": "title-string", "sType": "title-string" }
1036 }, columns_settings);
1041 [% INCLUDE 'intranet-bottom.inc' %]