5 [% USE AuthorisedValues %]
8 [% USE ColumnsSettings %]
9 [% PROCESS 'i18n.inc' %]
10 [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
11 [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
13 [% IF Koha.Preference('AmazonAssocTag') %]
14 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
16 [% AmazonAssocTag = '' %]
19 [% ShowCourseReserves = 0 | html %]
20 [% IF UseCourseReserves %]
21 [% FOREACH item IN itemloop %]
22 [% IF item.course_reserves %]
23 [% FOREACH r IN item.course_reserves %]
24 [% IF r.course.enabled == 'yes' %]
25 [% ShowCourseReserves = 1 | html %]
32 [% SET footerjs = 1 %]
33 [% INCLUDE 'doc-head-open.inc' %]
34 <title>Koha › Catalog ›
35 [% IF ( unknownbiblionumber ) %]
36 <span class="unknownrecord">Unknown record</span>
38 <span class="titledetails">Details for [% INCLUDE 'biblio-title-head.inc' %]</span>
41 [% INCLUDE 'doc-head-close.inc' %]
44 <body id="catalog_detail" class="catalog">
46 [% INCLUDE 'header.inc' %]
47 [% INCLUDE 'cat-search.inc' %]
49 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> ›
50 [% IF ( unknownbiblionumber ) %]
51 <span class="unknownrecord">Unknown record</span>
53 <span class="titledetails">Details for <i>[% INCLUDE 'biblio-title.inc' %]</i></span>
57 <div class="main container-fluid">
59 <div class="col-sm-10 col-sm-push-2">
63 [% IF ( unknownbiblionumber ) %]
64 <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
67 [% IntranetCoce = Koha.Preference('IntranetCoce') %]
68 [% CoceProviders = Koha.Preference('CoceProviders') %]
69 [% CoceHost = Koha.Preference('CoceHost') %]
71 [% INCLUDE 'cat-toolbar.inc' %]
72 [% IF decoding_error %]
74 <span class="biberror">
75 There is an error with this bibliographic record, the view may be degraded.</span>
76 <span class="error"><br/> Error: [% decoding_error | html %]</span>
80 <!-- COinS / OpenURL -->
81 <span class="Z3988" title="[% ocoins | html %]"></span>
84 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
85 [% IF ( XSLTDetailsDisplay ) %]
86 <div id="catalogue_detail_biblio" class="col-xs-9">
88 <div id="catalogue_detail_biblio" class="col-xs-9">
91 <div id="catalogue_detail_biblio" class="col-xs-12">
96 [% IF shelves.count %]
97 <span class="results_summary"><span class="label">Lists that include this title: </span>
98 [% FOREACH s IN shelves %]
99 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
100 [% IF ( loop.last ) %][% ELSE %]|[% END %]
104 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
105 <span class="results_summary"><span class="label">Tags:</span>
106 [% FOREACH TagLoo IN TagLoop %]
107 [% IF ( CAN_user_tools_moderate_tags ) %]
108 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
110 [% TagLoo.term | html %]
112 <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
116 <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>
118 [% IF ( holdcount ) %]
119 <span class="results_summary">
120 <span class="label">Holds:</span>
121 <span class="number_box">
122 [% IF CAN_user_reserveforothers_place_holds %]
123 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a>
125 <span>[% holdcount | html %]</span>
131 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
132 <span class="results_summary">
133 <span class="label">Article requests:</span>
134 <span class="number_box">
135 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | uri %]">[% article_requests_count | html %]</a>
140 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
141 </div><div class="col-xs-3" id="bookcoverimg">
142 [% IF ( LocalCoverImages ) %]
143 <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
145 [% IF ( AdlibrisEnabled && normalized_isbn ) %]
146 <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>
148 [% IF ( AmazonCoverImages && normalized_isbn) %]
149 <div id="amazon-bookcoverimg">
150 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
151 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
154 [% IF ( IntranetCoce && CoceProviders ) %]
155 [% coce_id = normalized_ean || normalized_isbn %]
156 <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% biblionumber | url %]">
158 <span style="block" title="[% biblionumber | url %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></span>
160 <span class="no-image">No cover image available</span>
165 [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
166 <a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /></a>
172 <div id="bibliodetails" class="toptabs">
175 [% IF (SeparateHoldings) %]
177 <a href="#holdings">[% LoginBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
180 <a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
184 <a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a>
187 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %]
188 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
189 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
190 [% IF suggestions.count %]<li><a href="#suggestion_details">Suggestion details</a></li>[% END %]
191 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
192 [% IF ( LocalCoverImages ) %]
193 [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
195 <a href="#images">Images ([% localimages.size() || 0 | html %])</a>
199 [% IF HTML5MediaEnabled && HTML5MediaSets.size %]<li id="media_tab"><a href="#html5media">Play media</a></li>[% END %]
200 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
201 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
203 [% FOREACH tab IN tabs %]
204 <li><a href="#[% tab.id | uri %]">[% tab.title | html %]</a></li>
208 [% items_table_block_iter = 0 %]
209 [% BLOCK items_table %]
210 [% items_table_block_iter = items_table_block_iter + 1 %]
211 <div class="[% tab | html %]_table_table_controls">
212 [% IF (StaffDetailItemSelection) %]
213 | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
214 <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
215 <span class="itemselection_actions">
217 [% IF CAN_user_tools_items_batchdel %]
218 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
220 [% IF CAN_user_tools_items_batchmod %]
221 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
226 <table class="items_table" id="[% tab | html %]_table">
229 [% IF (StaffDetailItemSelection) %]<th id="[% tab | html %]_checkbox" data-colname="[% tab | html %]_checkbox" class="NoSort"></th>[% END %]
230 [% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %]
231 <th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current location</th>
232 <th id="[% tab | html %]_homebranch" data-colname="[% tab | html %]_homebranch">Home library</th>
233 [% IF ( itemdata_ccode ) %]<th id="[% tab | html %]_ccode" data-colname="[% tab | html %]_ccode">Collection</th>[% END %]
234 <th id="[% tab | html %]_itemcallnumber" data-colname="[% tab | html %]_itemcallnumber">Call number</th>
236 [% IF itemdata_publisheddate #If there is at least one published date, use it for sorting%]
237 <th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron" class="title-string">Serial enumeration / chronology</th>
239 <th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron">Serial enumeration / chronology</th>
242 <th id="[% tab | html %]_status" data-colname="[% tab | html %]_status">Status</th>
243 <th id="[% tab | html %]_lastseen" data-colname="[% tab | html %]_lastseen" class="title-string">Last seen</th>
244 <th id="[% tab | html %]_dateaccessioned" data-colname="[% tab | html %]_dateaccessioned" class="title-string">Date accessioned</th>
245 <th id="[% tab | html %]_barcode" data-colname="[% tab | html %]_barcode">Barcode</th>
246 [% IF ( itemdata_uri ) %]<th id="[% tab | html %]_uri" data-colname="[% tab | html %]_uri">URL</th>[% END %]
247 [% IF ( itemdata_copynumber ) %]<th id="[% tab | html %]_copynumber" data-colname="[% tab | html %]_copynumber">Copy number</th>[% END %]
248 [% IF ( itemdata_stocknumber ) %]<th id="[% tab | html %]_stocknumber" data-colname="[% tab | html %]_stocknumber">Inventory number</th>[% END %]
249 [% IF materials %]<th id="[% tab | html %]_materials" data-colname="[% tab | html %]_materials">Materials specified</th>[% END %]
250 [% IF ( itemdata_itemnotes ) %]<th id="[% tab | html %]_itemnotes" data-colname="[% tab | html %]_itemnotes">Public notes</th>[% END %]
251 [% IF ( itemdata_nonpublicnotes ) %]<th id="[% tab | html %]_itemnotes_nonpublic" data-colname="[% tab | html %]_itemnotes_nonpublic">Non-public notes</th>[% END %]
252 [% IF ( hostrecords ) %]<th id="[% tab | html %]_hostrecord" data-colname="[% tab | html %]_hostrecord">Host records</th>[% END %]
253 [% IF ( analyze ) %]<th id="[% tab | html %]_usedin" data-colname="[% tab | html %]_usedin">Used in</th><th></th>[% END %]
254 [% IF ( ShowCourseReserves ) %]<th id="[% tab | html %]_course_reserves" data-colname="[% tab | html %]_course_reserves">Course reserves</th>[% END %]
255 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th id="[% tab | html %]_spinelabel" data-colname="[% tab | html %]_spinelabel" class="NoSort">Spine label</th>[% END %]
256 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th id="[% tab | html %]_actions" data-colname="[% tab | html %]_actions"class="NoSort"> </th>[% END %]
260 [% FOREACH item IN items %]
262 [% IF (StaffDetailItemSelection) %]
263 <td style="text-align:center;vertical-align:middle">
264 <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
267 [% IF ( item_level_itypes ) %]
269 [% IF !noItemTypeImages && item.imageurl %]
270 <img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
272 <span class="itypedesc">[% item.translated_description | html %]</span>
275 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
276 <td class="homebranch">
277 <span class="homebranchdesc">[% Branches.GetName(item.homebranch) | html %]</span>
278 <span class="shelvingloc">
280 If permanent location is defined, show description or code and display current location in parentheses. If not, display current location.
281 Note that permanent location is a code, and location may be an authval.
283 [% IF item.permanent_location %]
284 [% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %]
285 [% permloc_authval | html %]
286 [% IF item.location AND item.location != permloc_authval AND item.location != item.permanent_location %]
287 ([% item.location | html %])
290 [% item.location | html %]
294 [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
295 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
297 <td class="enumchron">
298 [% IF itemdata_publisheddate %]<span title="[% item.publisheddate | html %]">[% END %]
299 [% IF ( itemdata_enumchron ) %]
300 [% IF item.enumchron && item.serialseq %]
301 <span class="enum">[% item.enumchron | html %]</span>
302 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
303 <span class="sep"> -- </span>
304 <span class="serialseq">[% item.serialseq | html %]</span>
306 [% ELSIF item.enumchron %]
307 <span class="enum">[% item.enumchron | html %]</span>
308 [% ELSIF item.serialseq %]
309 <span class="serialseq">[% item.serialseq | html %]</span>
311 [% IF ( item.publisheddate ) %]
312 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
320 [% IF item.CheckedOutFor %]
321 [% IF item.onsite_checkout %]
322 <span>Currently in local use
324 <span class="datedue">Checked out
326 [% UNLESS ( item.NOTSAMEBRANCH ) %]
327 [% IF item.onsite_checkout %]
332 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
334 : due [% item.datedue | html %]
336 [% ELSIF ( item.transfertwhen ) %]
337 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
340 [% IF ( item.itemlost ) %]
341 [% IF itemlostloop %]
342 [% FOREACH itemlostloo IN itemlostloop %]
343 [% IF itemlostloo.authorised_value == item.itemlost %]
344 <span class="lost">[% itemlostloo.lib | html %]</span>
348 <span class="lost">Unavailable (lost or missing)</span>
352 [% IF ( item.withdrawn ) %]
353 [% IF itemwithdrawnloop %]
354 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
355 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
356 <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
360 <span class="wdn">Withdrawn</span>
364 [% IF ( item.damaged ) %]
365 [% IF itemdamagedloop %]
366 [% FOREACH itemdamagedloo IN itemdamagedloop %]
367 [% IF itemdamagedloo.authorised_value == item.damaged %]
368 <span class="dmg">[% itemdamagedloo.lib | html %]</span>
372 <span class="dmg">Damaged</span>
376 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
377 <span class="notforloan">Not for loan
378 [% IF ( item.notforloanvalue ) %]
379 <span class="reason">([% item.notforloanvalue | html %])</span>
384 [% SET hold = item.first_hold %]
386 [% IF hold.waitingdate %]
387 <span class="waitingat">Waiting at [% Branches.GetName( hold.branchcode ) | html %] since [% hold.waitingdate | $KohaDates %].</span>
388 [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
389 <span class="heldfor">Hold for:</span>
390 [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
393 <span class="holdonitem">There is an item level hold on this item (priority = [% hold.priority | html %]).</span>
396 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || hold ) %]
397 <span class="available">Available</span>
400 [% IF ( item.restricted ) %]
401 <span class="restricted">([% item.restrictedvalue | html %])</span>
405 <td class="datelastseen"><span title="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</span></td>
406 <td class="dateaccessioned"><span title="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</span></td>
407 <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>
408 [% IF ( itemdata_uri ) %]
409 [% IF item.uri.split(' \| ').size > 1 %]
411 [% FOREACH uri IN item.uri.split(' \| ') %]<a href="[% uri | url %]">[% uri | html %]</a><br>[% END %]
416 <a href="[% item.uri | url %]">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a>
421 [% IF ( itemdata_copynumber ) %]
422 <td class="copynumber">[% item.copynumber | html %]</td>
424 [% IF ( itemdata_stocknumber ) %]
425 <td class="stocknumber">[% item.stocknumber | html %]</td>
428 <td class="materials"> [% item.materials | html %] </td>
430 [% IF ( itemdata_itemnotes ) %]
431 <td><div class="itemnotes">[% item.itemnotes | $raw %]</div></td>
433 [% IF itemdata_nonpublicnotes %]
434 <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
436 [% IF ( hostrecords ) %]
437 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
441 [% IF ( item.countanalytics ) %]
442 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
447 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
450 [% IF ShowCourseReserves %]
452 [% IF item.course_reserves %]
453 [% FOREACH r IN item.course_reserves %]
454 [% IF r.course.enabled == 'yes' %]
456 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
457 [% r.course.course_name | html %]
458 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
459 [% IF r.course.section %] [% r.course.section | html %] [% END %]
460 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
469 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
470 <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>
473 [% IF CAN_user_editcatalogue_edit_items %]
475 [% UNLESS item.cannot_be_edited %]
476 <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>
484 [% END %][%# end of block items_table %]
488 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
489 <span class="results_summary NovelistSelect" style="display:none;">
490 <span class="label">Novelist Select: </span>
491 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
496 [% IF ( showncount ) %]
497 [% PROCESS items_table tab="holdings" items=itemloop %]
499 [% IF ( hiddencount ) %]
500 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
502 [% IF ( debug_display ) %]
505 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
506 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
507 <tr><td>serial</td><td>[% serial | html %]</td></tr>
511 [% IF ( ALTERNATEHOLDINGS ) %]
512 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
513 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
516 <div id="noitems">No physical items for this record</div>
520 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
521 <span class="results_summary NovelistSelect" style="display:none;">
522 <span class="label">Novelist Select: </span>
523 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
528 [% IF (SeparateHoldings) %]
529 <div id="otherholdings">
530 [% IF (otheritemloop.size) %]
531 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
533 <span class="nootheritems">No other items.</span>
538 [% IF ( MARCNOTES || notes ) %]
540 <div id="description">
541 <div class="content_set">
543 [% IF ( MARCNOTES ) %]
544 [% FOREACH MARCNOTE IN MARCNOTES %]
546 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
547 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
549 [% MARCNOTE.marcnote | html | html_line_break %]
555 <p>[% notes | html %]</p>
563 [% IF ( subscriptionsnumber ) %]
564 <div id="subscriptions">
565 <div id="catalogue_detail_subscriptions">
566 <h2>This is a serial subscription</h2>
567 <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
568 [% FOREACH subscription IN subscriptions %]
569 [% IF subscription.branchcode %]
570 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
572 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
573 [% IF ( subscription.location ) %]<p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location ) | html %]</p>[% END %]
574 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
575 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
576 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
577 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
578 [% IF ( subscription.latestserials ) %]
579 <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
583 <th>Date arrived</th>
584 <th>Date published</th>
588 [% FOREACH latestserial IN subscription.latestserials %]
590 <td>[% latestserial.serialseq | html %]</td>
591 <td><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td>
592 <td><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td>
594 [% IF ( latestserial.status1 ) %]Expected[% END %]
595 [% IF ( latestserial.status2 ) %]Arrived[% END %]
596 [% IF ( latestserial.status3 ) %]Late[% END %]
597 [% IF ( latestserial.status4 ) %]Missing[% END %]
598 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
599 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
600 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
601 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
602 [% IF ( latestserial.status5 ) %]Not issued[% END %]
603 [% IF ( latestserial.status6 ) %]Delete[% END %]
604 [% IF ( latestserial.status7 ) %]Claimed[% END %]
605 [% IF ( latestserial.status8 ) %]Stopped[% END %]
607 <td>[% latestserial.notes | html %]</td>
612 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
618 [% IF Koha.Preference('AcquisitionDetails') %]
619 <div id="acq_details">
620 [% IF orders.count %]
626 <th>Basket group</th>
628 <th>Order number</th>
629 <th class="title-string">Creation date</th>
630 <th class="title-string">Receive date</th>
633 <th>Internal note</th>
634 <th>Subscription</th>
635 <th>Subscription callnumber</th>
639 [% FOR order IN orders %]
640 [% SET basket = order.basket %]
641 [% SET vendor = basket.bookseller %]
644 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
647 [% IF order.invoiceid %]
648 [% IF CAN_user_acquisition %]
649 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
650 title="Invoice detail page">
651 [% order.invoice.invoicenumber | html %]</a>
653 [% order.invoice.invoicenumber | html %]
658 [% IF basket.basketgroupid %]
659 [% SET basket_group = basket.basket_group %]
660 [% IF CAN_user_acquisition_group_manage %]
661 <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>
663 [% basket_group.name | html %] ([% basket_group.id | html %])
667 <td>[% IF CAN_user_acquisition_order_manage %]
668 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
670 [% basket.basketname | html %] ([% basket.basketno | html %])
672 <td>[% order.ordernumber | html %]</td>
673 <td><span title="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</span></td>
674 <td><span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</span></td>
676 [% SWITCH order.orderstatus %]
678 [% CASE 'ordered' %]Ordered
679 [% CASE 'partial' %]Partial
680 [% CASE 'complete' %]Complete
681 [% CASE 'cancelled' %]Cancelled
684 <td>[% order.quantity | html %]</td>
685 <td>[% order.order_internalnote | html %]</td>
687 [% IF order.subscriptionid %]
688 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
692 [% IF order.subscriptionid %]
693 [% order.subscription.callnumber | html %]
701 <span class="noorder">There is no order for this bibliographic record.</span>
706 [% IF suggestions.count %]
707 <div id="suggestion_details">
708 [% IF nb_archived_suggestions > 0 %]
709 <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw %]
711 <table id="suggestions" class="sorted">
714 <th class="NoSort"> </th>
715 <th class="anti-the">Suggestion</th>
716 <th>Suggested by - on</th>
717 <th>Managed by - on</th>
718 <th>Last modification by - on</th>
725 [% FOREACH suggestion IN suggestions %]
727 <td>[% suggestion.suggestionid | html %]</td>
729 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestion.suggestionid | uri %]&op=show" title="suggestion" >
730 [% suggestion.title | html %][% IF ( suggestion.author ) %], by [% suggestion.author | html %][% END %]</a>
732 [% IF ( suggestion.copyrightdate ) %]© [% suggestion.copyrightdate | html %] [% END %]
733 [% IF ( suggestion.volumedesc ) %]; Volume:<i>[% suggestion.volumedesc | html %]</i> [% END %]
734 [% IF ( suggestion.isbn ) %]; ISBN:<i>[% suggestion.isbn | html %]</i> [% END %][% IF ( suggestion.publishercode ) %]; Published by [% suggestion.publishercode | html %] [% END %][% IF ( suggestion.publicationyear ) %] in <i>[% suggestion.publicationyear | html %]</i> [% END %][% IF ( suggestion.place ) %] in <i>[% suggestion.place | html %]</i> [% END %][% IF ( suggestion.collectiontitle ) %]; [% suggestion.collectiontitle | html %] [% END %][% IF ( suggestion.itemtype ) %]; [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestion.itemtype, 0 ) | html %] [% END %]<br />[% IF ( suggestion.note ) %]<div class="suggestion_note"><i class="fa fa-comment"></i> [% suggestion.note | html %]</div>[% END %]
737 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.suggestedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</a>
738 [% IF suggestion.suggesteddate %] - [% suggestion.suggesteddate | $KohaDates %][% END %]
741 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.managedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.manager %]</a>
742 [% IF suggestion.manageddate %] - [% suggestion.manageddate | $KohaDates %][% END %]
745 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.lastmodificationby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.last_modifier %]</a>
746 [% IF suggestion.lastmodificationdate %] - [% suggestion.lastmodificationdate | $KohaDates %][% END %]
749 [% Branches.GetName( suggestion.branchcode ) | html %]
752 [% suggestion.fund.budget_name | html %]
755 [% IF suggestion.STATUS == 'ASKED' %]Pending
756 [% ELSIF suggestion.STATUS == 'ACCEPTED' %]Accepted
757 [% ELSIF suggestion.STATUS == 'ORDERED' %]Ordered
758 [% ELSIF suggestion.STATUS == 'REJECTED' %]Rejected
759 [% ELSIF suggestion.STATUS == 'CHECKED' %]Checked
760 [% ELSIF suggestion.STATUS == 'AVAILABLE' %]Available
761 [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) %]
762 [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) | html %]
763 [% ELSE %]Status unknown
765 [% IF suggestion.reason %]
766 <br />([% suggestion.reason | html %])
776 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
777 <div id="editions"><h4>Editions</h4>
779 [% 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 %]
780 [% 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 %]
781 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
782 [% IF ( XISBN.publishercode ) %]
783 [% 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 %]
785 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
786 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
790 </table></div>[% END %]
793 [% IF ( LocalCoverImages ) %]
795 [% IF ( localimages.0 ) %]
796 <p>Click on an image to view it in the image viewer</p>
797 <ul class="thumbnails">
798 [% FOREACH image IN localimages %]
800 <li id="imagenumber-[% image | html %]" class="thumbnail">
801 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image | uri %]">
802 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image | uri %]" />
804 [% IF CAN_user_tools_upload_local_cover_images %]
805 <a href="#" class="remove"><i class="fa fa-trash"></i> Delete image</a>
811 [% ELSE # - No image passed JavaScript takes care %]
812 <span class="noimagesuploaded">No images have been uploaded for this bibliographic record yet.</span>
814 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
815 <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>
821 [% IF ( HTML5MediaEnabled ) %]
822 <div id="html5media">
823 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
825 [% IF HTML5MediaSet.is_youtube %]
826 <iframe id="player" type="text/html" width="640" height="360"
827 src="[% HTML5MediaSet.srcblock | url %]" frameborder="0"></iframe>
829 <[% HTML5MediaParent | html %] controls preload=none>
830 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]"[% HTML5MediaSet.typeblock | html %] />
831 [[% HTML5MediaParent | html %] tag not supported by your browser.]
832 </[% HTML5MediaParent | html %]>
840 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
841 <div id="NovelistSelect" class="novelistSelect">
842 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
846 [% FOREACH tab IN tabs %]
847 <div id="[% tab.id | html %]">
848 [% tab.content | $raw %]
852 </div><!-- /bibliodetails -->
854 <div id="export" style="margin-top: 1em;">
855 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
857 <th>Save record</th> </tr>
858 <tr><td> Select download format: <select name="format">
859 <option value="mods">MODS (XML)</option>
860 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
861 <option value="marcxml">MARCXML</option>
862 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
863 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
864 <input type="submit" name="save" value="Download record" /></td>
867 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
873 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
874 <div class="modal-dialog modal-lg">
875 <div class="modal-content">
876 <div class="modal-header">
877 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
878 <h3 id="marcPreviewLabel">MARC preview</h3>
880 <div class="modal-body">
881 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
883 <div class="modal-footer">
884 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
891 </div> <!-- /.col-sm-10.col-sm-push-2 -->
893 <div class="col-sm-2 col-sm-pull-10">
895 [% INCLUDE 'biblio-view-menu.inc' %]
897 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
898 </div> <!-- /.row -->
902 [% MACRO jsinclude BLOCK %]
903 [% INCLUDE 'catalog-strings.inc' %]
904 [% Asset.js("js/catalog.js") | $raw %]
905 [% Asset.js("js/coce.js") | $raw %]
907 var interface = "[% interface | html %]";
908 var theme = "[% theme | html %]";
909 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
910 function verify_images() {
911 $("#bookcoverimg").each(function(i){
912 $(this).find('img').each(function(i){
913 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'))) {
916 if ((w == 1) || (h == 1)) {
917 $("#amazon-bookcoverimg").remove();
918 } else if ((this.complete != null) && (!this.complete)) {
919 $("#amazon-bookcoverimg").remove();
923 if( $(this).find('img').length < 1 ){
925 $("#catalogue_detail_biblio").attr("class","col-xs-12");
928 $("#editions img").each(function(i){
929 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'))) {
932 if ((w == 1) || (h == 1)) {
933 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
934 } else if ((this.complete != null) && (!this.complete)) {
935 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
941 function removeLocalImage(imagenumber) {
942 var thumbnail = $("#imagenumber-" + imagenumber );
943 var copy = thumbnail.html();
944 thumbnail.find("img").css("opacity", ".2");
945 thumbnail.find("a.remove").html("<img style='display:inline-block' src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' />");
947 url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
948 success: function(data) {
949 $(data).each( function(i) {
950 if ( this.deleted == 1 ) {
953 thumbnail.html( copy );
954 alert(_("An error occurred on deleting this image"));
956 if ( $('ul.thumbnails > li').length == 0 ) {
957 showNoImageMessage();
961 error: function(data) {
962 thumbnail.html( copy );
963 alert(_("An error occurred on deleting this image"));
968 function showNoImageMessage() {
969 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
970 no_images_msg = '<p>' + no_images_msg + '</p>';
971 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
972 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>");
973 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
975 $('#images').html(no_images_msg);
978 [% IF StaffDetailItemSelection %]
979 function itemSelectionBuildDeleteLink(div) {
980 var itemnumbers = new Array();
981 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
982 itemnumbers.push($(this).val());
984 if (itemnumbers.length > 0) {
985 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
986 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
987 url += '&biblionumber=[% biblionumber | uri %]';
988 url += '&src=CATALOGUING';
989 $('a.itemselection_action_delete').attr('href', url);
996 function itemSelectionBuildModifyLink(div) {
997 var itemnumbers = new Array();
998 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
999 itemnumbers.push($(this).val());
1001 if (itemnumbers.length > 0) {
1002 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
1003 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
1004 url += '&biblionumber=[% biblionumber | uri %]';
1005 url += '&src=CATALOGUING';
1006 $('a.itemselection_action_modify').attr('href', url);
1013 function itemSelectionBuildActionLinks(tab) {
1014 var div = $("#" + tab);
1015 var delete_link_ok = itemSelectionBuildDeleteLink(div);
1016 var modify_link_ok = itemSelectionBuildModifyLink(div);
1017 if (modify_link_ok || delete_link_ok) {
1018 $('.itemselection_actions', div).show();
1020 $('.itemselection_actions', div).hide();
1024 $(document).ready(function() {
1025 $('table.items_table').each(function() {
1026 var div = $(this).parent().attr("id");
1027 itemSelectionBuildActionLinks(div);
1030 $("input[name='itemnumber'][type='checkbox']").change(function() {
1031 var div = $(this).parents('table').parent().parent().attr("id");
1032 itemSelectionBuildActionLinks(div);
1035 $(".SelectAll").on("click",function(e){
1037 var tab = $(this).data("tab");
1038 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
1039 itemSelectionBuildActionLinks(tab);
1042 $(".ClearAll").on("click",function(e){
1044 var tab = $(this).data("tab");
1045 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
1046 itemSelectionBuildActionLinks(tab);
1051 $(document).ready(function() {
1052 $('#bibliodetails').tabs();
1053 [% IF count == 0 and ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) %]
1054 $('#bibliodetails').tabs("option", "active", $('#media_tab').index() );
1056 $('#search-form').focus();
1057 $('.thumbnails > li > .remove').click(function() {
1058 var result = confirm(_("Are you sure you want to delete this cover image?"));
1060 if ( result == true ) {
1061 var imagenumber = $(this).parent().attr('id').split('-')[1];
1062 removeLocalImage(imagenumber);
1067 [%# inject no images message %]
1068 [% IF LocalCoverImages %]
1069 KOHA.LocalCover.GetCoverFromBibnumber(true);
1071 [% IF ( IntranetCoce && CoceProviders ) %]
1072 KOHA.coce.getURL('[% CoceHost | html %]', '[% CoceProviders | html %]');
1075 $("body").on("click",".previewMARC", function(e){
1077 var page = $(this).attr("href");
1078 $("#marcPreview .modal-body").load(page + " table");
1079 $('#marcPreview').modal({show:true});
1081 $("#marcPreview").on("hidden.bs.modal", function(){
1082 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1084 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1085 novSelect.loadContentForQuery({
1086 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1087 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1090 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
1091 '[% Koha.Preference('NovelistSelectPassword') | html %]',
1093 if ( d.length > 0 ){ //If no content
1094 $(".NovelistSelect").show();
1098 $(".print-label").on("click", function(e){
1100 link = $(this).attr("href");
1101 openWindow(link,"Print spine label",400,400);
1105 [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
1109 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1110 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1112 [% INCLUDE 'datatables.inc' %]
1113 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
1114 [% INCLUDE 'strings.inc' %]
1115 [% INCLUDE 'columns_settings.inc' %]
1116 [% Asset.js("js/browser.js") | $raw %]
1117 [% Asset.js("js/table_filters.js") | $raw %]
1120 browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
1123 $(document).ready(function() {
1124 var ids = ['holdings_table', 'otherholdings_table'];
1125 var columns_settings = [ [% ColumnsSettings.GetColumns('catalogue', 'detail','holdings_table','json') | $raw %], [% ColumnsSettings.GetColumns('catalogue', 'detail','otherholdings_table','json') | $raw %] ];
1126 for (var i in ids) {
1128 var dt_parameters = {
1131 'bAutoWidth': false,
1133 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1134 { "sType": "title-string", "aTargets" : [ "title-string" ] }
1136 "bKohaColumnsUseNames": true,
1137 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1139 var table = KohaTable(id, dt_parameters, columns_settings[i], 'with_filters');
1142 [% IF Koha.Preference('AcquisitionDetails') %]
1143 var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
1144 var acquisitiondetails_table = KohaTable("orders", {
1145 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1147 'bAutoWidth': false,
1148 "aaSorting": [[ 4, "desc" ]],
1150 { "aTargets": "title-string", "sType": "title-string" }
1152 }, columns_settings);
1155 [% IF suggestions.count %]
1156 $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
1158 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1159 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
1161 "sPaginationType": "full"
1167 [% INCLUDE 'intranet-bottom.inc' %]