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.subfield | 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.subfield | html %][% END %]</i>
56 <div class="main container-fluid">
58 <div class="col-sm-10 col-sm-push-2">
61 [% IF ( unknownbiblionumber ) %]
62 <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
65 [% INCLUDE 'cat-toolbar.inc' %]
67 <!-- COinS / OpenURL -->
68 <span class="Z3988" title="[% ocoins | html %]"></span>
71 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %]
73 <div id="catalogue_detail_biblio" class="yui-u first">
76 <div id="catalogue_detail_biblio">
81 [% IF shelves.count %]
82 <span class="results_summary"><span class="label">Lists that include this title: </span>
83 [% FOREACH s IN shelves %]
84 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
85 [% IF ( loop.last ) %][% ELSE %]|[% END %]
89 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
90 <span class="results_summary"><span class="label">Tags:</span>
91 [% FOREACH TagLoo IN TagLoop %]
92 [% IF ( CAN_user_tools_moderate_tags ) %]
93 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
95 [% TagLoo.term | html %]
97 <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
101 <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>
103 [% IF ( holdcount ) %]
104 <span class="results_summary">
105 <span class="label">Holds:</span>
106 <span class="number_box">
107 [% IF CAN_user_reserveforothers_place_holds %]
108 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a>
110 <span>[% holdcount | html %]</span>
116 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
117 <span class="results_summary">
118 <span class="label">Article requests:</span>
119 <span class="number_box">
120 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | uri %]">[% article_requests_count | html %]</a>
125 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %]
126 </div><div class="yui-u" id="bookcoverimg">
127 [% IF ( LocalCoverImages ) %]
128 <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
130 [% IF ( AdlibrisEnabled && normalized_isbn ) %]
131 <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>
133 [% IF ( AmazonCoverImages ) %]
134 <div id="amazon-bookcoverimg">
135 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
136 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
143 <div id="bibliodetails" class="toptabs">
146 [% IF (SeparateHoldings) %]
148 <a href="#holdings">[% LoginBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
151 <a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
155 <a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a>
158 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions</a></li>[% END %]
159 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
160 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
161 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
162 [% IF ( LocalCoverImages ) %]
163 [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
165 <a href="#images">Images ([% localimages.size() || 0 | html %])</a>
169 [% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %]
170 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
171 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
175 [% items_table_block_iter = 0 %]
176 [% BLOCK items_table %]
177 [% items_table_block_iter = items_table_block_iter + 1 %]
178 <div class="[% tab | html %]_table_table_controls">
179 [% IF (StaffDetailItemSelection) %]
180 | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
181 <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
182 <span class="itemselection_actions">
184 [% IF CAN_user_tools_items_batchdel %]
185 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
187 [% IF CAN_user_tools_items_batchmod %]
188 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
193 <table class="items_table" id="[% tab | html %]_table">
196 [% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %]
197 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
198 <th>Current location</th>
199 <th>Home library</th>
200 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
202 [% IF ( volinfo ) %]<th>Serial enumeration / chronology</th>[% END %]
204 <th class="title-string">Last seen</th>
205 <th class="title-string">Date accessioned</th>
207 [% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
208 [% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
209 [% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
210 [% IF materials %]<th>Materials specified</th>[% END %]
211 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
212 [% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %]
213 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine label</th>[% END %]
214 [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
215 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
216 [% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
217 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort"> </th>[% END %]
221 [% FOREACH item IN items %]
223 [% IF (StaffDetailItemSelection) %]
224 <td style="text-align:center;vertical-align:middle">
225 <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
228 [% IF ( item_level_itypes ) %]
230 [% IF !noItemTypeImages && item.imageurl %]
231 <img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
233 [% item.translated_description | html %]
236 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
237 <td class="homebranch">
238 [% Branches.GetName(item.homebranch) | html %]
239 <span class="shelvingloc">[% item.location | html %]</span>
241 [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
242 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
244 <td class="enumchron">
245 [% IF ( itemdata_enumchron ) %]
246 [% IF item.enumchron && item.serialseq %]
247 <span class="enum">[% item.enumchron | html %]</span>
248 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
249 <span class="sep"> -- </span>
250 <span class="serialseq">[% item.serialseq | html %]</span>
252 [% ELSIF item.enumchron %]
253 <span class="enum">[% item.enumchron | html %]</span>
254 [% ELSIF item.serialseq %]
255 <span class="serialseq">[% item.serialseq | html %]</span>
257 [% IF ( item.publisheddate ) %]
258 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
265 [% IF item.CheckedOutFor %]
266 [% IF item.onsite_checkout %]
267 <span>Currently in local use
269 <span class="datedue">Checked out
271 [% UNLESS ( item.NOTSAMEBRANCH ) %]
272 [% IF item.onsite_checkout %]
277 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
279 : due [% item.datedue | html %]
281 [% ELSIF ( item.transfertwhen ) %]
282 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
285 [% IF ( item.itemlost ) %]
286 [% IF itemlostloop %]
287 [% FOREACH itemlostloo IN itemlostloop %]
288 [% IF itemlostloo.authorised_value == item.itemlost %]
289 <span class="lost">[% itemlostloo.lib | html %]</span>
293 <span class="lost">Unavailable (lost or missing)</span>
297 [% IF ( item.withdrawn ) %]
298 [% IF itemwithdrawnloop %]
299 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
300 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
301 <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
305 <span class="wdn">Withdrawn</span>
309 [% IF ( item.damaged ) %]
310 [% IF itemdamagedloop %]
311 [% FOREACH itemdamagedloo IN itemdamagedloop %]
312 [% IF itemdamagedloo.authorised_value == item.damaged %]
313 <span class="dmg">[% itemdamagedloo.lib | html %]</span>
317 <span class="dmg">Damaged</span>
321 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
323 [% IF ( item.notforloanvalue ) %]
324 ([% item.notforloanvalue | html %])
328 [% IF ( item.reservedate ) %]
329 [% IF ( item.waitingdate ) %]
330 Waiting at [% Branches.GetName( item.ExpectedAtLibrary ) | html %] since [% item.waitingdate | $KohaDates %].
332 Item-level hold (placed [% item.reservedate | $KohaDates %]) for delivery at [% Branches.GetName( item.ExpectedAtLibrary ) | html %].
334 [% IF ( canreservefromotherbranches ) %]
336 [% INCLUDE 'patron-title.inc' patron=item.ReservedFor hide_patron_infos_if_needed=1 %]
339 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %]
343 [% IF ( item.restricted ) %]
344 <span class="restricted">([% item.restrictedvalue | html %])</span>
348 <td class="datelastseen"><span title="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</span></td>
349 <td class="dateaccessioned"><span title="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</span></td>
350 <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>
351 [% IF ( itemdata_uri ) %]
352 <td class="uri"><a href="[% item.uri | url %]">[% item.uri | html %]</a></td>
354 [% IF ( itemdata_copynumber ) %]
355 <td class="copynumber">[% item.copynumber | html %]</td>
357 [% IF ( itemdata_stocknumber ) %]
358 <td class="stocknumber">[% item.stocknumber | html %]</td>
361 <td class="materials"> [% item.materials | html %] </td>
363 [% IF ( itemdata_itemnotes ) %]
364 <td><div class="itemnotes">[% item.itemnotes | html %]</div></td>
366 [% IF itemdata_nonpublicnotes %]
367 <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
369 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
370 <td><a href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% item.barcode | uri %]" >Print label</a></td>
372 [% IF ( hostrecords ) %]
373 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
377 [% IF ( item.countanalytics ) %]
378 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
383 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
386 [% IF ShowCourseReserves %]
388 [% IF item.course_reserves %]
389 [% FOREACH r IN item.course_reserves %]
390 [% IF r.course.enabled == 'yes' %]
392 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
393 [% r.course.course_name | html %]
394 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
395 [% IF r.course.section %] [% r.course.section | html %] [% END %]
396 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
404 [% IF CAN_user_editcatalogue_edit_items %]
406 [% UNLESS item.cannot_be_edited %]
407 <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>
415 [% END %][%# end of block items_table %]
419 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
420 <span class="results_summary NovelistSelect" style="display:none;">
421 <span class="label">Novelist Select: </span>
422 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
427 [% IF ( showncount ) %]
428 [% PROCESS items_table tab="holdings" items=itemloop %]
430 [% IF ( hiddencount ) %]
431 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
433 [% IF ( debug_display ) %]
436 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
437 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
438 <tr><td>serial</td><td>[% serial | html %]</td></tr>
442 [% IF ( ALTERNATEHOLDINGS ) %]
443 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
444 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
447 <div id="noitems">No physical items for this record</div>
451 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
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 (SeparateHoldings) %]
460 <div id="otherholdings">
461 [% IF (otheritemloop.size) %]
462 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
469 [% IF ( MARCNOTES || notes ) %]
471 <div id="description">
472 <div class="content_set">
474 [% IF ( MARCNOTES ) %]
475 [% FOREACH MARCNOTE IN MARCNOTES %]
477 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
478 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
480 [% MARCNOTE.marcnote | html | html_line_break %]
486 <p>[% notes | html %]</p>
494 [% IF ( subscriptionsnumber ) %]
495 <div id="subscriptions">
497 <div id="catalogue_detail_subscriptions">
498 <h2>This is a serial subscription</h2>
499 <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
500 [% FOREACH subscription IN subscriptions %]
501 [% IF subscription.branchcode %]
502 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
504 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
505 [% IF ( subscription.location ) %]<p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location ) | html %]</p>[% END %]
506 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
507 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
508 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
509 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
510 [% IF ( subscription.latestserials ) %]
511 <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
515 <th>Date arrived</th>
516 <th>Date published</th>
520 [% FOREACH latestserial IN subscription.latestserials %]
522 <td>[% latestserial.serialseq | html %]</td>
523 <td>[% latestserial.planneddate | html %]</td>
524 <td>[% latestserial.publisheddate | html %]</td>
526 [% IF ( latestserial.status1 ) %]Expected[% END %]
527 [% IF ( latestserial.status2 ) %]Arrived[% END %]
528 [% IF ( latestserial.status3 ) %]Late[% END %]
529 [% IF ( latestserial.status4 ) %]Missing[% END %]
530 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
531 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
532 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
533 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
534 [% IF ( latestserial.status5 ) %]Not issued[% END %]
535 [% IF ( latestserial.status6 ) %]Delete[% END %]
536 [% IF ( latestserial.status7 ) %]Claimed[% END %]
537 [% IF ( latestserial.status8 ) %]Stopped[% END %]
539 <td>[% latestserial.notes | html %]</td>
544 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
551 [% IF Koha.Preference('AcquisitionDetails') %]
552 <div id="acq_details">
559 <th>Basket group</th>
561 <th>Order number</th>
562 <th class="title-string">Creation date</th>
563 <th class="title-string">Receive date</th>
566 <th>Internal note</th>
567 <th>Subscription</th>
568 <th>Subscription callnumber</th>
572 [% FOR order IN orders %]
573 [% SET basket = order.basket %]
574 [% SET vendor = basket.bookseller %]
577 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
580 [% IF order.invoiceid %]
581 [% IF CAN_user_acquisition %]
582 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
583 title="Invoice detail page">
584 [% order.invoice.invoicenumber | html %]</a>
586 [% order.invoice.invoicenumber | html %]
591 [% IF basket.basketgroupid %]
592 [% SET basket_group = basket.basket_group %]
593 [% IF CAN_user_acquisition_group_manage %]
594 <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>
596 [% basket_group.name | html %] ([% basket_group.id | html %])
600 <td>[% IF CAN_user_acquisition_order_manage %]
601 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
603 [% basket.basketname | html %] ([% basket.basketno | html %])
605 <td>[% order.ordernumber | html %]</td>
606 <td><span title="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</span></td>
607 <td><span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</span></td>
609 [% SWITCH order.orderstatus %]
611 [% CASE 'ordered' %]Ordered
612 [% CASE 'partial' %]Partial
613 [% CASE 'complete' %]Complete
614 [% CASE 'cancelled' %]Cancelled
617 <td>[% order.quantity | html %]</td>
618 <td>[% order.order_internalnote | html %]</td>
620 [% IF order.subscriptionid %]
621 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
625 [% IF order.subscriptionid %]
626 [% order.subscription.callnumber | html %]
634 There is no order for this biblio.
639 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
640 <div id="editions"><h4>Editions</h4>
642 [% 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 %]
643 [% 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 %]
644 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
645 [% IF ( XISBN.publishercode ) %]
646 [% 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 %]
648 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
649 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
653 </table></div>[% END %]
656 [% IF ( LocalCoverImages ) %]
658 [% IF ( localimages.0 ) %]
659 <p>Click on an image to view it in the image viewer</p>
660 <ul class="thumbnails">
661 [% FOREACH image IN localimages %]
663 <li id="imagenumber-[% image | html %]" class="thumbnail">
664 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image | uri %]">
665 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image | uri %]" />
667 [% IF CAN_user_tools_upload_local_cover_images %]
668 <a href="#" class="remove"><i class="fa fa-trash"></i> Delete image</a>
674 [% ELSE # - No image passed JavaScript takes care %]
675 No images have been uploaded for this bibliographic record yet.
677 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
678 <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>
684 [% IF ( HTML5MediaEnabled ) %]
685 <div id="html5media">
686 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
688 <[% HTML5MediaParent | html %] controls preload=none>
689 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]"[% HTML5MediaSet.typeblock | html %] />
690 [[% HTML5MediaParent | html %] tag not supported by your browser.]
691 </[% HTML5MediaParent | html %]>
698 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
699 <div id="NovelistSelect" class="novelistSelect">
700 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
704 </div><!-- /bibliodetails -->
706 <div class="yui-g" id="export" style="margin-top: 1em;">
707 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
709 <th>Save Record</th> </tr>
710 <tr><td> Select download format: <select name="format">
711 <option value="mods">MODS (XML)</option>
712 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
713 <option value="marcxml">MARCXML</option>
714 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
715 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
716 <input type="submit" name="save" value="Download Record" /></td>
719 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
725 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
726 <div class="modal-dialog modal-lg">
727 <div class="modal-content">
728 <div class="modal-header">
729 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
730 <h3 id="marcPreviewLabel">MARC preview</h3>
732 <div class="modal-body">
733 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
735 <div class="modal-footer">
736 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
743 </div> <!-- /.col-sm-10.col-sm-push-2 -->
745 <div class="col-sm-2 col-sm-pull-10">
747 [% INCLUDE 'biblio-view-menu.inc' %]
749 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
750 </div> <!-- /.row -->
754 [% MACRO jsinclude BLOCK %]
755 [% INCLUDE 'catalog-strings.inc' %]
756 [% Asset.js("js/catalog.js") | $raw %]
757 [% INCLUDE 'greybox.inc' %]
759 var interface = "[% interface | html %]";
760 var theme = "[% theme | html %]";
761 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
762 function verify_images() {
763 $("#bookcoverimg").each(function(i){
764 $(this).find('img').each(function(i){
765 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'))) {
768 if ((w == 1) || (h == 1)) {
769 $("#amazon-bookcoverimg").remove();
770 $(".yui-gb").attr("class","yui-g");
771 } else if ((this.complete != null) && (!this.complete)) {
772 $("#amazon-bookcoverimg").remove();
773 $(".yui-gb").attr("class","yui-g");
777 if( $(this).find('img').length < 1 ) $(this).remove();
779 $("#editions img").each(function(i){
780 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'))) {
783 if ((w == 1) || (h == 1)) {
784 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
785 } else if ((this.complete != null) && (!this.complete)) {
786 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
792 function removeLocalImage(imagenumber) {
793 var thumbnail = $("#imagenumber-" + imagenumber );
794 var copy = thumbnail.html();
795 thumbnail.html("<div><img style='padding:50px' src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' /></div>");
797 url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
798 success: function(data) {
799 $(data).each( function(i) {
800 if ( this.deleted == 1 ) {
803 thumbnail.html( copy );
804 alert(_("An error occurred on deleting this image"));
806 if ( $('ul.thumbnails > li').length == 0 ) {
807 showNoImageMessage();
811 error: function(data) {
812 thumbnail.html( copy );
813 alert(_("An error occurred on deleting this image"));
818 function showNoImageMessage() {
819 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
820 no_images_msg = '<p>' + no_images_msg + '</p>';
821 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
822 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>");
823 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
825 $('#images').html(no_images_msg);
828 [% IF StaffDetailItemSelection %]
829 function itemSelectionBuildDeleteLink(div) {
830 var itemnumbers = new Array();
831 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
832 itemnumbers.push($(this).val());
834 if (itemnumbers.length > 0) {
835 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
836 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
837 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
838 $('a.itemselection_action_delete').attr('href', url);
845 function itemSelectionBuildModifyLink(div) {
846 var itemnumbers = new Array();
847 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
848 itemnumbers.push($(this).val());
850 if (itemnumbers.length > 0) {
851 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
852 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
853 url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
854 $('a.itemselection_action_modify').attr('href', url);
861 function itemSelectionBuildActionLinks(tab) {
862 var div = $("#" + tab);
863 var delete_link_ok = itemSelectionBuildDeleteLink(div);
864 var modify_link_ok = itemSelectionBuildModifyLink(div);
865 if (modify_link_ok || delete_link_ok) {
866 $('.itemselection_actions', div).show();
868 $('.itemselection_actions', div).hide();
872 $(document).ready(function() {
873 $('table.items_table').each(function() {
874 var div = $(this).parent().attr("id");
875 itemSelectionBuildActionLinks(div);
878 $("input[name='itemnumber'][type='checkbox']").change(function() {
879 var div = $(this).parents('table').parent().parent().attr("id");
880 itemSelectionBuildActionLinks(div);
883 $(".SelectAll").on("click",function(e){
885 var tab = $(this).data("tab");
886 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
887 itemSelectionBuildActionLinks(tab);
890 $(".ClearAll").on("click",function(e){
892 var tab = $(this).data("tab");
893 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
894 itemSelectionBuildActionLinks(tab);
899 $(document).ready(function() {
900 $('#bibliodetails').tabs();
902 $('#bibliodetails').tabs("option", "active", 3);
904 $('#search-form').focus();
905 $('.thumbnails > li > .remove').click(function() {
906 var result = confirm(_("Are you sure you want to delete this cover image?"));
908 if ( result == true ) {
909 var imagenumber = $(this).parent().attr('id').split('-')[1];
910 removeLocalImage(imagenumber);
915 [%# inject no images message %]
916 [% IF LocalCoverImages %]
917 KOHA.LocalCover.GetCoverFromBibnumber(true);
919 $("body").on("click",".previewMARC", function(e){
921 var page = $(this).attr("href");
922 $("#marcPreview .modal-body").load(page + " table");
923 $('#marcPreview').modal({show:true});
925 $("#marcPreview").on("hidden.bs.modal", function(){
926 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
928 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
929 novSelect.loadContentForQuery({
930 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
931 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
934 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
935 '[% Koha.Preference('NovelistSelectPassword') | html %]',
937 if ( d.length > 0 ){ //If no content
938 $(".NovelistSelect").show();
945 [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
949 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
950 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
952 [% INCLUDE 'datatables.inc' %]
953 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
954 [% INCLUDE 'browser-strings.inc' %]
955 [% INCLUDE 'columns_settings.inc' %]
956 [% Asset.js("js/browser.js") | $raw %]
957 [% Asset.js("js/table_filters.js") | $raw %]
960 browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
963 $(document).ready(function() {
964 var ids = ['holdings_table', 'otherholdings_table'];
968 var dt_parameters = {
973 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
974 { "sType": "title-string", "aTargets" : [ "title-string" ] }
977 var table = KohaTable(id, dt_parameters, null, 'with_filters');
980 [% IF Koha.Preference('AcquisitionDetails') %]
981 var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
982 var acquisitiondetails_table = KohaTable("orders", {
983 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
986 "aaSorting": [[ 4, "desc" ]],
988 { "aTargets": "title-string", "sType": "title-string" }
990 }, columns_settings);
995 [% INCLUDE 'intranet-bottom.inc' %]