5 [% USE AuthorisedValues %]
8 [% USE TablesSettings %]
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 ) %]
38 Details for [% INCLUDE 'biblio-title-head.inc' %]
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')) ) %]
142 <div class="col-xs-3" id="bookcoverimg">
143 <div id="cover-slides">
144 [% IF ( LocalCoverImages ) %]
145 [% IF ( localimages.0 ) %]
146 [% FOREACH image IN localimages %]
148 <div class="cover-image local-coverimg">
149 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image | uri %]">
150 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image | uri %]" alt="Local cover image" />
152 <div class="hint">Local cover image</div>
159 [% IF ( AdlibrisEnabled && normalized_isbn ) %]
160 <div class="cover-image" id="adlibris-coverimg">
161 <a href="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]">
162 <img src="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]" class="adlibris-cover-big" alt="Adlibris cover image" />
164 <div class="hint">Image from Adlibris</div>
167 [% IF ( AmazonCoverImages && normalized_isbn) %]
168 <div class="cover-image" id="amazon-bookcoverimg">
169 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
170 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="Amazon cover image" />
172 <div class="hint">Image from Amazon.com</div>
175 [% IF ( IntranetCoce && CoceProviders && normalized_isbn ) %]
176 [% coce_id = normalized_ean || normalized_isbn %]
177 <div class="cover-image" id="coce-coverimg">
179 <span title="[% biblionumber | url %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></span>
181 <span class="no-image">No cover image available</span>
183 <div class="hint">Image from Coce</div>
187 [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
188 <div class="cover-image" id="custom-coverimg">
189 <a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]">
190 <img id="custom-img" alt="Custom cover image" src="[% biblio.custom_cover_image_url | url %]" />
192 <div class="hint">Custom cover image</div>
196 </div> <!-- /#bookcoverimg -->
199 <div id="bibliodetails" class="toptabs">
202 [% IF (SeparateHoldings) %]
204 <a href="#holdings">[% Branches.GetLoggedInBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
207 <a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
211 <a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a>
214 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %]
215 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
216 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
217 [% IF suggestions.count %]<li><a href="#suggestion_details">Suggestion details</a></li>[% END %]
218 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
219 [% IF ( LocalCoverImages ) %]
220 [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
222 <a href="#images">Images ([% localimages.size() || 0 | html %])</a>
226 [% IF HTML5MediaEnabled && HTML5MediaSets.size %]<li id="media_tab"><a href="#html5media">Play media</a></li>[% END %]
227 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
228 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
230 [% FOREACH tab IN tabs %]
231 <li><a href="#[% tab.id | uri %]">[% tab.title | html %]</a></li>
235 [% items_table_block_iter = 0 %]
236 [% BLOCK items_table %]
237 [% items_table_block_iter = items_table_block_iter + 1 %]
238 <div class="[% tab | html %]_table_table_controls">
239 [% IF (StaffDetailItemSelection) %]
240 | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
241 <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
242 <span class="itemselection_actions">
244 [% IF CAN_user_tools_items_batchdel %]
245 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
247 [% IF CAN_user_tools_items_batchmod %]
248 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
253 <table class="items_table" id="[% tab | html %]_table">
256 [% IF (StaffDetailItemSelection) %]<th id="[% tab | html %]_checkbox" data-colname="[% tab | html %]_checkbox" class="NoSort"></th>[% END %]
257 [% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %]
258 <th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current location</th>
259 <th id="[% tab | html %]_homebranch" data-colname="[% tab | html %]_homebranch">Home library</th>
260 [% IF ( itemdata_ccode ) %]<th id="[% tab | html %]_ccode" data-colname="[% tab | html %]_ccode">Collection</th>[% END %]
261 <th id="[% tab | html %]_itemcallnumber" data-colname="[% tab | html %]_itemcallnumber">Call number</th>
263 [% IF itemdata_publisheddate #If there is at least one published date, use it for sorting%]
264 <th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron" class="title-string">Serial enumeration / chronology</th>
266 <th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron">Serial enumeration / chronology</th>
269 <th id="[% tab | html %]_status" data-colname="[% tab | html %]_status">Status</th>
270 <th id="[% tab | html %]_lastseen" data-colname="[% tab | html %]_lastseen" class="title-string">Last seen</th>
271 <th id="[% tab | html %]_dateaccessioned" data-colname="[% tab | html %]_dateaccessioned" class="title-string">Date accessioned</th>
272 <th id="[% tab | html %]_barcode" data-colname="[% tab | html %]_barcode">Barcode</th>
273 [% IF ( itemdata_uri ) %]<th id="[% tab | html %]_uri" data-colname="[% tab | html %]_uri">URL</th>[% END %]
274 [% IF ( itemdata_copynumber ) %]<th id="[% tab | html %]_copynumber" data-colname="[% tab | html %]_copynumber">Copy number</th>[% END %]
275 [% IF ( itemdata_stocknumber ) %]<th id="[% tab | html %]_stocknumber" data-colname="[% tab | html %]_stocknumber">Inventory number</th>[% END %]
276 [% IF materials %]<th id="[% tab | html %]_materials" data-colname="[% tab | html %]_materials">Materials specified</th>[% END %]
277 [% IF ( itemdata_itemnotes ) %]<th id="[% tab | html %]_itemnotes" data-colname="[% tab | html %]_itemnotes">Public notes</th>[% END %]
278 [% IF ( itemdata_nonpublicnotes ) %]<th id="[% tab | html %]_itemnotes_nonpublic" data-colname="[% tab | html %]_itemnotes_nonpublic">Non-public notes</th>[% END %]
279 [% IF ( hostrecords ) %]<th id="[% tab | html %]_hostrecord" data-colname="[% tab | html %]_hostrecord">Host records</th>[% END %]
280 [% IF ( analyze ) %]<th id="[% tab | html %]_usedin" data-colname="[% tab | html %]_usedin">Used in</th><th></th>[% END %]
281 [% IF ( ShowCourseReserves ) %]<th id="[% tab | html %]_course_reserves" data-colname="[% tab | html %]_course_reserves">Course reserves</th>[% END %]
282 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th id="[% tab | html %]_spinelabel" data-colname="[% tab | html %]_spinelabel" class="NoSort">Spine label</th>[% END %]
283 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th id="[% tab | html %]_actions" data-colname="[% tab | html %]_actions"class="NoSort"> </th>[% END %]
287 [% FOREACH item IN items %]
289 [% IF (StaffDetailItemSelection) %]
290 <td style="text-align:center;vertical-align:middle">
291 <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
294 [% IF ( item_level_itypes ) %]
296 [% IF !noItemTypeImages && item.imageurl %]
297 <img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
299 <span class="itypedesc">[% item.translated_description | html %]</span>
302 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
303 <td class="homebranch">
304 <span class="homebranchdesc">[% Branches.GetName(item.homebranch) | html %]</span>
305 <span class="shelvingloc">
307 If permanent location is defined, show description or code and display current location in parentheses. If not, display current location.
308 Note that permanent location is a code, and location may be an authval.
310 [% IF item.permanent_location %]
311 [% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %]
312 [% permloc_authval | html %]
313 [% IF item.location AND item.location != permloc_authval AND item.location != item.permanent_location %]
314 ([% item.location | html %])
317 [% item.location | html %]
321 [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
322 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
324 <td class="enumchron">
325 [% IF itemdata_publisheddate %]<span title="[% item.publisheddate | html %]">[% END %]
326 [% IF ( itemdata_enumchron ) %]
327 [% IF item.enumchron && item.serialseq %]
328 <span class="enum">[% item.enumchron | html %]</span>
329 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
330 <span class="sep"> -- </span>
331 <span class="serialseq">[% item.serialseq | html %]</span>
333 [% ELSIF item.enumchron %]
334 <span class="enum">[% item.enumchron | html %]</span>
335 [% ELSIF item.serialseq %]
336 <span class="serialseq">[% item.serialseq | html %]</span>
338 [% IF ( item.publisheddate ) %]
339 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
347 [% IF item.CheckedOutFor %]
348 [% IF item.onsite_checkout %]
349 <span>Currently in local use
351 <span class="datedue">Checked out
353 [% UNLESS ( item.NOTSAMEBRANCH ) %]
354 [% IF item.onsite_checkout %]
359 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
361 : due [% item.datedue | html %]
363 [% ELSIF ( item.transfertwhen ) %]
364 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
367 [% IF ( item.itemlost ) %]
368 [% IF itemlostloop %]
369 [% FOREACH itemlostloo IN itemlostloop %]
370 [% IF itemlostloo.authorised_value == item.itemlost %]
371 <span class="lost">[% itemlostloo.lib | html %]</span>
375 <span class="lost">Unavailable (lost or missing)</span>
379 [% IF ( item.withdrawn ) %]
380 [% IF itemwithdrawnloop %]
381 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
382 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
383 <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
387 <span class="wdn">Withdrawn</span>
391 [% IF ( item.damaged ) %]
392 [% IF itemdamagedloop %]
393 [% FOREACH itemdamagedloo IN itemdamagedloop %]
394 [% IF itemdamagedloo.authorised_value == item.damaged %]
395 <span class="dmg">[% itemdamagedloo.lib | html %]</span>
399 <span class="dmg">Damaged</span>
403 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
404 <span class="notforloan">Not for loan
405 [% IF ( item.notforloanvalue ) %]
406 <span class="reason">([% item.notforloanvalue | html %])</span>
411 [% SET hold = item.first_hold %]
413 [% IF hold.waitingdate %]
414 <span class="waitingat">Waiting at [% Branches.GetName( hold.branchcode ) | html %] since [% hold.waitingdate | $KohaDates %].</span>
415 [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
416 <span class="heldfor">Hold for:</span>
417 [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
420 <span class="holdonitem">There is an item level hold on this item (priority = [% hold.priority | html %]).</span>
423 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || hold ) %]
424 <span class="available">Available</span>
427 [% IF ( item.restricted ) %]
428 <span class="restricted">([% item.restrictedvalue | html %])</span>
432 <td class="datelastseen"><span title="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</span></td>
433 <td class="dateaccessioned"><span title="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</span></td>
434 <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>
435 [% IF ( itemdata_uri ) %]
436 [% IF item.uri.split(' \| ').size > 1 %]
438 [% FOREACH uri IN item.uri.split(' \| ') %]<a href="[% uri | url %]">[% uri | html %]</a><br>[% END %]
443 <a href="[% item.uri | url %]">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a>
448 [% IF ( itemdata_copynumber ) %]
449 <td class="copynumber">[% item.copynumber | html %]</td>
451 [% IF ( itemdata_stocknumber ) %]
452 <td class="stocknumber">[% item.stocknumber | html %]</td>
455 <td class="materials"> [% item.materials | html %] </td>
457 [% IF ( itemdata_itemnotes ) %]
458 <td><div class="itemnotes">[% item.itemnotes | $raw %]</div></td>
460 [% IF itemdata_nonpublicnotes %]
461 <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
463 [% IF ( hostrecords ) %]
464 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
468 [% IF ( item.countanalytics ) %]
469 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
474 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
477 [% IF ShowCourseReserves %]
479 [% IF item.course_reserves %]
480 [% FOREACH r IN item.course_reserves %]
481 [% IF r.course.enabled == 'yes' %]
483 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
484 [% r.course.course_name | html %]
485 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
486 [% IF r.course.section %] [% r.course.section | html %] [% END %]
487 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
496 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
497 <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>
500 [% IF CAN_user_editcatalogue_edit_items %]
502 [% UNLESS item.cannot_be_edited %]
503 <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>
511 [% END %][%# end of block items_table %]
515 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
516 <span class="results_summary NovelistSelect" style="display:none;">
517 <span class="label">Novelist Select: </span>
518 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
523 [% IF ( showncount ) %]
524 [% PROCESS items_table tab="holdings" items=itemloop %]
526 [% IF ( hiddencount ) %]
527 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
529 [% IF ( debug_display ) %]
532 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
533 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
534 <tr><td>serial</td><td>[% serial | html %]</td></tr>
538 [% IF ( ALTERNATEHOLDINGS ) %]
539 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
540 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
543 <div id="noitems">No physical items for this record</div>
547 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
548 <span class="results_summary NovelistSelect" style="display:none;">
549 <span class="label">Novelist Select: </span>
550 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
555 [% IF (SeparateHoldings) %]
556 <div id="otherholdings">
557 [% IF (otheritemloop.size) %]
558 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
560 <span class="nootheritems">No other items.</span>
565 [% IF ( MARCNOTES || notes ) %]
567 <div id="description">
568 <div class="content_set">
570 [% IF ( MARCNOTES ) %]
571 [% FOREACH MARCNOTE IN MARCNOTES %]
573 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
574 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
576 [% MARCNOTE.marcnote | html | html_line_break %]
582 <p>[% notes | html %]</p>
590 [% IF ( subscriptionsnumber ) %]
591 <div id="subscriptions">
592 <div id="catalogue_detail_subscriptions">
593 <h2>This is a serial subscription</h2>
594 <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
595 [% FOREACH subscription IN subscriptions %]
596 [% IF subscription.branchcode %]
597 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
599 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
600 [% IF ( subscription.location ) %]<p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location ) | html %]</p>[% END %]
601 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
602 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
603 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
604 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
605 [% IF ( subscription.latestserials ) %]
606 <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
610 <th>Date arrived</th>
611 <th>Date published</th>
615 [% FOREACH latestserial IN subscription.latestserials %]
617 <td>[% latestserial.serialseq | html %]</td>
618 <td><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td>
619 <td><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td>
621 [% IF ( latestserial.status1 ) %]Expected[% END %]
622 [% IF ( latestserial.status2 ) %]Arrived[% END %]
623 [% IF ( latestserial.status3 ) %]Late[% END %]
624 [% IF ( latestserial.status4 ) %]Missing[% END %]
625 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
626 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
627 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
628 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
629 [% IF ( latestserial.status5 ) %]Not issued[% END %]
630 [% IF ( latestserial.status6 ) %]Delete[% END %]
631 [% IF ( latestserial.status7 ) %]Claimed[% END %]
632 [% IF ( latestserial.status8 ) %]Stopped[% END %]
634 <td>[% latestserial.notes | html %]</td>
639 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
645 [% IF Koha.Preference('AcquisitionDetails') %]
646 <div id="acq_details">
647 [% IF orders.count %]
653 <th>Basket group</th>
655 <th>Order number</th>
656 <th class="title-string">Creation date</th>
657 <th class="title-string">Receive date</th>
660 <th>Internal note</th>
661 <th>Subscription</th>
662 <th>Subscription callnumber</th>
666 [% FOR order IN orders %]
667 [% SET basket = order.basket %]
668 [% SET vendor = basket.bookseller %]
671 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
674 [% IF order.invoiceid %]
675 [% IF CAN_user_acquisition %]
676 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
677 title="Invoice detail page">
678 [% order.invoice.invoicenumber | html %]</a>
680 [% order.invoice.invoicenumber | html %]
685 [% IF basket.basketgroupid %]
686 [% SET basket_group = basket.basket_group %]
687 [% IF CAN_user_acquisition_group_manage %]
688 <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>
690 [% basket_group.name | html %] ([% basket_group.id | html %])
694 <td>[% IF CAN_user_acquisition_order_manage %]
695 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
697 [% basket.basketname | html %] ([% basket.basketno | html %])
699 <td>[% order.ordernumber | html %]</td>
700 <td><span title="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</span></td>
701 <td><span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</span></td>
703 [% SWITCH order.orderstatus %]
705 [% CASE 'ordered' %]Ordered
706 [% CASE 'partial' %]Partial
707 [% CASE 'complete' %]Complete
708 [% CASE 'cancelled' %]Cancelled
711 <td>[% order.quantity | html %]</td>
712 <td>[% order.order_internalnote | html %]</td>
714 [% IF order.subscriptionid %]
715 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
719 [% IF order.subscriptionid %]
720 [% order.subscription.callnumber | html %]
728 <span class="noorder">There is no order for this bibliographic record.</span>
733 [% IF suggestions.count %]
734 <div id="suggestion_details">
735 [% IF nb_archived_suggestions > 0 %]
736 <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw %]
738 <table id="suggestions" class="sorted">
741 <th class="NoSort"> </th>
742 <th class="anti-the">Suggestion</th>
743 <th>Suggested by - on</th>
744 <th>Managed by - on</th>
745 <th>Last modification by - on</th>
752 [% FOREACH suggestion IN suggestions %]
754 <td>[% suggestion.suggestionid | html %]</td>
756 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestion.suggestionid | uri %]&op=show" title="suggestion" >
757 [% suggestion.title | html %][% IF ( suggestion.author ) %], by [% suggestion.author | html %][% END %]</a>
759 [% IF ( suggestion.copyrightdate ) %]© [% suggestion.copyrightdate | html %] [% END %]
760 [% IF ( suggestion.volumedesc ) %]; Volume:<i>[% suggestion.volumedesc | html %]</i> [% END %]
761 [% 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 %]
764 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.suggestedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</a>
765 [% IF suggestion.suggesteddate %] - [% suggestion.suggesteddate | $KohaDates %][% END %]
768 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.managedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.manager %]</a>
769 [% IF suggestion.manageddate %] - [% suggestion.manageddate | $KohaDates %][% END %]
772 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.lastmodificationby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.last_modifier %]</a>
773 [% IF suggestion.lastmodificationdate %] - [% suggestion.lastmodificationdate | $KohaDates %][% END %]
776 [% Branches.GetName( suggestion.branchcode ) | html %]
779 [% suggestion.fund.budget_name | html %]
782 [% IF suggestion.STATUS == 'ASKED' %]Pending
783 [% ELSIF suggestion.STATUS == 'ACCEPTED' %]Accepted
784 [% ELSIF suggestion.STATUS == 'ORDERED' %]Ordered
785 [% ELSIF suggestion.STATUS == 'REJECTED' %]Rejected
786 [% ELSIF suggestion.STATUS == 'CHECKED' %]Checked
787 [% ELSIF suggestion.STATUS == 'AVAILABLE' %]Available
788 [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) %]
789 [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) | html %]
790 [% ELSE %]Status unknown
792 [% IF suggestion.reason %]
793 <br />([% suggestion.reason | html %])
803 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
804 <div id="editions"><h4>Editions</h4>
806 [% 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 %]
807 [% 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 %]
808 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
809 [% IF ( XISBN.publishercode ) %]
810 [% 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 %]
812 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
813 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
817 </table></div>[% END %]
820 [% IF ( LocalCoverImages ) %]
822 [% IF ( localimages.0 ) %]
823 <p>Click on an image to view it in the image viewer</p>
824 <ul class="thumbnails">
825 [% FOREACH image IN localimages %]
827 <li id="imagenumber-[% image | html %]" class="thumbnail">
828 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image | uri %]">
829 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image | uri %]" />
831 [% IF CAN_user_tools_upload_local_cover_images %]
832 <a href="#" class="remove"><i class="fa fa-trash"></i> Delete image</a>
838 [% ELSE # - No image passed JavaScript takes care %]
839 <span class="noimagesuploaded">No images have been uploaded for this bibliographic record yet.</span>
841 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
842 <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>
848 [% IF ( HTML5MediaEnabled ) %]
849 <div id="html5media">
850 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
852 [% IF HTML5MediaSet.is_youtube %]
853 <iframe id="player" type="text/html" width="640" height="360"
854 src="[% HTML5MediaSet.srcblock | url %]" frameborder="0"></iframe>
856 <[% HTML5MediaParent | html %] controls preload=none>
857 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]"[% HTML5MediaSet.typeblock | html %] />
858 [[% HTML5MediaParent | html %] tag not supported by your browser.]
859 </[% HTML5MediaParent | html %]>
867 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
868 <div id="NovelistSelect" class="novelistSelect">
869 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
873 [% FOREACH tab IN tabs %]
874 <div id="[% tab.id | html %]">
875 [% tab.content | $raw %]
879 </div><!-- /bibliodetails -->
881 <div id="export" style="margin-top: 1em;">
882 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
884 <th>Save record</th> </tr>
885 <tr><td> Select download format: <select name="format">
886 <option value="mods">MODS (XML)</option>
887 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
888 <option value="marcxml">MARCXML</option>
889 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
890 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
891 <input type="submit" name="save" value="Download record" /></td>
894 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
900 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
901 <div class="modal-dialog modal-lg">
902 <div class="modal-content">
903 <div class="modal-header">
904 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
905 <h3 id="marcPreviewLabel">MARC preview</h3>
907 <div class="modal-body">
908 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
910 <div class="modal-footer">
911 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
918 </div> <!-- /.col-sm-10.col-sm-push-2 -->
920 <div class="col-sm-2 col-sm-pull-10">
922 [% INCLUDE 'biblio-view-menu.inc' %]
924 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
925 </div> <!-- /.row -->
929 [% MACRO jsinclude BLOCK %]
930 [% INCLUDE 'catalog-strings.inc' %]
931 [% Asset.js("js/catalog.js") | $raw %]
932 [% Asset.js("js/coce.js") | $raw %]
934 var interface = "[% interface | html %]";
935 var theme = "[% theme | html %]";
936 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
937 function verify_images() {
938 // Loop over each container in the template which contains covers
939 var coverSlides = $(".cover-image");
940 coverSlides.each( function( index ){
942 // Find the image in the container
943 var img = div.find("img")[0];
944 if( $(img).length > 0 ){
945 if( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ){
946 // No image loaded in the container. Remove the slide
949 // All slides start hidden. If this is the first one, show it.
953 // Check if Amazon image is present
954 if ( div.attr("id") == "amazon-bookcoverimg" ) {
957 if ((w == 1) || (h == 1)) {
958 // Amazon returned single-pixel placeholder
959 // Remove the container
963 if( div.attr("id") == "custom-img" ){
964 if ( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ) {
965 // No image was loaded via the CustomCoverImages system preference
966 // Remove the container
970 if( div.attr("id") == "coce-coverimg" ){
971 // Identify which service's image is being loaded by Coce
972 if( $(img).attr("src").indexOf('amazon.com') >= 0 ){
973 div.find(".hint").html(_("Coce image from Amazon.com"));
974 } else if( $(img).attr("src").indexOf('google.com') >= 0 ){
975 div.find(".hint").html(_("Coce image from Google Books"));
976 } else if( $(img).attr("src").indexOf('openlibrary.org') >= 0 ){
977 div.find(".hint").html(_("Coce image from Open Library"));
980 // If more that one slide is present, add a navigation link
981 // for activating the slide
982 if( coverSlides.length > 1 ){
983 var covernav = $("<a href=\"#\" data-num=\"" + index + "\" class=\"cover-nav\"></a>");
985 // Set the first navigation link as active
986 $(covernav).addClass("nav-active");
988 $(covernav).html("<i class=\"fa fa-circle\"></i>");
989 $("#cover-slides").addClass("cover-slides").append( covernav );
994 if( $(".cover-image").length < 2 ){
995 /* Don't show controls for switching between covers if there is only 1 */
996 $(".cover-nav").remove();
998 if( $(".cover-image:visible").length < 1 ){
999 $("#cover-slides").remove();
1002 $("#editions img").each(function(i){
1003 if ( this.src.indexOf('amazon.com') >= 0 ) {
1006 if ((w == 1) || (h == 1)) {
1007 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1008 } else if ( (this.complete != null) && (!this.complete) || this.naturalHeight == 0 ) {
1009 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1015 function removeLocalImage(imagenumber) {
1016 var thumbnail = $("#imagenumber-" + imagenumber );
1017 var copy = thumbnail.html();
1018 thumbnail.find("img").css("opacity", ".2");
1019 thumbnail.find("a.remove").html("<img style='display:inline-block' src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' />");
1021 url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
1022 success: function(data) {
1023 $(data).each( function(i) {
1024 if ( this.deleted == 1 ) {
1027 thumbnail.html( copy );
1028 alert(_("An error occurred on deleting this image"));
1030 if ( $('ul.thumbnails > li').length == 0 ) {
1031 showNoImageMessage();
1035 error: function(data) {
1036 thumbnail.html( copy );
1037 alert(_("An error occurred on deleting this image"));
1042 function showNoImageMessage() {
1043 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
1044 no_images_msg = '<p>' + no_images_msg + '</p>';
1045 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
1046 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>");
1047 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
1049 $('#images').html(no_images_msg);
1052 [% IF StaffDetailItemSelection %]
1053 function itemSelectionBuildDeleteLink(div) {
1054 var itemnumbers = new Array();
1055 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
1056 itemnumbers.push($(this).val());
1058 if (itemnumbers.length > 0) {
1059 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
1060 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
1061 url += '&biblionumber=[% biblionumber | uri %]';
1062 url += '&src=CATALOGUING';
1063 $('a.itemselection_action_delete').attr('href', url);
1070 function itemSelectionBuildModifyLink(div) {
1071 var itemnumbers = new Array();
1072 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
1073 itemnumbers.push($(this).val());
1075 if (itemnumbers.length > 0) {
1076 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
1077 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
1078 url += '&biblionumber=[% biblionumber | uri %]';
1079 url += '&src=CATALOGUING';
1080 $('a.itemselection_action_modify').attr('href', url);
1087 function itemSelectionBuildActionLinks(tab) {
1088 var div = $("#" + tab);
1089 var delete_link_ok = itemSelectionBuildDeleteLink(div);
1090 var modify_link_ok = itemSelectionBuildModifyLink(div);
1091 if (modify_link_ok || delete_link_ok) {
1092 $('.itemselection_actions', div).show();
1094 $('.itemselection_actions', div).hide();
1098 $(document).ready(function() {
1099 $('table.items_table').each(function() {
1100 var div = $(this).parent().attr("id");
1101 itemSelectionBuildActionLinks(div);
1104 $("input[name='itemnumber'][type='checkbox']").change(function() {
1105 var div = $(this).parents('table').parent().parent().attr("id");
1106 itemSelectionBuildActionLinks(div);
1109 $(".SelectAll").on("click",function(e){
1111 var tab = $(this).data("tab");
1112 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
1113 itemSelectionBuildActionLinks(tab);
1116 $(".ClearAll").on("click",function(e){
1118 var tab = $(this).data("tab");
1119 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
1120 itemSelectionBuildActionLinks(tab);
1125 $(document).ready(function() {
1126 $('#bibliodetails').tabs();
1127 [% IF count == 0 and ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) %]
1128 $('#bibliodetails').tabs("option", "active", $('#media_tab').index() );
1130 $('#search-form').focus();
1131 $('.thumbnails > li > .remove').click(function() {
1132 var result = confirm(_("Are you sure you want to delete this cover image?"));
1134 if ( result == true ) {
1135 var imagenumber = $(this).parent().attr('id').split('-')[1];
1136 removeLocalImage(imagenumber);
1141 [% IF ( IntranetCoce && CoceProviders ) %]
1142 KOHA.coce.getURL('[% CoceHost | html %]', '[% CoceProviders | html %]');
1145 $("body").on("click",".previewMARC", function(e){
1147 var page = $(this).attr("href");
1148 $("#marcPreview .modal-body").load(page + " table");
1149 $('#marcPreview').modal({show:true});
1151 $("#marcPreview").on("hidden.bs.modal", function(){
1152 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1154 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1155 novSelect.loadContentForQuery({
1156 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1157 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1160 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
1161 '[% Koha.Preference('NovelistSelectPassword') | html %]',
1163 if ( d.length > 0 ){ //If no content
1164 $(".NovelistSelect").show();
1168 $(".print-label").on("click", function(e){
1170 link = $(this).attr("href");
1171 openWindow(link,"Print spine label",400,400);
1173 $("#cover-slides").on("click",".cover-nav", function(e){
1175 // Adding click handler for cover image navigation links
1176 var num = $(this).data("num");
1177 $(".cover-nav").removeClass("nav-active");
1178 $(this).addClass("nav-active");
1179 $(".cover-image").hide();
1180 $(".cover-image").eq( num ).show();
1184 $(window).load(function() {
1188 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1189 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1191 [% INCLUDE 'datatables.inc' %]
1192 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
1193 [% INCLUDE 'strings.inc' %]
1194 [% INCLUDE 'columns_settings.inc' %]
1195 [% Asset.js("js/browser.js") | $raw %]
1196 [% Asset.js("js/table_filters.js") | $raw %]
1199 browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
1202 $(document).ready(function() {
1203 var ids = ['holdings_table', 'otherholdings_table'];
1204 var columns_settings = [ [% TablesSettings.GetColumns('catalogue', 'detail','holdings_table','json') | $raw %], [% TablesSettings.GetColumns('catalogue', 'detail','otherholdings_table','json') | $raw %] ];
1205 for (var i in ids) {
1207 var dt_parameters = {
1210 'bAutoWidth': false,
1212 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1213 { "sType": "title-string", "aTargets" : [ "title-string" ] }
1215 "bKohaColumnsUseNames": true,
1216 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1218 var table = KohaTable(id, dt_parameters, columns_settings[i], 'with_filters');
1221 [% IF Koha.Preference('AcquisitionDetails') %]
1222 var columns_settings = [% TablesSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
1223 var acquisitiondetails_table = KohaTable("orders", {
1224 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1226 'bAutoWidth': false,
1227 "aaSorting": [[ 4, "desc" ]],
1229 { "aTargets": "title-string", "sType": "title-string" }
1231 }, columns_settings);
1234 [% IF suggestions.count %]
1235 $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
1237 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1238 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
1240 "sPaginationType": "full"
1246 [% INCLUDE 'intranet-bottom.inc' %]