5 [% USE AuthorisedValues %]
9 [% USE TablesSettings %]
10 [% PROCESS 'i18n.inc' %]
11 [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
12 [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
14 [% IF Koha.Preference('AmazonAssocTag') %]
15 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
17 [% AmazonAssocTag = '' %]
20 [% ShowCourseReserves = 0 | html %]
21 [% IF UseCourseReserves %]
22 [% FOREACH item IN itemloop %]
23 [% IF item.course_reserves %]
24 [% FOREACH r IN item.course_reserves %]
25 [% IF r.course.enabled == 'yes' %]
26 [% ShowCourseReserves = 1 | html %]
33 [% SET footerjs = 1 %]
34 [% INCLUDE 'doc-head-open.inc' %]
35 <title>Koha › Catalog ›
36 [% IF ( unknownbiblionumber ) %]
39 Details for [% INCLUDE 'biblio-title-head.inc' %]
42 [% INCLUDE 'doc-head-close.inc' %]
45 <body id="catalog_detail" class="catalog">
47 [% INCLUDE 'header.inc' %]
48 [% INCLUDE 'cat-search.inc' %]
50 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
53 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
56 <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
59 [% IF ( unknownbiblionumber ) %]
61 <a href="#" aria-current="page">
67 [% INCLUDE 'biblio-title.inc' link = 1 %]
70 <a href="#" aria-current="page">
78 <div class="main container-fluid">
80 <div class="col-sm-10 col-sm-push-2">
84 [% IF ( unknownbiblionumber ) %]
85 <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
88 [% IntranetCoce = Koha.Preference('IntranetCoce') %]
89 [% CoceProviders = Koha.Preference('CoceProviders') %]
90 [% CoceHost = Koha.Preference('CoceHost') %]
92 [% INCLUDE 'cat-toolbar.inc' %]
93 [% IF decoding_error %]
95 <span class="biberror">
96 There is an error with this bibliographic record, the view may be degraded.</span>
97 <span class="error"><br/> Error: [% decoding_error | html %]</span>
101 <!-- COinS / OpenURL -->
102 <span class="Z3988" title="[% ocoins | html %]"></span>
105 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
106 [% IF ( XSLTDetailsDisplay ) %]
107 <div id="catalogue_detail_biblio" class="col-xs-9">
109 <div id="catalogue_detail_biblio" class="col-xs-9">
112 <div id="catalogue_detail_biblio" class="col-xs-12">
115 [% XSLTBloc | $raw %]
117 [% IF shelves.count %]
118 <span class="results_summary"><span class="label">Lists that include this title: </span>
119 [% FOREACH s IN shelves %]
120 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
121 [% IF ( loop.last ) %][% ELSE %]|[% END %]
125 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
126 <span class="results_summary"><span class="label">Tags:</span>
127 [% FOREACH TagLoo IN TagLoop %]
128 [% IF ( CAN_user_tools_moderate_tags ) %]
129 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
131 [% TagLoo.term | html %]
133 <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
137 <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>
138 [% IF !item_level_itypes || Koha.Preference("BiblioItemtypeInfo") %]
139 <span class="results_summary itemtype"><span class="label">Itemtype:</span>
140 [% IF ( !noItemTypeImages && imageurl ) %]
141 <img src="[% imageurl | html %]" alt="" />
143 [% IF ( description ) %]
144 [% description | html %]
146 [% itemtype | html %]
151 [% IF ( holdcount ) %]
152 <span class="results_summary">
153 <span class="label">Holds:</span>
154 <span class="number_box">
155 [% IF CAN_user_reserveforothers_place_holds %]
156 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a>
158 <span>[% holdcount | html %]</span>
164 [% IF illrequests.count %]
165 <span class="results_summary">
166 <span class="label">ILL requests:</span>
167 [% IF CAN_user_ill %]
168 [% FOREACH ill IN illrequests %]
169 <a href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% ill.illrequest_id | uri %]">Request [% ill.illrequest_id | html %]</a>[% IF ! loop.last %], [% END %]
172 [% FOREACH ill IN illrequests %]
173 <span>Request [% ill.illrequest_id | html %]</span>[% IF ! loop.last %], [% END %]
179 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
180 <span class="results_summary">
181 <span class="label">Article requests:</span>
182 <span class="number_box">
183 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | uri %]">[% article_requests_count | html %]</a>
188 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
190 <div class="col-xs-3 bookcoverimg">
191 <div id="biblio-cover-slider" class="cover-slider">
192 [% IF ( LocalCoverImages ) %]
193 [% IF localimages.count %]
194 [% FOREACH image IN localimages %]
195 <div class="cover-image local-coverimg">
196 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image.imagenumber | uri %]">
197 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" />
199 <div class="hint">Local cover image</div>
205 [% IF ( AdlibrisEnabled && normalized_isbn ) %]
206 <div class="cover-image" id="adlibris-coverimg">
207 <a href="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]">
208 <img src="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]" class="adlibris-cover-big" alt="Adlibris cover image" />
210 <div class="hint">Image from Adlibris</div>
214 [% IF ( AmazonCoverImages && normalized_isbn) %]
215 <div class="cover-image" id="amazon-bookcoverimg">
216 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
217 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="Amazon cover image" />
219 <div class="hint">Image from Amazon.com</div>
223 [% IF ( IntranetCoce && CoceProviders && normalized_isbn ) %]
224 [% coce_id = normalized_ean || normalized_isbn %]
225 <div class="cover-image" id="coce-coverimg">
227 <span title="[% biblionumber | url %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></span>
229 <span class="no-image">No cover image available</span>
231 <div class="hint">Image from Coce</div>
235 [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
236 [% SET custom_cover_image_url = biblio.custom_cover_image_url %]
237 [% IF custom_cover_image_url %]
238 <div class="cover-image" id="custom-coverimg">
239 <a class="custom_cover_image" href="[% custom_cover_image_url | url %]">
240 <img id="custom-img" alt="Custom cover image" src="[% custom_cover_image_url | url %]" />
242 <div class="hint">Custom cover image</div>
246 </div> <!-- /.cover-slider -->
247 </div> <!-- /.bookcoverimg.col-xs-3 -->
249 </div> <!-- /.col-xs-* -->
250 [% END # /IF ( AmazonCoverImages, etc ) %]
252 <div id="bibliodetails" class="toptabs">
255 [% IF (SeparateHoldings) %]
257 <a href="#holdings">[% Branches.GetLoggedInBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
260 <a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
264 <a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a>
267 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %]
268 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
269 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
270 [% IF suggestions.count %]<li><a href="#suggestion_details">Suggestion details</a></li>[% END %]
271 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
272 [% IF ( LocalCoverImages ) %]
273 [% IF ( localimages.count || CAN_user_tools_upload_local_cover_images ) %]
275 <a href="#images">Images ([% localimages.count || 0 | html %])</a>
279 [% IF HTML5MediaEnabled && HTML5MediaSets.size %]<li id="media_tab"><a href="#html5media">Play media</a></li>[% END %]
280 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
281 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
283 [% FOREACH tab IN tabs %]
284 <li><a href="#[% tab.id | uri %]">[% tab.title | html %]</a></li>
288 [% items_table_block_iter = 0 %]
289 [% BLOCK items_table %]
290 [% items_table_block_iter = items_table_block_iter + 1 %]
291 <div class="[% tab | html %]_table_table_controls">
292 [% IF (StaffDetailItemSelection) %]
293 | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
294 <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
295 <span class="itemselection_actions">
297 [% IF CAN_user_tools_items_batchdel %]
298 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
300 [% IF CAN_user_tools_items_batchmod %]
301 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
306 <table class="items_table" id="[% tab | html %]_table">
309 [% IF (StaffDetailItemSelection) %]<th id="[% tab | html %]_checkbox" data-colname="[% tab | html %]_checkbox" class="NoSort"></th>[% END %]
310 [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
311 <th id="[% tab | html %]_cover_image" data-colname="[% tab | html %]_cover_image">Cover image</th>
313 [% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %]
314 <th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current library</th>
315 <th id="[% tab | html %]_homebranch" data-colname="[% tab | html %]_homebranch">Home library</th>
316 [% IF ( itemdata_ccode ) %]<th id="[% tab | html %]_ccode" data-colname="[% tab | html %]_ccode">Collection</th>[% END %]
317 <th id="[% tab | html %]_itemcallnumber" data-colname="[% tab | html %]_itemcallnumber">Call number</th>
319 <th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron">Serial enumeration / chronology</th>
321 <th id="[% tab | html %]_status" data-colname="[% tab | html %]_status">Status</th>
322 <th id="[% tab | html %]_lastseen" data-colname="[% tab | html %]_lastseen">Last seen</th>
323 <th id="[% tab | html %]_dateaccessioned" data-colname="[% tab | html %]_dateaccessioned">Date accessioned</th>
324 <th id="[% tab | html %]_datelastborrowed" data-colname="[% tab | html %]_datelastborrowed">Date last borrowed</th>
325 <th id="[% tab | html %]_barcode" data-colname="[% tab | html %]_barcode">Barcode</th>
326 [% IF ( itemdata_uri ) %]<th id="[% tab | html %]_uri" data-colname="[% tab | html %]_uri">URL</th>[% END %]
327 [% IF ( itemdata_copynumber ) %]<th id="[% tab | html %]_copynumber" data-colname="[% tab | html %]_copynumber">Copy number</th>[% END %]
328 [% IF ( itemdata_stocknumber ) %]<th id="[% tab | html %]_stocknumber" data-colname="[% tab | html %]_stocknumber">Inventory number</th>[% END %]
329 [% IF materials %]<th id="[% tab | html %]_materials" data-colname="[% tab | html %]_materials">Materials specified</th>[% END %]
330 [% IF ( itemdata_itemnotes ) %]<th id="[% tab | html %]_itemnotes" data-colname="[% tab | html %]_itemnotes">Public notes</th>[% END %]
331 [% IF ( itemdata_nonpublicnotes ) %]<th id="[% tab | html %]_itemnotes_nonpublic" data-colname="[% tab | html %]_itemnotes_nonpublic">Non-public notes</th>[% END %]
332 [% IF ( hostrecords ) %]<th id="[% tab | html %]_hostrecord" data-colname="[% tab | html %]_hostrecord">Host records</th>[% END %]
333 [% IF ( analyze ) %]<th id="[% tab | html %]_usedin" data-colname="[% tab | html %]_usedin">Used in</th><th></th>[% END %]
334 [% IF ( ShowCourseReserves ) %]<th id="[% tab | html %]_course_reserves" data-colname="[% tab | html %]_course_reserves">Course reserves</th>[% END %]
335 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th id="[% tab | html %]_spinelabel" data-colname="[% tab | html %]_spinelabel" class="NoSort">Spine label</th>[% END %]
336 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th id="[% tab | html %]_actions" data-colname="[% tab | html %]_actions"class="NoSort"> </th>[% END %]
340 [% FOREACH item IN items %]
342 [% IF (StaffDetailItemSelection) %]
343 <td style="text-align:center;vertical-align:middle">
344 <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
347 [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
349 <div class="bookcoverimg">
350 <div class="cover-slider">
351 [% FOREACH image IN item.cover_images %]
352 <div class="cover-image local-coverimg">
353 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?itemnumber=[% image.itemnumber | uri %]&imagenumber=[% image.imagenumber | uri %]">
354 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" />
363 [% IF ( item_level_itypes ) %]
365 [% IF !noItemTypeImages && item.imageurl %]
366 <img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
368 <span class="itypedesc">[% item.translated_description | html %]</span>
371 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
372 <td class="homebranch">
373 <span class="homebranchdesc">[% Branches.GetName(item.homebranch) | html %]</span>
374 <span class="shelvingloc">
376 If permanent location is defined, show description or code and display current location in parentheses. If not, display current location.
377 Note that permanent location is a code, and location may be an authval.
379 [% IF item.permanent_location %]
380 [% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %]
381 [% permloc_authval | html %]
382 [% IF item.location AND item.location != permloc_authval AND item.location != item.permanent_location %]
383 ([% item.location | html %])
386 [% item.location | html %]
390 [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
391 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
393 <td class="enumchron" data-order="[% item.publisheddate | html %]">
394 [% IF ( itemdata_enumchron ) %]
395 [% IF item.enumchron && item.serialseq %]
396 <span class="enum">[% item.enumchron | html %]</span>
397 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
398 <span class="sep"> -- </span>
399 <span class="serialseq">[% item.serialseq | html %]</span>
401 [% ELSIF item.enumchron %]
402 <span class="enum">[% item.enumchron | html %]</span>
403 [% ELSIF item.serialseq %]
404 <span class="serialseq">[% item.serialseq | html %]</span>
406 [% IF ( item.publisheddate ) %]
407 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
415 [% IF item.CheckedOutFor %]
416 [% IF item.onsite_checkout %]
417 <span>Currently in local use
419 <span class="datedue">Checked out
421 [% UNLESS ( item.NOTSAMEBRANCH ) %]
422 [% IF item.onsite_checkout %]
427 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
429 : due [% item.datedue | html %]
431 [% ELSIF ( item.transfertwhen ) %]
432 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
435 [% IF ( item.itemlost ) %]
436 [% IF itemlostloop %]
437 [% FOREACH itemlostloo IN itemlostloop %]
438 [% IF itemlostloo.authorised_value == item.itemlost %]
439 <span class="lost">[% itemlostloo.lib | html %]</span>
443 <span class="lost">Unavailable (lost or missing)</span>
447 [% IF ( item.withdrawn ) %]
448 [% IF itemwithdrawnloop %]
449 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
450 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
451 <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
455 <span class="wdn">Withdrawn</span>
459 [% IF ( item.damaged ) %]
460 [% IF itemdamagedloop %]
461 [% FOREACH itemdamagedloo IN itemdamagedloop %]
462 [% IF itemdamagedloo.authorised_value == item.damaged %]
463 <span class="dmg">[% itemdamagedloo.lib | html %]</span>
467 <span class="dmg">Damaged</span>
471 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
472 <span class="notforloan">Not for loan
473 [% IF ( item.notforloanvalue ) %]
474 <span class="reason">([% item.notforloanvalue | html %])</span>
479 [% SET hold = item.first_hold %]
481 [% IF hold.waitingdate %]
482 <span class="waitingat">Waiting at [% Branches.GetName( hold.branchcode ) | html %][% IF ( hold.desk_id ) %], [% hold.desk.desk_name | html %][% END %] since [% hold.waitingdate | $KohaDates %].</span>
483 [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
484 <span class="heldfor">Hold for:</span>
485 [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
488 <span class="holdonitem">There is an item level hold on this item (priority = [% hold.priority | html %]).</span>
491 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || hold ) %]
492 <span class="available">Available</span>
495 [% IF ( item.restricted ) %]
496 <span class="restricted">([% item.restrictedvalue | html %])</span>
500 <td class="datelastseen" data-order="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</td>
501 <td class="dateaccessioned" data-order="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</td>
502 <td class="datelastborrowed" data-order="[% item.datelastborrowed | html %]">[% item.datelastborrowed | $KohaDates %]</td>
503 <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>
504 [% IF ( itemdata_uri ) %]
505 [% IF item.uri.split(' \| ').size > 1 %]
507 [% FOREACH uri IN item.uri.split(' \| ') %]<a href="[% uri | url %]">[% uri | html %]</a><br>[% END %]
512 <a href="[% item.uri | url %]">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a>
517 [% IF ( itemdata_copynumber ) %]
518 <td class="copynumber">[% item.copynumber | html %]</td>
520 [% IF ( itemdata_stocknumber ) %]
521 <td class="stocknumber">[% item.stocknumber | html %]</td>
524 <td class="materials"> [% item.materials | html %] </td>
526 [% IF ( itemdata_itemnotes ) %]
527 <td><div class="itemnotes">[% item.itemnotes | $raw %]</div></td>
529 [% IF itemdata_nonpublicnotes %]
530 <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
532 [% IF ( hostrecords ) %]
533 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
537 [% IF ( item.countanalytics ) %]
538 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
543 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
546 [% IF ShowCourseReserves %]
548 [% IF item.course_reserves %]
549 [% FOREACH r IN item.course_reserves %]
550 [% IF r.course.enabled == 'yes' %]
552 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
553 [% r.course.course_name | html %]
554 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
555 [% IF r.course.section %] [% r.course.section | html %] [% END %]
556 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
565 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
566 <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>
569 [% IF CAN_user_editcatalogue_edit_items %]
571 [% UNLESS item.cannot_be_edited %]
572 [% IF Koha.Preference('LocalCoverImages') OR Koha.Preference('OPACLocalCoverImages') %]
573 <div class="btn-group">
574 <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><a class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></a>
575 <ul class="dropdown-menu pull-right">
576 <li><a href="/cgi-bin/koha/tools/upload-cover-image.pl?itemnumber=[% item.itemnumber | uri %]&filetype=image"><i class="fa fa-upload"></i> Upload image</a></li>
580 <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>
590 [% END %][%# end of block items_table %]
594 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
595 <span class="results_summary NovelistSelect" style="display:none;">
596 <span class="label">Novelist Select: </span>
597 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
602 [% IF ( showncount ) %]
603 [% PROCESS items_table tab="holdings" items=itemloop %]
605 [% IF ( hiddencount ) %]
606 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
608 [% IF ( debug_display ) %]
611 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
612 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
613 <tr><td>serial</td><td>[% serial | html %]</td></tr>
617 [% IF ( ALTERNATEHOLDINGS ) %]
618 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
619 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
622 <div id="noitems">No physical items for this record</div>
626 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
627 <span class="results_summary NovelistSelect" style="display:none;">
628 <span class="label">Novelist Select: </span>
629 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
634 [% IF (SeparateHoldings) %]
635 <div id="otherholdings">
636 [% IF (otheritemloop.size) %]
637 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
639 <span class="nootheritems">No other items.</span>
644 [% IF ( MARCNOTES || notes ) %]
646 <div id="description">
647 <div class="content_set">
649 [% IF ( MARCNOTES ) %]
650 [% FOREACH MARCNOTE IN MARCNOTES %]
652 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
653 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
655 [% MARCNOTE.marcnote | html | html_line_break %]
661 <p>[% notes | html %]</p>
669 [% IF ( subscriptionsnumber ) %]
670 <div id="subscriptions">
671 <div id="catalogue_detail_subscriptions">
672 <h2>This is a serial subscription</h2>
673 <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
674 [% FOREACH subscription IN subscriptions %]
675 [% IF subscription.branchcode %]
676 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
678 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
679 [% IF ( subscription.location ) %]<p class="subscription_location">Location: [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => subscription.location ) | html %]</p>[% END %]
680 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
681 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
682 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
683 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
684 [% IF ( subscription.latestserials ) %]
685 <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
689 <th>Date arrived</th>
690 <th>Date published</th>
694 [% FOREACH latestserial IN subscription.latestserials %]
696 <td>[% latestserial.serialseq | html %]</td>
697 <td data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
698 <td data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
700 [% IF ( latestserial.status1 ) %]Expected[% END %]
701 [% IF ( latestserial.status2 ) %]Arrived[% END %]
702 [% IF ( latestserial.status3 ) %]Late[% END %]
703 [% IF ( latestserial.status4 ) %]Missing[% END %]
704 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
705 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
706 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
707 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
708 [% IF ( latestserial.status5 ) %]Not issued[% END %]
709 [% IF ( latestserial.status6 ) %]Delete[% END %]
710 [% IF ( latestserial.status7 ) %]Claimed[% END %]
711 [% IF ( latestserial.status8 ) %]Stopped[% END %]
713 <td>[% latestserial.notes | html %]</td>
718 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
724 [% IF Koha.Preference('AcquisitionDetails') %]
725 <div id="acq_details">
726 [% IF orders.count %]
732 <th>Basket group</th>
734 <th>Order number</th>
735 <th>Creation date</th>
736 <th>Receive date</th>
739 <th title="Estimated cost tax incl. while pending, actual cost tax incl. once received">Price</th>
740 <th>Internal note</th>
741 <th>Subscription</th>
742 <th>Subscription call number</th>
746 [% FOR order IN orders %]
747 [% SET basket = order.basket %]
748 [% SET vendor = basket.bookseller %]
751 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
754 [% IF order.invoiceid %]
755 [% IF CAN_user_acquisition %]
756 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
757 title="Invoice detail page">
758 [% order.invoice.invoicenumber | html %]</a>
760 [% order.invoice.invoicenumber | html %]
765 [% IF basket.basketgroupid %]
766 [% SET basket_group = basket.basket_group %]
767 [% IF CAN_user_acquisition_group_manage %]
768 <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>
770 [% basket_group.name | html %] ([% basket_group.id | html %])
774 <td>[% IF CAN_user_acquisition_order_manage %]
775 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
777 [% basket.basketname | html %] ([% basket.basketno | html %])
779 <td>[% order.ordernumber | html %]</td>
780 <td data-order="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</td>
781 <td data-order="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</td>
783 [% SWITCH order.orderstatus %]
785 [% CASE 'ordered' %]Ordered
786 [% CASE 'partial' %]Partial
787 [% CASE 'complete' %]Complete
788 [% CASE 'cancelled' %]Cancelled
791 <td>[% order.quantity | html %]</td>
792 <td>[% IF ( order.unitprice_tax_included > 0 ) %][% order.unitprice_tax_included | $Price %][% ELSE %][% order.ecost_tax_included | $Price %][% END %]
793 <td>[% order.order_internalnote | html %]</td>
795 [% IF order.subscriptionid %]
796 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
800 [% IF order.subscriptionid %]
801 [% order.subscription.callnumber | html %]
809 <span class="noorder">There is no order for this bibliographic record.</span>
814 [% IF suggestions.count %]
815 <div id="suggestion_details">
816 [% IF nb_archived_suggestions > 0 %]
817 <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw %]
819 <table id="suggestions" class="sorted">
822 <th class="NoSort"> </th>
823 <th class="anti-the">Suggestion</th>
824 <th>Suggested by - on</th>
825 <th>Managed by - on</th>
826 <th>Last modification by - on</th>
833 [% FOREACH suggestion IN suggestions %]
835 <td>[% suggestion.suggestionid | html %]</td>
837 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestion.suggestionid | uri %]&op=show" title="suggestion" >
838 [% suggestion.title | html %][% IF ( suggestion.author ) %], by [% suggestion.author | html %][% END %]</a>
840 [% IF ( suggestion.copyrightdate ) %]© [% suggestion.copyrightdate | html %] [% END %]
841 [% IF ( suggestion.volumedesc ) %]; Volume:<em>[% suggestion.volumedesc | html %]</em> [% END %]
842 [% IF ( suggestion.isbn ) %]; ISBN:<em>[% suggestion.isbn | html %]</em> [% END %][% IF ( suggestion.publishercode ) %]; Published by [% suggestion.publishercode | html %] [% END %][% IF ( suggestion.publicationyear ) %] in <em>[% suggestion.publicationyear | html %]</em> [% END %][% IF ( suggestion.place ) %] in <em>[% suggestion.place | html %]</em> [% 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 %]
845 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.suggestedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</a>
846 [% IF suggestion.suggesteddate %] - [% suggestion.suggesteddate | $KohaDates %][% END %]
849 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.managedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.manager %]</a>
850 [% IF suggestion.manageddate %] - [% suggestion.manageddate | $KohaDates %][% END %]
853 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.lastmodificationby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.last_modifier %]</a>
854 [% IF suggestion.lastmodificationdate %] - [% suggestion.lastmodificationdate | $KohaDates %][% END %]
857 [% Branches.GetName( suggestion.branchcode ) | html %]
860 [% suggestion.fund.budget_name | html %]
863 [% IF suggestion.STATUS == 'ASKED' %]Pending
864 [% ELSIF suggestion.STATUS == 'ACCEPTED' %]Accepted
865 [% ELSIF suggestion.STATUS == 'ORDERED' %]Ordered
866 [% ELSIF suggestion.STATUS == 'REJECTED' %]Rejected
867 [% ELSIF suggestion.STATUS == 'CHECKED' %]Checked
868 [% ELSIF suggestion.STATUS == 'AVAILABLE' %]Available
869 [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) %]
870 [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) | html %]
871 [% ELSE %]Status unknown
873 [% IF suggestion.reason %]
874 <br />([% suggestion.reason | html %])
884 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
885 <div id="editions"><h4>Editions</h4>
887 [% 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 %]
888 [% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description | html %][% ELSE %]<img src="[% XISBN.imageurl | html %]" alt="[% XISBN.description | html %]" title="[% XISBN.description | html %]">[% END %]</td>[% END %]
889 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
890 [% IF ( XISBN.publishercode ) %]
891 [% 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 %]
893 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
894 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
898 </table></div>[% END %]
901 [% IF ( LocalCoverImages ) %]
903 [% IF localimages.count %]
904 <p>Click on an image to view it in the image viewer</p>
905 <ul class="thumbnails">
906 [% FOREACH image IN localimages %]
908 <li id="imagenumber-[% image.imagenumber | html %]" class="thumbnail">
909 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image.imagenumber | uri %]">
910 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" />
912 [% IF CAN_user_tools_upload_local_cover_images %]
913 <a href="#" class="remove"><i class="fa fa-trash"></i> Delete image</a>
919 [% ELSE # - No image passed JavaScript takes care %]
920 <span class="noimagesuploaded">No images have been uploaded for this bibliographic record yet.</span>
922 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
923 <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>
929 [% IF ( HTML5MediaEnabled ) %]
930 <div id="html5media">
931 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
933 [% IF HTML5MediaSet.is_youtube %]
934 <iframe id="player" type="text/html" width="640" height="360"
935 src="[% HTML5MediaSet.srcblock | url %]" frameborder="0"></iframe>
937 <[% HTML5MediaParent | html %] controls preload=none>
938 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]"[% HTML5MediaSet.typeblock | html %] />
939 [[% HTML5MediaParent | html %] tag not supported by your browser.]
940 </[% HTML5MediaParent | html %]>
948 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
949 <div id="NovelistSelect" class="novelistSelect">
950 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
954 [% FOREACH tab IN tabs %]
955 <div id="[% tab.id | html %]">
956 [% tab.content | $raw %]
960 </div><!-- /bibliodetails -->
962 <div id="export" style="margin-top: 1em;">
963 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
965 <th>Save record</th> </tr>
966 <tr><td> Select download format: <select name="format">
967 <option value="mods">MODS (XML)</option>
968 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
969 <option value="marcxml">MARCXML</option>
970 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
971 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
972 <input type="submit" name="save" value="Download record" /></td>
975 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
981 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
982 <div class="modal-dialog modal-lg">
983 <div class="modal-content">
984 <div class="modal-header">
985 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
986 <h3 id="marcPreviewLabel">MARC preview</h3>
988 <div class="modal-body">
989 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
991 <div class="modal-footer">
992 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
999 </div> <!-- /.col-sm-10.col-sm-push-2 -->
1001 <div class="col-sm-2 col-sm-pull-10">
1003 [% INCLUDE 'biblio-view-menu.inc' %]
1005 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
1006 </div> <!-- /.row -->
1010 [% MACRO jsinclude BLOCK %]
1011 [% INCLUDE 'catalog-strings.inc' %]
1012 [% Asset.js("js/catalog.js") | $raw %]
1013 [% Asset.js("js/coce.js") | $raw %]
1015 var interface = "[% interface | html %]";
1016 var theme = "[% theme | html %]";
1017 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
1018 function verify_images() {
1019 // Loop over each container in the template which contains covers
1020 $(".cover-slider").each(function(){
1021 $(this).find(".cover-image").each( function( index ){
1023 // Find the image in the container
1024 var img = div.find("img")[0];
1025 if( $(img).length > 0 ){
1026 if( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ){
1027 // No image loaded in the container. Remove the slide
1030 // All slides start hidden. If this is the first one, show it.
1034 // Check if Amazon image is present
1035 if ( div.attr("id") == "amazon-bookcoverimg" ) {
1038 if ((w == 1) || (h == 1)) {
1039 // Amazon returned single-pixel placeholder
1040 // Remove the container
1044 if( div.attr("id") == "custom-img" ){
1045 if ( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ) {
1046 // No image was loaded via the CustomCoverImages system preference
1047 // Remove the container
1051 if( div.attr("id") == "coce-coverimg" ){
1052 // Identify which service's image is being loaded by Coce
1053 if( $(img).attr("src").indexOf('amazon.com') >= 0 ){
1054 div.find(".hint").html(_("Coce image from Amazon.com"));
1055 } else if( $(img).attr("src").indexOf('google.com') >= 0 ){
1056 div.find(".hint").html(_("Coce image from Google Books"));
1057 } else if( $(img).attr("src").indexOf('openlibrary.org') >= 0 ){
1058 div.find(".hint").html(_("Coce image from Open Library"));
1066 $(".cover-slider").each(function(){
1067 var coverSlide = this;
1068 var coverImages = $(this).find(".cover-image");
1069 if( coverImages.length > 1 ){
1070 coverImages.each(function( index ){
1071 // If more that one image is present, add a navigation link
1072 // for activating the slide
1073 var covernav = $("<a href=\"#\" data-num=\"" + index + "\" class=\"cover-nav\"></a>");
1075 // Set the first navigation link as active
1076 $(covernav).addClass("nav-active");
1078 $(covernav).html("<i class=\"fa fa-circle\"></i>");
1079 $(coverSlide).append( covernav );
1083 if( $(coverSlide).find(".cover-image:visible").length < 1 ){
1084 $(coverSlide).remove();
1086 $(coverSlide).addClass("cover-slides");
1090 $("#editions img").each(function(i){
1091 if ( this.src.indexOf('amazon.com') >= 0 ) {
1094 if ((w == 1) || (h == 1)) {
1095 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1096 } else if ( (this.complete != null) && (!this.complete) || this.naturalHeight == 0 ) {
1097 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1103 function removeLocalImage(imagenumber) {
1104 var thumbnail = $("#imagenumber-" + imagenumber );
1105 var copy = thumbnail.html();
1106 thumbnail.find("img").css("opacity", ".2");
1107 thumbnail.find("a.remove").html("<img style='display:inline-block' src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' />");
1109 url: "/cgi-bin/koha/svc/cover_images?action=delete&imagenumber=" + imagenumber,
1110 success: function(data) {
1111 $(data).each( function(i) {
1112 if ( this.deleted == 1 ) {
1115 thumbnail.html( copy );
1116 alert(_("An error occurred on deleting this image"));
1118 if ( $('ul.thumbnails > li').length == 0 ) {
1119 showNoImageMessage();
1123 error: function(data) {
1124 thumbnail.html( copy );
1125 alert(_("An error occurred on deleting this image"));
1130 function showNoImageMessage() {
1131 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
1132 no_images_msg = '<p>' + no_images_msg + '</p>';
1133 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
1134 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>");
1135 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
1137 $('#images').html(no_images_msg);
1140 [% IF StaffDetailItemSelection %]
1141 function itemSelectionBuildDeleteLink(div) {
1142 var itemnumbers = new Array();
1143 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
1144 itemnumbers.push($(this).val());
1146 if (itemnumbers.length > 0) {
1147 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
1148 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
1149 url += '&biblionumber=[% biblionumber | uri %]';
1150 url += '&src=CATALOGUING';
1151 $('a.itemselection_action_delete').attr('href', url);
1158 function itemSelectionBuildModifyLink(div) {
1159 var itemnumbers = new Array();
1160 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
1161 itemnumbers.push($(this).val());
1163 if (itemnumbers.length > 0) {
1164 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
1165 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
1166 url += '&biblionumber=[% biblionumber | uri %]';
1167 url += '&src=CATALOGUING';
1168 $('a.itemselection_action_modify').attr('href', url);
1175 function itemSelectionBuildActionLinks(tab) {
1176 var div = $("#" + tab);
1177 var delete_link_ok = itemSelectionBuildDeleteLink(div);
1178 var modify_link_ok = itemSelectionBuildModifyLink(div);
1179 if (modify_link_ok || delete_link_ok) {
1180 $('.itemselection_actions', div).show();
1182 $('.itemselection_actions', div).hide();
1186 $(document).ready(function() {
1187 $('table.items_table').each(function() {
1188 var div = $(this).parent().attr("id");
1189 itemSelectionBuildActionLinks(div);
1192 $("input[name='itemnumber'][type='checkbox']").change(function() {
1193 var div = $(this).parents('table').parent().parent().attr("id");
1194 itemSelectionBuildActionLinks(div);
1197 $(".SelectAll").on("click",function(e){
1199 var tab = $(this).data("tab");
1200 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
1201 itemSelectionBuildActionLinks(tab);
1204 $(".ClearAll").on("click",function(e){
1206 var tab = $(this).data("tab");
1207 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
1208 itemSelectionBuildActionLinks(tab);
1213 $(document).ready(function() {
1214 $('#bibliodetails').tabs();
1215 [% IF count == 0 and ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) %]
1216 $('#bibliodetails').tabs("option", "active", $('#media_tab').index() );
1218 $('#search-form').focus();
1219 $('.thumbnails > li > .remove').click(function() {
1220 var result = confirm(_("Are you sure you want to delete this cover image?"));
1222 if ( result == true ) {
1223 var imagenumber = $(this).parent().attr('id').split('-')[1];
1224 removeLocalImage(imagenumber);
1229 [% IF ( IntranetCoce && CoceProviders ) %]
1230 KOHA.coce.getURL('[% CoceHost | html %]', '[% CoceProviders | html %]');
1233 $("body").on("click",".previewMARC", function(e){
1235 var page = $(this).attr("href");
1236 $("#marcPreview .modal-body").load(page + " table");
1237 $('#marcPreview').modal({show:true});
1239 $("#marcPreview").on("hidden.bs.modal", function(){
1240 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1242 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1243 novSelect.loadContentForQuery({
1244 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1245 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1248 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
1249 '[% Koha.Preference('NovelistSelectPassword') | html %]',
1251 if ( d.length > 0 ){ //If no content
1252 $(".NovelistSelect").show();
1256 $(".print-label").on("click", function(e){
1258 link = $(this).attr("href");
1259 openWindow(link,"Print spine label",400,400);
1261 $(".cover-slider").on("click",".cover-nav", function(e){
1263 var cover_slider = $(this).parent();
1264 // Adding click handler for cover image navigation links
1265 var num = $(this).data("num");
1266 $(cover_slider).find(".cover-nav").removeClass("nav-active");
1267 $(this).addClass("nav-active");
1268 $(cover_slider).find(".cover-image").hide();
1269 $(cover_slider).find(".cover-image").eq( num ).show();
1273 $(window).load(function() {
1277 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1278 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1280 [% INCLUDE 'datatables.inc' %]
1281 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
1282 [% INCLUDE 'columns_settings.inc' %]
1283 [% Asset.js("js/browser.js") | $raw %]
1284 [% Asset.js("js/table_filters.js") | $raw %]
1287 browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
1290 $(document).ready(function() {
1291 var ids = ['holdings_table', 'otherholdings_table'];
1292 var columns_settings = [ [% TablesSettings.GetColumns('catalogue', 'detail','holdings_table','json') | $raw %], [% TablesSettings.GetColumns('catalogue', 'detail','otherholdings_table','json') | $raw %] ];
1293 var has_images = ["[% itemloop_has_images | html %]", "[% otheritemloop_has_images | html %]"];
1294 for (var i in ids) {
1296 if ( !has_images[i] ) { // remove the cover_image column
1297 columns_settings.splice(1,1);
1299 var dt_parameters = {
1302 'bAutoWidth': false,
1303 "bKohaColumnsUseNames": true,
1304 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1306 var table = KohaTable(id, dt_parameters, columns_settings[i], 'with_filters');
1309 [% IF Koha.Preference('AcquisitionDetails') %]
1310 var columns_settings = [% TablesSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
1311 var acquisitiondetails_table = KohaTable("orders", {
1312 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1314 'bAutoWidth': false,
1315 "aaSorting": [[ 4, "desc" ]],
1316 }, columns_settings);
1319 [% IF suggestions.count %]
1320 $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
1322 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1323 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
1325 "sPaginationType": "full"
1330 $(document).ready(function() {
1331 var search_index = localStorage.getItem("cat_search_pulldown_selection");
1332 var search_value = localStorage.getItem("searchbox_value");
1333 if ( search_index ){ $('#cat-search-block select.advsearch').val(search_index)};
1334 if ( search_value ){ $('#cat-search-block #search-form').val(search_value)};
1338 [% INCLUDE 'intranet-bottom.inc' %]