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 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> ›
51 [% IF ( unknownbiblionumber ) %]
54 [% INCLUDE 'biblio-title.inc' link = 1 %] › Details
58 <div class="main container-fluid">
60 <div class="col-sm-10 col-sm-push-2">
64 [% IF ( unknownbiblionumber ) %]
65 <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
68 [% IntranetCoce = Koha.Preference('IntranetCoce') %]
69 [% CoceProviders = Koha.Preference('CoceProviders') %]
70 [% CoceHost = Koha.Preference('CoceHost') %]
72 [% INCLUDE 'cat-toolbar.inc' %]
73 [% IF decoding_error %]
75 <span class="biberror">
76 There is an error with this bibliographic record, the view may be degraded.</span>
77 <span class="error"><br/> Error: [% decoding_error | html %]</span>
81 <!-- COinS / OpenURL -->
82 <span class="Z3988" title="[% ocoins | html %]"></span>
85 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
86 [% IF ( XSLTDetailsDisplay ) %]
87 <div id="catalogue_detail_biblio" class="col-xs-9">
89 <div id="catalogue_detail_biblio" class="col-xs-9">
92 <div id="catalogue_detail_biblio" class="col-xs-12">
97 [% IF shelves.count %]
98 <span class="results_summary"><span class="label">Lists that include this title: </span>
99 [% FOREACH s IN shelves %]
100 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
101 [% IF ( loop.last ) %][% ELSE %]|[% END %]
105 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
106 <span class="results_summary"><span class="label">Tags:</span>
107 [% FOREACH TagLoo IN TagLoop %]
108 [% IF ( CAN_user_tools_moderate_tags ) %]
109 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
111 [% TagLoo.term | html %]
113 <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
117 <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 !item_level_itypes || Koha.Preference("BiblioItemtypeInfo") %]
119 <span class="results_summary itemtype"><span class="label">Itemtype:</span>
120 [% IF ( !noItemTypeImages && imageurl ) %]
121 <img src="[% imageurl | html %]" alt="" />
123 [% IF ( description ) %]
124 [% description | html %]
126 [% itemtype | html %]
131 [% IF ( holdcount ) %]
132 <span class="results_summary">
133 <span class="label">Holds:</span>
134 <span class="number_box">
135 [% IF CAN_user_reserveforothers_place_holds %]
136 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a>
138 <span>[% holdcount | html %]</span>
144 [% IF illrequests.count %]
145 <span class="results_summary">
146 <span class="label">ILL requests:</span>
147 [% IF CAN_user_ill %]
148 [% FOREACH ill IN illrequests %]
149 <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 %]
152 [% FOREACH ill IN illrequests %]
153 <span>Request [% ill.illrequest_id | html %]</span>[% IF ! loop.last %], [% END %]
159 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
160 <span class="results_summary">
161 <span class="label">Article requests:</span>
162 <span class="number_box">
163 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | uri %]">[% article_requests_count | html %]</a>
168 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
170 <div class="col-xs-3 bookcoverimg">
171 <div id="biblio-cover-slider" class="cover-slider">
172 [% IF ( LocalCoverImages ) %]
173 [% IF localimages.count %]
174 [% FOREACH image IN localimages %]
175 <div class="cover-image local-coverimg">
176 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image.imagenumber | uri %]">
177 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" />
179 <div class="hint">Local cover image</div>
185 [% IF ( AdlibrisEnabled && normalized_isbn ) %]
186 <div class="cover-image" id="adlibris-coverimg">
187 <a href="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]">
188 <img src="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]" class="adlibris-cover-big" alt="Adlibris cover image" />
190 <div class="hint">Image from Adlibris</div>
194 [% IF ( AmazonCoverImages && normalized_isbn) %]
195 <div class="cover-image" id="amazon-bookcoverimg">
196 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
197 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="Amazon cover image" />
199 <div class="hint">Image from Amazon.com</div>
203 [% IF ( IntranetCoce && CoceProviders && normalized_isbn ) %]
204 [% coce_id = normalized_ean || normalized_isbn %]
205 <div class="cover-image" id="coce-coverimg">
207 <span title="[% biblionumber | url %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></span>
209 <span class="no-image">No cover image available</span>
211 <div class="hint">Image from Coce</div>
215 [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
216 [% SET custom_cover_image_url = biblio.custom_cover_image_url %]
217 [% IF custom_cover_image_url %]
218 <div class="cover-image" id="custom-coverimg">
219 <a class="custom_cover_image" href="[% custom_cover_image_url | url %]">
220 <img id="custom-img" alt="Custom cover image" src="[% custom_cover_image_url | url %]" />
222 <div class="hint">Custom cover image</div>
226 </div> <!-- /.cover-slider -->
227 </div> <!-- /.bookcoverimg.col-xs-3 -->
229 </div> <!-- /.col-xs-* -->
230 [% END # /IF ( AmazonCoverImages, etc ) %]
232 <div id="bibliodetails" class="toptabs">
235 [% IF (SeparateHoldings) %]
237 <a href="#holdings">[% Branches.GetLoggedInBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
240 <a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
244 <a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a>
247 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %]
248 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
249 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
250 [% IF suggestions.count %]<li><a href="#suggestion_details">Suggestion details</a></li>[% END %]
251 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
252 [% IF ( LocalCoverImages ) %]
253 [% IF ( localimages.count || CAN_user_tools_upload_local_cover_images ) %]
255 <a href="#images">Images ([% localimages.count || 0 | html %])</a>
259 [% IF HTML5MediaEnabled && HTML5MediaSets.size %]<li id="media_tab"><a href="#html5media">Play media</a></li>[% END %]
260 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
261 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
263 [% FOREACH tab IN tabs %]
264 <li><a href="#[% tab.id | uri %]">[% tab.title | html %]</a></li>
268 [% items_table_block_iter = 0 %]
269 [% BLOCK items_table %]
270 [% items_table_block_iter = items_table_block_iter + 1 %]
271 <div class="[% tab | html %]_table_table_controls">
272 [% IF (StaffDetailItemSelection) %]
273 | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
274 <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
275 <span class="itemselection_actions">
277 [% IF CAN_user_tools_items_batchdel %]
278 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
280 [% IF CAN_user_tools_items_batchmod %]
281 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
286 <table class="items_table" id="[% tab | html %]_table">
289 [% IF (StaffDetailItemSelection) %]<th id="[% tab | html %]_checkbox" data-colname="[% tab | html %]_checkbox" class="NoSort"></th>[% END %]
290 [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
291 <th id="[% tab | html %]_cover_image" data-colname="[% tab | html %]_cover_image">Cover image</th>
293 [% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %]
294 <th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current library</th>
295 <th id="[% tab | html %]_homebranch" data-colname="[% tab | html %]_homebranch">Home library</th>
296 [% IF ( itemdata_ccode ) %]<th id="[% tab | html %]_ccode" data-colname="[% tab | html %]_ccode">Collection</th>[% END %]
297 <th id="[% tab | html %]_itemcallnumber" data-colname="[% tab | html %]_itemcallnumber">Call number</th>
299 [% IF itemdata_publisheddate #If there is at least one published date, use it for sorting%]
300 <th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron" class="title-string">Serial enumeration / chronology</th>
302 <th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron">Serial enumeration / chronology</th>
305 <th id="[% tab | html %]_status" data-colname="[% tab | html %]_status">Status</th>
306 <th id="[% tab | html %]_lastseen" data-colname="[% tab | html %]_lastseen" class="title-string">Last seen</th>
307 <th id="[% tab | html %]_dateaccessioned" data-colname="[% tab | html %]_dateaccessioned" class="title-string">Date accessioned</th>
308 <th id="[% tab | html %]_datelastborrowed" data-colname="[% tab | html %]_datelastborrowed" class="title-string">Date last borrowed</th>
309 <th id="[% tab | html %]_barcode" data-colname="[% tab | html %]_barcode">Barcode</th>
310 [% IF ( itemdata_uri ) %]<th id="[% tab | html %]_uri" data-colname="[% tab | html %]_uri">URL</th>[% END %]
311 [% IF ( itemdata_copynumber ) %]<th id="[% tab | html %]_copynumber" data-colname="[% tab | html %]_copynumber">Copy number</th>[% END %]
312 [% IF ( itemdata_stocknumber ) %]<th id="[% tab | html %]_stocknumber" data-colname="[% tab | html %]_stocknumber">Inventory number</th>[% END %]
313 [% IF materials %]<th id="[% tab | html %]_materials" data-colname="[% tab | html %]_materials">Materials specified</th>[% END %]
314 [% IF ( itemdata_itemnotes ) %]<th id="[% tab | html %]_itemnotes" data-colname="[% tab | html %]_itemnotes">Public notes</th>[% END %]
315 [% IF ( itemdata_nonpublicnotes ) %]<th id="[% tab | html %]_itemnotes_nonpublic" data-colname="[% tab | html %]_itemnotes_nonpublic">Non-public notes</th>[% END %]
316 [% IF ( hostrecords ) %]<th id="[% tab | html %]_hostrecord" data-colname="[% tab | html %]_hostrecord">Host records</th>[% END %]
317 [% IF ( analyze ) %]<th id="[% tab | html %]_usedin" data-colname="[% tab | html %]_usedin">Used in</th><th></th>[% END %]
318 [% IF ( ShowCourseReserves ) %]<th id="[% tab | html %]_course_reserves" data-colname="[% tab | html %]_course_reserves">Course reserves</th>[% END %]
319 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th id="[% tab | html %]_spinelabel" data-colname="[% tab | html %]_spinelabel" class="NoSort">Spine label</th>[% END %]
320 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th id="[% tab | html %]_actions" data-colname="[% tab | html %]_actions"class="NoSort"> </th>[% END %]
324 [% FOREACH item IN items %]
326 [% IF (StaffDetailItemSelection) %]
327 <td style="text-align:center;vertical-align:middle">
328 <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
331 [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
333 <div class="bookcoverimg">
334 <div class="cover-slider">
335 [% FOREACH image IN item.cover_images %]
336 <div class="cover-image local-coverimg">
337 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?itemnumber=[% image.itemnumber | uri %]&imagenumber=[% image.imagenumber | uri %]">
338 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" />
347 [% IF ( item_level_itypes ) %]
349 [% IF !noItemTypeImages && item.imageurl %]
350 <img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
352 <span class="itypedesc">[% item.translated_description | html %]</span>
355 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
356 <td class="homebranch">
357 <span class="homebranchdesc">[% Branches.GetName(item.homebranch) | html %]</span>
359 <span class="shelvingloc">
361 If permanent location is defined, show description or code and display current location in parentheses. If not, display current location.
362 Note that permanent location is a code, and location may be an authval.
364 [% IF item.permanent_location %]
365 [% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %]
366 [% permloc_authval | html %]
367 [% IF item.location AND item.location != permloc_authval AND item.location != item.permanent_location %]
368 ([% item.location | html %])
371 [% item.location | html %]
375 [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
376 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
378 <td class="enumchron">
379 [% IF itemdata_publisheddate %]<span title="[% item.publisheddate | html %]">[% END %]
380 [% IF ( itemdata_enumchron ) %]
381 [% IF item.enumchron && item.serialseq %]
382 <span class="enum">[% item.enumchron | html %]</span>
383 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
384 <span class="sep"> -- </span>
385 <span class="serialseq">[% item.serialseq | html %]</span>
387 [% ELSIF item.enumchron %]
388 <span class="enum">[% item.enumchron | html %]</span>
389 [% ELSIF item.serialseq %]
390 <span class="serialseq">[% item.serialseq | html %]</span>
392 [% IF ( item.publisheddate ) %]
393 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
401 [% IF item.CheckedOutFor %]
402 [% IF item.onsite_checkout %]
403 <span>Currently in local use
405 <span class="datedue">Checked out
407 [% UNLESS ( item.NOTSAMEBRANCH ) %]
408 [% IF item.onsite_checkout %]
413 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
415 : due [% item.datedue | html %]
417 [% ELSIF ( item.transfertwhen ) %]
418 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
421 [% IF ( item.itemlost ) %]
422 [% IF itemlostloop %]
423 [% FOREACH itemlostloo IN itemlostloop %]
424 [% IF itemlostloo.authorised_value == item.itemlost %]
425 <span class="lost">[% itemlostloo.lib | html %]</span>
429 <span class="lost">Unavailable (lost or missing)</span>
433 [% IF ( item.withdrawn ) %]
434 [% IF itemwithdrawnloop %]
435 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
436 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
437 <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
441 <span class="wdn">Withdrawn</span>
445 [% IF ( item.damaged ) %]
446 [% IF itemdamagedloop %]
447 [% FOREACH itemdamagedloo IN itemdamagedloop %]
448 [% IF itemdamagedloo.authorised_value == item.damaged %]
449 <span class="dmg">[% itemdamagedloo.lib | html %]</span>
453 <span class="dmg">Damaged</span>
457 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
458 <span class="notforloan">Not for loan
459 [% IF ( item.notforloanvalue ) %]
460 <span class="reason">([% item.notforloanvalue | html %])</span>
465 [% SET hold = item.first_hold %]
467 [% IF hold.waitingdate %]
468 <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>
469 [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
470 <span class="heldfor">Hold for:</span>
471 [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
474 <span class="holdonitem">There is an item level hold on this item (priority = [% hold.priority | html %]).</span>
477 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || hold ) %]
478 <span class="available">Available</span>
481 [% IF ( item.restricted ) %]
482 <span class="restricted">([% item.restrictedvalue | html %])</span>
486 <td class="datelastseen"><span title="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</span></td>
487 <td class="dateaccessioned"><span title="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</span></td>
488 <td class="datelastborrowed"><span title="[% item.datelastborrowed | html %]">[% item.datelastborrowed | $KohaDates %]</span></td>
489 <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>
490 [% IF ( itemdata_uri ) %]
491 [% IF item.uri.split(' \| ').size > 1 %]
493 [% FOREACH uri IN item.uri.split(' \| ') %]<a href="[% uri | url %]">[% uri | html %]</a><br>[% END %]
498 <a href="[% item.uri | url %]">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a>
503 [% IF ( itemdata_copynumber ) %]
504 <td class="copynumber">[% item.copynumber | html %]</td>
506 [% IF ( itemdata_stocknumber ) %]
507 <td class="stocknumber">[% item.stocknumber | html %]</td>
510 <td class="materials"> [% item.materials | html %] </td>
512 [% IF ( itemdata_itemnotes ) %]
513 <td><div class="itemnotes">[% item.itemnotes | $raw %]</div></td>
515 [% IF itemdata_nonpublicnotes %]
516 <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
518 [% IF ( hostrecords ) %]
519 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
523 [% IF ( item.countanalytics ) %]
524 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
529 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
532 [% IF ShowCourseReserves %]
534 [% IF item.course_reserves %]
535 [% FOREACH r IN item.course_reserves %]
536 [% IF r.course.enabled == 'yes' %]
538 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
539 [% r.course.course_name | html %]
540 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
541 [% IF r.course.section %] [% r.course.section | html %] [% END %]
542 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
551 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
552 <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>
555 [% IF CAN_user_editcatalogue_edit_items %]
557 [% UNLESS item.cannot_be_edited %]
558 [% IF Koha.Preference('LocalCoverImages') OR Koha.Preference('OPACLocalCoverImages') %]
559 <div class="btn-group">
560 <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>
561 <ul class="dropdown-menu pull-right">
562 <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>
566 <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>
576 [% END %][%# end of block items_table %]
580 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
581 <span class="results_summary NovelistSelect" style="display:none;">
582 <span class="label">Novelist Select: </span>
583 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
588 [% IF ( showncount ) %]
589 [% PROCESS items_table tab="holdings" items=itemloop %]
591 [% IF ( hiddencount ) %]
592 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
594 [% IF ( debug_display ) %]
597 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
598 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
599 <tr><td>serial</td><td>[% serial | html %]</td></tr>
603 [% IF ( ALTERNATEHOLDINGS ) %]
604 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
605 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
608 <div id="noitems">No physical items for this record</div>
612 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
613 <span class="results_summary NovelistSelect" style="display:none;">
614 <span class="label">Novelist Select: </span>
615 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
620 [% IF (SeparateHoldings) %]
621 <div id="otherholdings">
622 [% IF (otheritemloop.size) %]
623 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
625 <span class="nootheritems">No other items.</span>
630 [% IF ( MARCNOTES || notes ) %]
632 <div id="description">
633 <div class="content_set">
635 [% IF ( MARCNOTES ) %]
636 [% FOREACH MARCNOTE IN MARCNOTES %]
638 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
639 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
641 [% MARCNOTE.marcnote | html | html_line_break %]
647 <p>[% notes | html %]</p>
655 [% IF ( subscriptionsnumber ) %]
656 <div id="subscriptions">
657 <div id="catalogue_detail_subscriptions">
658 <h2>This is a serial subscription</h2>
659 <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
660 [% FOREACH subscription IN subscriptions %]
661 [% IF subscription.branchcode %]
662 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
664 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
665 [% IF ( subscription.location ) %]<p class="subscription_location">Location: [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => subscription.location ) | html %]</p>[% END %]
666 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
667 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
668 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
669 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
670 [% IF ( subscription.latestserials ) %]
671 <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
675 <th>Date arrived</th>
676 <th>Date published</th>
680 [% FOREACH latestserial IN subscription.latestserials %]
682 <td>[% latestserial.serialseq | html %]</td>
683 <td><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td>
684 <td><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td>
686 [% IF ( latestserial.status1 ) %]Expected[% END %]
687 [% IF ( latestserial.status2 ) %]Arrived[% END %]
688 [% IF ( latestserial.status3 ) %]Late[% END %]
689 [% IF ( latestserial.status4 ) %]Missing[% END %]
690 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
691 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
692 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
693 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
694 [% IF ( latestserial.status5 ) %]Not issued[% END %]
695 [% IF ( latestserial.status6 ) %]Delete[% END %]
696 [% IF ( latestserial.status7 ) %]Claimed[% END %]
697 [% IF ( latestserial.status8 ) %]Stopped[% END %]
699 <td>[% latestserial.notes | html %]</td>
704 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
710 [% IF Koha.Preference('AcquisitionDetails') %]
711 <div id="acq_details">
712 [% IF orders.count %]
718 <th>Basket group</th>
720 <th>Order number</th>
721 <th class="title-string">Creation date</th>
722 <th class="title-string">Receive date</th>
725 <th title="Estimated cost tax incl. while pending, actual cost tax incl. once received">Price</th>
726 <th>Internal note</th>
727 <th>Subscription</th>
728 <th>Subscription callnumber</th>
732 [% FOR order IN orders %]
733 [% SET basket = order.basket %]
734 [% SET vendor = basket.bookseller %]
737 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
740 [% IF order.invoiceid %]
741 [% IF CAN_user_acquisition %]
742 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
743 title="Invoice detail page">
744 [% order.invoice.invoicenumber | html %]</a>
746 [% order.invoice.invoicenumber | html %]
751 [% IF basket.basketgroupid %]
752 [% SET basket_group = basket.basket_group %]
753 [% IF CAN_user_acquisition_group_manage %]
754 <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>
756 [% basket_group.name | html %] ([% basket_group.id | html %])
760 <td>[% IF CAN_user_acquisition_order_manage %]
761 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
763 [% basket.basketname | html %] ([% basket.basketno | html %])
765 <td>[% order.ordernumber | html %]</td>
766 <td><span title="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</span></td>
767 <td><span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</span></td>
769 [% SWITCH order.orderstatus %]
771 [% CASE 'ordered' %]Ordered
772 [% CASE 'partial' %]Partial
773 [% CASE 'complete' %]Complete
774 [% CASE 'cancelled' %]Cancelled
777 <td>[% order.quantity | html %]</td>
778 <td>[% IF ( order.unitprice_tax_included > 0 ) %][% order.unitprice_tax_included | $Price %][% ELSE %][% order.ecost_tax_included | $Price %][% END %]
779 <td>[% order.order_internalnote | html %]</td>
781 [% IF order.subscriptionid %]
782 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
786 [% IF order.subscriptionid %]
787 [% order.subscription.callnumber | html %]
795 <span class="noorder">There is no order for this bibliographic record.</span>
800 [% IF suggestions.count %]
801 <div id="suggestion_details">
802 [% IF nb_archived_suggestions > 0 %]
803 <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw %]
805 <table id="suggestions" class="sorted">
808 <th class="NoSort"> </th>
809 <th class="anti-the">Suggestion</th>
810 <th>Suggested by - on</th>
811 <th>Managed by - on</th>
812 <th>Last modification by - on</th>
819 [% FOREACH suggestion IN suggestions %]
821 <td>[% suggestion.suggestionid | html %]</td>
823 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestion.suggestionid | uri %]&op=show" title="suggestion" >
824 [% suggestion.title | html %][% IF ( suggestion.author ) %], by [% suggestion.author | html %][% END %]</a>
826 [% IF ( suggestion.copyrightdate ) %]© [% suggestion.copyrightdate | html %] [% END %]
827 [% IF ( suggestion.volumedesc ) %]; Volume:<em>[% suggestion.volumedesc | html %]</em> [% END %]
828 [% 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 %]
831 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.suggestedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</a>
832 [% IF suggestion.suggesteddate %] - [% suggestion.suggesteddate | $KohaDates %][% END %]
835 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.managedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.manager %]</a>
836 [% IF suggestion.manageddate %] - [% suggestion.manageddate | $KohaDates %][% END %]
839 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.lastmodificationby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.last_modifier %]</a>
840 [% IF suggestion.lastmodificationdate %] - [% suggestion.lastmodificationdate | $KohaDates %][% END %]
843 [% Branches.GetName( suggestion.branchcode ) | html %]
846 [% suggestion.fund.budget_name | html %]
849 [% IF suggestion.STATUS == 'ASKED' %]Pending
850 [% ELSIF suggestion.STATUS == 'ACCEPTED' %]Accepted
851 [% ELSIF suggestion.STATUS == 'ORDERED' %]Ordered
852 [% ELSIF suggestion.STATUS == 'REJECTED' %]Rejected
853 [% ELSIF suggestion.STATUS == 'CHECKED' %]Checked
854 [% ELSIF suggestion.STATUS == 'AVAILABLE' %]Available
855 [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) %]
856 [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) | html %]
857 [% ELSE %]Status unknown
859 [% IF suggestion.reason %]
860 <br />([% suggestion.reason | html %])
870 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
871 <div id="editions"><h4>Editions</h4>
873 [% 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 %]
874 [% 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 %]
875 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
876 [% IF ( XISBN.publishercode ) %]
877 [% 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 %]
879 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
880 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
884 </table></div>[% END %]
887 [% IF ( LocalCoverImages ) %]
889 [% IF localimages.count %]
890 <p>Click on an image to view it in the image viewer</p>
891 <ul class="thumbnails">
892 [% FOREACH image IN localimages %]
894 <li id="imagenumber-[% image.imagenumber | html %]" class="thumbnail">
895 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image.imagenumber | uri %]">
896 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" />
898 [% IF CAN_user_tools_upload_local_cover_images %]
899 <a href="#" class="remove"><i class="fa fa-trash"></i> Delete image</a>
905 [% ELSE # - No image passed JavaScript takes care %]
906 <span class="noimagesuploaded">No images have been uploaded for this bibliographic record yet.</span>
908 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
909 <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>
915 [% IF ( HTML5MediaEnabled ) %]
916 <div id="html5media">
917 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
919 [% IF HTML5MediaSet.is_youtube %]
920 <iframe id="player" type="text/html" width="640" height="360"
921 src="[% HTML5MediaSet.srcblock | url %]" frameborder="0"></iframe>
923 <[% HTML5MediaParent | html %] controls preload=none>
924 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]"[% HTML5MediaSet.typeblock | html %] />
925 [[% HTML5MediaParent | html %] tag not supported by your browser.]
926 </[% HTML5MediaParent | html %]>
934 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
935 <div id="NovelistSelect" class="novelistSelect">
936 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
940 [% FOREACH tab IN tabs %]
941 <div id="[% tab.id | html %]">
942 [% tab.content | $raw %]
946 </div><!-- /bibliodetails -->
948 <div id="export" style="margin-top: 1em;">
949 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
951 <th>Save record</th> </tr>
952 <tr><td> Select download format: <select name="format">
953 <option value="mods">MODS (XML)</option>
954 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
955 <option value="marcxml">MARCXML</option>
956 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
957 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
958 <input type="submit" name="save" value="Download record" /></td>
961 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
967 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
968 <div class="modal-dialog modal-lg">
969 <div class="modal-content">
970 <div class="modal-header">
971 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
972 <h3 id="marcPreviewLabel">MARC preview</h3>
974 <div class="modal-body">
975 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
977 <div class="modal-footer">
978 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
985 </div> <!-- /.col-sm-10.col-sm-push-2 -->
987 <div class="col-sm-2 col-sm-pull-10">
989 [% INCLUDE 'biblio-view-menu.inc' %]
991 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
992 </div> <!-- /.row -->
996 [% MACRO jsinclude BLOCK %]
997 [% INCLUDE 'catalog-strings.inc' %]
998 [% Asset.js("js/catalog.js") | $raw %]
999 [% Asset.js("js/coce.js") | $raw %]
1001 var interface = "[% interface | html %]";
1002 var theme = "[% theme | html %]";
1003 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
1004 function verify_images() {
1005 // Loop over each container in the template which contains covers
1006 $(".cover-slider").each(function(){
1007 $(this).find(".cover-image").each( function( index ){
1009 // Find the image in the container
1010 var img = div.find("img")[0];
1011 if( $(img).length > 0 ){
1012 if( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ){
1013 // No image loaded in the container. Remove the slide
1016 // All slides start hidden. If this is the first one, show it.
1020 // Check if Amazon image is present
1021 if ( div.attr("id") == "amazon-bookcoverimg" ) {
1024 if ((w == 1) || (h == 1)) {
1025 // Amazon returned single-pixel placeholder
1026 // Remove the container
1030 if( div.attr("id") == "custom-img" ){
1031 if ( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ) {
1032 // No image was loaded via the CustomCoverImages system preference
1033 // Remove the container
1037 if( div.attr("id") == "coce-coverimg" ){
1038 // Identify which service's image is being loaded by Coce
1039 if( $(img).attr("src").indexOf('amazon.com') >= 0 ){
1040 div.find(".hint").html(_("Coce image from Amazon.com"));
1041 } else if( $(img).attr("src").indexOf('google.com') >= 0 ){
1042 div.find(".hint").html(_("Coce image from Google Books"));
1043 } else if( $(img).attr("src").indexOf('openlibrary.org') >= 0 ){
1044 div.find(".hint").html(_("Coce image from Open Library"));
1052 $(".cover-slider").each(function(){
1053 var coverSlide = this;
1054 var coverImages = $(this).find(".cover-image");
1055 if( coverImages.length > 1 ){
1056 coverImages.each(function( index ){
1057 // If more that one image is present, add a navigation link
1058 // for activating the slide
1059 var covernav = $("<a href=\"#\" data-num=\"" + index + "\" class=\"cover-nav\"></a>");
1061 // Set the first navigation link as active
1062 $(covernav).addClass("nav-active");
1064 $(covernav).html("<i class=\"fa fa-circle\"></i>");
1065 $(coverSlide).append( covernav );
1069 if( $(coverSlide).find(".cover-image:visible").length < 1 ){
1070 $(coverSlide).remove();
1072 $(coverSlide).addClass("cover-slides");
1076 $("#editions img").each(function(i){
1077 if ( this.src.indexOf('amazon.com') >= 0 ) {
1080 if ((w == 1) || (h == 1)) {
1081 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1082 } else if ( (this.complete != null) && (!this.complete) || this.naturalHeight == 0 ) {
1083 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1089 function removeLocalImage(imagenumber) {
1090 var thumbnail = $("#imagenumber-" + imagenumber );
1091 var copy = thumbnail.html();
1092 thumbnail.find("img").css("opacity", ".2");
1093 thumbnail.find("a.remove").html("<img style='display:inline-block' src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' />");
1095 url: "/cgi-bin/koha/svc/cover_images?action=delete&imagenumber=" + imagenumber,
1096 success: function(data) {
1097 $(data).each( function(i) {
1098 if ( this.deleted == 1 ) {
1101 thumbnail.html( copy );
1102 alert(_("An error occurred on deleting this image"));
1104 if ( $('ul.thumbnails > li').length == 0 ) {
1105 showNoImageMessage();
1109 error: function(data) {
1110 thumbnail.html( copy );
1111 alert(_("An error occurred on deleting this image"));
1116 function showNoImageMessage() {
1117 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
1118 no_images_msg = '<p>' + no_images_msg + '</p>';
1119 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
1120 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>");
1121 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
1123 $('#images').html(no_images_msg);
1126 [% IF StaffDetailItemSelection %]
1127 function itemSelectionBuildDeleteLink(div) {
1128 var itemnumbers = new Array();
1129 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
1130 itemnumbers.push($(this).val());
1132 if (itemnumbers.length > 0) {
1133 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
1134 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
1135 url += '&biblionumber=[% biblionumber | uri %]';
1136 url += '&src=CATALOGUING';
1137 $('a.itemselection_action_delete').attr('href', url);
1144 function itemSelectionBuildModifyLink(div) {
1145 var itemnumbers = new Array();
1146 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
1147 itemnumbers.push($(this).val());
1149 if (itemnumbers.length > 0) {
1150 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
1151 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
1152 url += '&biblionumber=[% biblionumber | uri %]';
1153 url += '&src=CATALOGUING';
1154 $('a.itemselection_action_modify').attr('href', url);
1161 function itemSelectionBuildActionLinks(tab) {
1162 var div = $("#" + tab);
1163 var delete_link_ok = itemSelectionBuildDeleteLink(div);
1164 var modify_link_ok = itemSelectionBuildModifyLink(div);
1165 if (modify_link_ok || delete_link_ok) {
1166 $('.itemselection_actions', div).show();
1168 $('.itemselection_actions', div).hide();
1172 $(document).ready(function() {
1173 $('table.items_table').each(function() {
1174 var div = $(this).parent().attr("id");
1175 itemSelectionBuildActionLinks(div);
1178 $("input[name='itemnumber'][type='checkbox']").change(function() {
1179 var div = $(this).parents('table').parent().parent().attr("id");
1180 itemSelectionBuildActionLinks(div);
1183 $(".SelectAll").on("click",function(e){
1185 var tab = $(this).data("tab");
1186 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
1187 itemSelectionBuildActionLinks(tab);
1190 $(".ClearAll").on("click",function(e){
1192 var tab = $(this).data("tab");
1193 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
1194 itemSelectionBuildActionLinks(tab);
1199 $(document).ready(function() {
1200 $('#bibliodetails').tabs();
1201 [% IF count == 0 and ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) %]
1202 $('#bibliodetails').tabs("option", "active", $('#media_tab').index() );
1204 $('#search-form').focus();
1205 $('.thumbnails > li > .remove').click(function() {
1206 var result = confirm(_("Are you sure you want to delete this cover image?"));
1208 if ( result == true ) {
1209 var imagenumber = $(this).parent().attr('id').split('-')[1];
1210 removeLocalImage(imagenumber);
1215 [% IF ( IntranetCoce && CoceProviders ) %]
1216 KOHA.coce.getURL('[% CoceHost | html %]', '[% CoceProviders | html %]');
1219 $("body").on("click",".previewMARC", function(e){
1221 var page = $(this).attr("href");
1222 $("#marcPreview .modal-body").load(page + " table");
1223 $('#marcPreview').modal({show:true});
1225 $("#marcPreview").on("hidden.bs.modal", function(){
1226 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1228 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1229 novSelect.loadContentForQuery({
1230 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1231 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1234 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
1235 '[% Koha.Preference('NovelistSelectPassword') | html %]',
1237 if ( d.length > 0 ){ //If no content
1238 $(".NovelistSelect").show();
1242 $(".print-label").on("click", function(e){
1244 link = $(this).attr("href");
1245 openWindow(link,"Print spine label",400,400);
1247 $(".cover-slider").on("click",".cover-nav", function(e){
1249 var cover_slider = $(this).parent();
1250 // Adding click handler for cover image navigation links
1251 var num = $(this).data("num");
1252 $(cover_slider).find(".cover-nav").removeClass("nav-active");
1253 $(this).addClass("nav-active");
1254 $(cover_slider).find(".cover-image").hide();
1255 $(cover_slider).find(".cover-image").eq( num ).show();
1259 $(window).load(function() {
1263 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1264 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1266 [% INCLUDE 'datatables.inc' %]
1267 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
1268 [% INCLUDE 'columns_settings.inc' %]
1269 [% Asset.js("js/browser.js") | $raw %]
1270 [% Asset.js("js/table_filters.js") | $raw %]
1273 browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
1276 $(document).ready(function() {
1277 var ids = ['holdings_table', 'otherholdings_table'];
1278 var columns_settings = [ [% TablesSettings.GetColumns('catalogue', 'detail','holdings_table','json') | $raw %], [% TablesSettings.GetColumns('catalogue', 'detail','otherholdings_table','json') | $raw %] ];
1279 var has_images = ["[% itemloop_has_images | html %]", "[% otheritemloop_has_images | html %]"];
1280 for (var i in ids) {
1282 if ( !has_images[i] ) { // remove the cover_image column
1283 columns_settings.splice(1,1);
1285 var dt_parameters = {
1288 'bAutoWidth': false,
1289 "bKohaColumnsUseNames": true,
1290 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1292 var table = KohaTable(id, dt_parameters, columns_settings[i], 'with_filters');
1295 [% IF Koha.Preference('AcquisitionDetails') %]
1296 var columns_settings = [% TablesSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
1297 var acquisitiondetails_table = KohaTable("orders", {
1298 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1300 'bAutoWidth': false,
1301 "aaSorting": [[ 4, "desc" ]],
1302 }, columns_settings);
1305 [% IF suggestions.count %]
1306 $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
1308 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1309 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
1311 "sPaginationType": "full"
1316 $(document).ready(function() {
1317 var search_index = localStorage.getItem("cat_search_pulldown_selection");
1318 var search_value = localStorage.getItem("searchbox_value");
1319 if ( search_index ){ $('#cat-search-block select.advsearch').val(search_index)};
1320 if ( search_value ){ $('#cat-search-block #search-form').val(search_value)};
1324 [% INCLUDE 'intranet-bottom.inc' %]