5 [% USE AuthorisedValues %]
8 [% USE TablesSettings %]
9 [% PROCESS 'i18n.inc' %]
10 [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
11 [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
13 [% IF Koha.Preference('AmazonAssocTag') %]
14 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
16 [% AmazonAssocTag = '' %]
19 [% ShowCourseReserves = 0 | html %]
20 [% IF UseCourseReserves %]
21 [% FOREACH item IN itemloop %]
22 [% IF item.course_reserves %]
23 [% FOREACH r IN item.course_reserves %]
24 [% IF r.course.enabled == 'yes' %]
25 [% ShowCourseReserves = 1 | html %]
32 [% SET footerjs = 1 %]
33 [% INCLUDE 'doc-head-open.inc' %]
34 <title>Koha › Catalog ›
35 [% IF ( unknownbiblionumber ) %]
38 Details for [% INCLUDE 'biblio-title-head.inc' %]
41 [% INCLUDE 'doc-head-close.inc' %]
44 <body id="catalog_detail" class="catalog">
46 [% INCLUDE 'header.inc' %]
47 [% INCLUDE 'cat-search.inc' %]
49 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> ›
50 [% IF ( unknownbiblionumber ) %]
53 [% INCLUDE 'biblio-title.inc' link = 1 %] › Details
57 <div class="main container-fluid">
59 <div class="col-sm-10 col-sm-push-2">
63 [% IF ( unknownbiblionumber ) %]
64 <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
67 [% IntranetCoce = Koha.Preference('IntranetCoce') %]
68 [% CoceProviders = Koha.Preference('CoceProviders') %]
69 [% CoceHost = Koha.Preference('CoceHost') %]
71 [% INCLUDE 'cat-toolbar.inc' %]
72 [% IF decoding_error %]
74 <span class="biberror">
75 There is an error with this bibliographic record, the view may be degraded.</span>
76 <span class="error"><br/> Error: [% decoding_error | html %]</span>
80 <!-- COinS / OpenURL -->
81 <span class="Z3988" title="[% ocoins | html %]"></span>
84 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
85 [% IF ( XSLTDetailsDisplay ) %]
86 <div id="catalogue_detail_biblio" class="col-xs-9">
88 <div id="catalogue_detail_biblio" class="col-xs-9">
91 <div id="catalogue_detail_biblio" class="col-xs-12">
96 [% IF shelves.count %]
97 <span class="results_summary"><span class="label">Lists that include this title: </span>
98 [% FOREACH s IN shelves %]
99 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
100 [% IF ( loop.last ) %][% ELSE %]|[% END %]
104 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
105 <span class="results_summary"><span class="label">Tags:</span>
106 [% FOREACH TagLoo IN TagLoop %]
107 [% IF ( CAN_user_tools_moderate_tags ) %]
108 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
110 [% TagLoo.term | html %]
112 <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
116 <span id="catalogue_detail_marc_preview" class="results_summary"><span class="label">MARC preview:</span> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber | uri %]&viewas=html" title="MARC" class="previewMARC">Show</a></span>
117 [% IF !item_level_itypes || Koha.Preference("BiblioItemtypeInfo") %]
118 <span class="results_summary itemtype"><span class="label">Itemtype:</span>
119 [% IF ( !noItemTypeImages && imageurl ) %]
120 <img src="[% imageurl | html %]" alt="" />
122 [% IF ( description ) %]
123 [% description | html %]
125 [% itemtype | html %]
130 [% IF ( holdcount ) %]
131 <span class="results_summary">
132 <span class="label">Holds:</span>
133 <span class="number_box">
134 [% IF CAN_user_reserveforothers_place_holds %]
135 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a>
137 <span>[% holdcount | html %]</span>
143 [% IF illrequests.count %]
144 <span class="results_summary">
145 <span class="label">ILL requests:</span>
146 [% IF CAN_user_ill %]
147 [% FOREACH ill IN illrequests %]
148 <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 %]
151 [% FOREACH ill IN illrequests %]
152 <span>Request [% ill.illrequest_id | html %]</span>[% IF ! loop.last %], [% END %]
158 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
159 <span class="results_summary">
160 <span class="label">Article requests:</span>
161 <span class="number_box">
162 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | uri %]">[% article_requests_count | html %]</a>
167 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
169 <div class="col-xs-3" id="bookcoverimg">
170 <div id="cover-slides">
171 [% IF ( LocalCoverImages ) %]
172 [% IF ( localimages.0 ) %]
173 [% 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 | uri %]">
177 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image | uri %]" alt="Local cover image" />
179 <div class="hint">Local cover image</div>
186 [% IF ( AdlibrisEnabled && normalized_isbn ) %]
187 <div class="cover-image" id="adlibris-coverimg">
188 <a href="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]">
189 <img src="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]" class="adlibris-cover-big" alt="Adlibris cover image" />
191 <div class="hint">Image from Adlibris</div>
195 [% IF ( AmazonCoverImages && normalized_isbn) %]
196 <div class="cover-image" id="amazon-bookcoverimg">
197 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
198 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="Amazon cover image" />
200 <div class="hint">Image from Amazon.com</div>
204 [% IF ( IntranetCoce && CoceProviders && normalized_isbn ) %]
205 [% coce_id = normalized_ean || normalized_isbn %]
206 <div class="cover-image" id="coce-coverimg">
208 <span title="[% biblionumber | url %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></span>
210 <span class="no-image">No cover image available</span>
212 <div class="hint">Image from Coce</div>
216 [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
217 <div class="cover-image" id="custom-coverimg">
218 <a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]">
219 <img id="custom-img" alt="Custom cover image" src="[% biblio.custom_cover_image_url | url %]" />
221 <div class="hint">Custom cover image</div>
224 </div> <!-- /#cover-slides -->
225 </div> <!-- /#bookcoverimg.col-xs-3 -->
227 </div> <!-- /.col-xs-* -->
228 [% END # /IF ( AmazonCoverImages, etc ) %]
230 <div id="bibliodetails" class="toptabs">
233 [% IF (SeparateHoldings) %]
235 <a href="#holdings">[% Branches.GetLoggedInBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
238 <a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
242 <a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a>
245 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %]
246 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
247 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
248 [% IF suggestions.count %]<li><a href="#suggestion_details">Suggestion details</a></li>[% END %]
249 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
250 [% IF ( LocalCoverImages ) %]
251 [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
253 <a href="#images">Images ([% localimages.size() || 0 | html %])</a>
257 [% IF HTML5MediaEnabled && HTML5MediaSets.size %]<li id="media_tab"><a href="#html5media">Play media</a></li>[% END %]
258 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
259 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
261 [% FOREACH tab IN tabs %]
262 <li><a href="#[% tab.id | uri %]">[% tab.title | html %]</a></li>
266 [% items_table_block_iter = 0 %]
267 [% BLOCK items_table %]
268 [% items_table_block_iter = items_table_block_iter + 1 %]
269 <div class="[% tab | html %]_table_table_controls">
270 [% IF (StaffDetailItemSelection) %]
271 | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
272 <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
273 <span class="itemselection_actions">
275 [% IF CAN_user_tools_items_batchdel %]
276 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
278 [% IF CAN_user_tools_items_batchmod %]
279 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
284 <table class="items_table" id="[% tab | html %]_table">
287 [% IF (StaffDetailItemSelection) %]<th id="[% tab | html %]_checkbox" data-colname="[% tab | html %]_checkbox" class="NoSort"></th>[% END %]
288 [% IF ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
289 <th id="[% tab | html %]_cover" data-colname="[% tab | html %]_cover">Cover image</th>
291 [% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %]
292 <th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current library</th>
293 <th id="[% tab | html %]_homebranch" data-colname="[% tab | html %]_homebranch">Home library</th>
294 [% IF ( itemdata_ccode ) %]<th id="[% tab | html %]_ccode" data-colname="[% tab | html %]_ccode">Collection</th>[% END %]
295 <th id="[% tab | html %]_itemcallnumber" data-colname="[% tab | html %]_itemcallnumber">Call number</th>
297 [% IF itemdata_publisheddate #If there is at least one published date, use it for sorting%]
298 <th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron" class="title-string">Serial enumeration / chronology</th>
300 <th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron">Serial enumeration / chronology</th>
303 <th id="[% tab | html %]_status" data-colname="[% tab | html %]_status">Status</th>
304 <th id="[% tab | html %]_lastseen" data-colname="[% tab | html %]_lastseen" class="title-string">Last seen</th>
305 <th id="[% tab | html %]_dateaccessioned" data-colname="[% tab | html %]_dateaccessioned" class="title-string">Date accessioned</th>
306 <th id="[% tab | html %]_datelastborrowed" data-colname="[% tab | html %]_datelastborrowed" class="title-string">Date last borrowed</th>
307 <th id="[% tab | html %]_barcode" data-colname="[% tab | html %]_barcode">Barcode</th>
308 [% IF ( itemdata_uri ) %]<th id="[% tab | html %]_uri" data-colname="[% tab | html %]_uri">URL</th>[% END %]
309 [% IF ( itemdata_copynumber ) %]<th id="[% tab | html %]_copynumber" data-colname="[% tab | html %]_copynumber">Copy number</th>[% END %]
310 [% IF ( itemdata_stocknumber ) %]<th id="[% tab | html %]_stocknumber" data-colname="[% tab | html %]_stocknumber">Inventory number</th>[% END %]
311 [% IF materials %]<th id="[% tab | html %]_materials" data-colname="[% tab | html %]_materials">Materials specified</th>[% END %]
312 [% IF ( itemdata_itemnotes ) %]<th id="[% tab | html %]_itemnotes" data-colname="[% tab | html %]_itemnotes">Public notes</th>[% END %]
313 [% IF ( itemdata_nonpublicnotes ) %]<th id="[% tab | html %]_itemnotes_nonpublic" data-colname="[% tab | html %]_itemnotes_nonpublic">Non-public notes</th>[% END %]
314 [% IF ( hostrecords ) %]<th id="[% tab | html %]_hostrecord" data-colname="[% tab | html %]_hostrecord">Host records</th>[% END %]
315 [% IF ( analyze ) %]<th id="[% tab | html %]_usedin" data-colname="[% tab | html %]_usedin">Used in</th><th></th>[% END %]
316 [% IF ( ShowCourseReserves ) %]<th id="[% tab | html %]_course_reserves" data-colname="[% tab | html %]_course_reserves">Course reserves</th>[% END %]
317 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th id="[% tab | html %]_spinelabel" data-colname="[% tab | html %]_spinelabel" class="NoSort">Spine label</th>[% END %]
318 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th id="[% tab | html %]_actions" data-colname="[% tab | html %]_actions"class="NoSort"> </th>[% END %]
322 [% FOREACH item IN items %]
324 [% IF (StaffDetailItemSelection) %]
325 <td style="text-align:center;vertical-align:middle">
326 <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
329 [% IF ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
331 [% IF item.imagenumber %]
332 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?itemnumber=[% item.itemnumber | uri %]&imagenumber=[% item.imagenumber | uri %]">
333 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1amp;imagenumber=[% item.imagenumber | uri %]" />
339 [% IF ( item_level_itypes ) %]
341 [% IF !noItemTypeImages && item.imageurl %]
342 <img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
344 <span class="itypedesc">[% item.translated_description | html %]</span>
347 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
348 <td class="homebranch">
349 <span class="homebranchdesc">[% Branches.GetName(item.homebranch) | html %]</span>
350 <span class="shelvingloc">
352 If permanent location is defined, show description or code and display current location in parentheses. If not, display current location.
353 Note that permanent location is a code, and location may be an authval.
355 [% IF item.permanent_location %]
356 [% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %]
357 [% permloc_authval | html %]
358 [% IF item.location AND item.location != permloc_authval AND item.location != item.permanent_location %]
359 ([% item.location | html %])
362 [% item.location | html %]
366 [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
367 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
369 <td class="enumchron">
370 [% IF itemdata_publisheddate %]<span title="[% item.publisheddate | html %]">[% END %]
371 [% IF ( itemdata_enumchron ) %]
372 [% IF item.enumchron && item.serialseq %]
373 <span class="enum">[% item.enumchron | html %]</span>
374 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
375 <span class="sep"> -- </span>
376 <span class="serialseq">[% item.serialseq | html %]</span>
378 [% ELSIF item.enumchron %]
379 <span class="enum">[% item.enumchron | html %]</span>
380 [% ELSIF item.serialseq %]
381 <span class="serialseq">[% item.serialseq | html %]</span>
383 [% IF ( item.publisheddate ) %]
384 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
392 [% IF item.CheckedOutFor %]
393 [% IF item.onsite_checkout %]
394 <span>Currently in local use
396 <span class="datedue">Checked out
398 [% UNLESS ( item.NOTSAMEBRANCH ) %]
399 [% IF item.onsite_checkout %]
404 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
406 : due [% item.datedue | html %]
408 [% ELSIF ( item.transfertwhen ) %]
409 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
412 [% IF ( item.itemlost ) %]
413 [% IF itemlostloop %]
414 [% FOREACH itemlostloo IN itemlostloop %]
415 [% IF itemlostloo.authorised_value == item.itemlost %]
416 <span class="lost">[% itemlostloo.lib | html %]</span>
420 <span class="lost">Unavailable (lost or missing)</span>
424 [% IF ( item.withdrawn ) %]
425 [% IF itemwithdrawnloop %]
426 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
427 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
428 <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
432 <span class="wdn">Withdrawn</span>
436 [% IF ( item.damaged ) %]
437 [% IF itemdamagedloop %]
438 [% FOREACH itemdamagedloo IN itemdamagedloop %]
439 [% IF itemdamagedloo.authorised_value == item.damaged %]
440 <span class="dmg">[% itemdamagedloo.lib | html %]</span>
444 <span class="dmg">Damaged</span>
448 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
449 <span class="notforloan">Not for loan
450 [% IF ( item.notforloanvalue ) %]
451 <span class="reason">([% item.notforloanvalue | html %])</span>
456 [% SET hold = item.first_hold %]
458 [% IF hold.waitingdate %]
459 <span class="waitingat">Waiting at [% Branches.GetName( hold.branchcode ) | html %] since [% hold.waitingdate | $KohaDates %].</span>
460 [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
461 <span class="heldfor">Hold for:</span>
462 [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
465 <span class="holdonitem">There is an item level hold on this item (priority = [% hold.priority | html %]).</span>
468 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || hold ) %]
469 <span class="available">Available</span>
472 [% IF ( item.restricted ) %]
473 <span class="restricted">([% item.restrictedvalue | html %])</span>
477 <td class="datelastseen"><span title="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</span></td>
478 <td class="dateaccessioned"><span title="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</span></td>
479 <td class="datelastborrowed"><span title="[% item.datelastborrowed | html %]">[% item.datelastborrowed | $KohaDates %]</span></td>
480 <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>
481 [% IF ( itemdata_uri ) %]
482 [% IF item.uri.split(' \| ').size > 1 %]
484 [% FOREACH uri IN item.uri.split(' \| ') %]<a href="[% uri | url %]">[% uri | html %]</a><br>[% END %]
489 <a href="[% item.uri | url %]">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a>
494 [% IF ( itemdata_copynumber ) %]
495 <td class="copynumber">[% item.copynumber | html %]</td>
497 [% IF ( itemdata_stocknumber ) %]
498 <td class="stocknumber">[% item.stocknumber | html %]</td>
501 <td class="materials"> [% item.materials | html %] </td>
503 [% IF ( itemdata_itemnotes ) %]
504 <td><div class="itemnotes">[% item.itemnotes | $raw %]</div></td>
506 [% IF itemdata_nonpublicnotes %]
507 <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
509 [% IF ( hostrecords ) %]
510 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
514 [% IF ( item.countanalytics ) %]
515 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
520 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
523 [% IF ShowCourseReserves %]
525 [% IF item.course_reserves %]
526 [% FOREACH r IN item.course_reserves %]
527 [% IF r.course.enabled == 'yes' %]
529 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
530 [% r.course.course_name | html %]
531 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
532 [% IF r.course.section %] [% r.course.section | html %] [% END %]
533 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
542 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
543 <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>
546 [% IF CAN_user_editcatalogue_edit_items %]
548 [% UNLESS item.cannot_be_edited %]
549 <div class="btn-group">
550 <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>
551 <ul class="dropdown-menu pull-right">
552 <li><a href="/cgi-bin/koha/tools/upload-cover-image.pl?itemnumber=[% item.itemnumber | uri %]&filetype=image"><i class="fa fa-upload">Upload image</i></a></li>
563 [% END %][%# end of block items_table %]
567 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
568 <span class="results_summary NovelistSelect" style="display:none;">
569 <span class="label">Novelist Select: </span>
570 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
575 [% IF ( showncount ) %]
576 [% PROCESS items_table tab="holdings" items=itemloop %]
578 [% IF ( hiddencount ) %]
579 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
581 [% IF ( debug_display ) %]
584 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
585 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
586 <tr><td>serial</td><td>[% serial | html %]</td></tr>
590 [% IF ( ALTERNATEHOLDINGS ) %]
591 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
592 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
595 <div id="noitems">No physical items for this record</div>
599 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
600 <span class="results_summary NovelistSelect" style="display:none;">
601 <span class="label">Novelist Select: </span>
602 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
607 [% IF (SeparateHoldings) %]
608 <div id="otherholdings">
609 [% IF (otheritemloop.size) %]
610 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
612 <span class="nootheritems">No other items.</span>
617 [% IF ( MARCNOTES || notes ) %]
619 <div id="description">
620 <div class="content_set">
622 [% IF ( MARCNOTES ) %]
623 [% FOREACH MARCNOTE IN MARCNOTES %]
625 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
626 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
628 [% MARCNOTE.marcnote | html | html_line_break %]
634 <p>[% notes | html %]</p>
642 [% IF ( subscriptionsnumber ) %]
643 <div id="subscriptions">
644 <div id="catalogue_detail_subscriptions">
645 <h2>This is a serial subscription</h2>
646 <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
647 [% FOREACH subscription IN subscriptions %]
648 [% IF subscription.branchcode %]
649 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
651 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
652 [% IF ( subscription.location ) %]<p class="subscription_location">Location: [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => subscription.location ) | html %]</p>[% END %]
653 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
654 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
655 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
656 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
657 [% IF ( subscription.latestserials ) %]
658 <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
662 <th>Date arrived</th>
663 <th>Date published</th>
667 [% FOREACH latestserial IN subscription.latestserials %]
669 <td>[% latestserial.serialseq | html %]</td>
670 <td><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td>
671 <td><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td>
673 [% IF ( latestserial.status1 ) %]Expected[% END %]
674 [% IF ( latestserial.status2 ) %]Arrived[% END %]
675 [% IF ( latestserial.status3 ) %]Late[% END %]
676 [% IF ( latestserial.status4 ) %]Missing[% END %]
677 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
678 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
679 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
680 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
681 [% IF ( latestserial.status5 ) %]Not issued[% END %]
682 [% IF ( latestserial.status6 ) %]Delete[% END %]
683 [% IF ( latestserial.status7 ) %]Claimed[% END %]
684 [% IF ( latestserial.status8 ) %]Stopped[% END %]
686 <td>[% latestserial.notes | html %]</td>
691 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
697 [% IF Koha.Preference('AcquisitionDetails') %]
698 <div id="acq_details">
699 [% IF orders.count %]
705 <th>Basket group</th>
707 <th>Order number</th>
708 <th class="title-string">Creation date</th>
709 <th class="title-string">Receive date</th>
712 <th>Internal note</th>
713 <th>Subscription</th>
714 <th>Subscription callnumber</th>
718 [% FOR order IN orders %]
719 [% SET basket = order.basket %]
720 [% SET vendor = basket.bookseller %]
723 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
726 [% IF order.invoiceid %]
727 [% IF CAN_user_acquisition %]
728 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
729 title="Invoice detail page">
730 [% order.invoice.invoicenumber | html %]</a>
732 [% order.invoice.invoicenumber | html %]
737 [% IF basket.basketgroupid %]
738 [% SET basket_group = basket.basket_group %]
739 [% IF CAN_user_acquisition_group_manage %]
740 <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>
742 [% basket_group.name | html %] ([% basket_group.id | html %])
746 <td>[% IF CAN_user_acquisition_order_manage %]
747 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
749 [% basket.basketname | html %] ([% basket.basketno | html %])
751 <td>[% order.ordernumber | html %]</td>
752 <td><span title="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</span></td>
753 <td><span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</span></td>
755 [% SWITCH order.orderstatus %]
757 [% CASE 'ordered' %]Ordered
758 [% CASE 'partial' %]Partial
759 [% CASE 'complete' %]Complete
760 [% CASE 'cancelled' %]Cancelled
763 <td>[% order.quantity | html %]</td>
764 <td>[% order.order_internalnote | html %]</td>
766 [% IF order.subscriptionid %]
767 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
771 [% IF order.subscriptionid %]
772 [% order.subscription.callnumber | html %]
780 <span class="noorder">There is no order for this bibliographic record.</span>
785 [% IF suggestions.count %]
786 <div id="suggestion_details">
787 [% IF nb_archived_suggestions > 0 %]
788 <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw %]
790 <table id="suggestions" class="sorted">
793 <th class="NoSort"> </th>
794 <th class="anti-the">Suggestion</th>
795 <th>Suggested by - on</th>
796 <th>Managed by - on</th>
797 <th>Last modification by - on</th>
804 [% FOREACH suggestion IN suggestions %]
806 <td>[% suggestion.suggestionid | html %]</td>
808 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestion.suggestionid | uri %]&op=show" title="suggestion" >
809 [% suggestion.title | html %][% IF ( suggestion.author ) %], by [% suggestion.author | html %][% END %]</a>
811 [% IF ( suggestion.copyrightdate ) %]© [% suggestion.copyrightdate | html %] [% END %]
812 [% IF ( suggestion.volumedesc ) %]; Volume:<em>[% suggestion.volumedesc | html %]</em> [% END %]
813 [% 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 %]
816 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.suggestedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</a>
817 [% IF suggestion.suggesteddate %] - [% suggestion.suggesteddate | $KohaDates %][% END %]
820 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.managedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.manager %]</a>
821 [% IF suggestion.manageddate %] - [% suggestion.manageddate | $KohaDates %][% END %]
824 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.lastmodificationby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.last_modifier %]</a>
825 [% IF suggestion.lastmodificationdate %] - [% suggestion.lastmodificationdate | $KohaDates %][% END %]
828 [% Branches.GetName( suggestion.branchcode ) | html %]
831 [% suggestion.fund.budget_name | html %]
834 [% IF suggestion.STATUS == 'ASKED' %]Pending
835 [% ELSIF suggestion.STATUS == 'ACCEPTED' %]Accepted
836 [% ELSIF suggestion.STATUS == 'ORDERED' %]Ordered
837 [% ELSIF suggestion.STATUS == 'REJECTED' %]Rejected
838 [% ELSIF suggestion.STATUS == 'CHECKED' %]Checked
839 [% ELSIF suggestion.STATUS == 'AVAILABLE' %]Available
840 [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) %]
841 [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) | html %]
842 [% ELSE %]Status unknown
844 [% IF suggestion.reason %]
845 <br />([% suggestion.reason | html %])
855 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
856 <div id="editions"><h4>Editions</h4>
858 [% 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 %]
859 [% 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 %]
860 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
861 [% IF ( XISBN.publishercode ) %]
862 [% 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 %]
864 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
865 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
869 </table></div>[% END %]
872 [% IF ( LocalCoverImages ) %]
874 [% IF ( localimages.0 ) %]
875 <p>Click on an image to view it in the image viewer</p>
876 <ul class="thumbnails">
877 [% FOREACH image IN localimages %]
879 <li id="imagenumber-[% image | html %]" class="thumbnail">
880 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image | uri %]">
881 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image | uri %]" />
883 [% IF CAN_user_tools_upload_local_cover_images %]
884 <a href="#" class="remove"><i class="fa fa-trash"></i> Delete image</a>
890 [% ELSE # - No image passed JavaScript takes care %]
891 <span class="noimagesuploaded">No images have been uploaded for this bibliographic record yet.</span>
893 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
894 <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>
900 [% IF ( HTML5MediaEnabled ) %]
901 <div id="html5media">
902 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
904 [% IF HTML5MediaSet.is_youtube %]
905 <iframe id="player" type="text/html" width="640" height="360"
906 src="[% HTML5MediaSet.srcblock | url %]" frameborder="0"></iframe>
908 <[% HTML5MediaParent | html %] controls preload=none>
909 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]"[% HTML5MediaSet.typeblock | html %] />
910 [[% HTML5MediaParent | html %] tag not supported by your browser.]
911 </[% HTML5MediaParent | html %]>
919 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
920 <div id="NovelistSelect" class="novelistSelect">
921 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
925 [% FOREACH tab IN tabs %]
926 <div id="[% tab.id | html %]">
927 [% tab.content | $raw %]
931 </div><!-- /bibliodetails -->
933 <div id="export" style="margin-top: 1em;">
934 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
936 <th>Save record</th> </tr>
937 <tr><td> Select download format: <select name="format">
938 <option value="mods">MODS (XML)</option>
939 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
940 <option value="marcxml">MARCXML</option>
941 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
942 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
943 <input type="submit" name="save" value="Download record" /></td>
946 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
952 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
953 <div class="modal-dialog modal-lg">
954 <div class="modal-content">
955 <div class="modal-header">
956 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
957 <h3 id="marcPreviewLabel">MARC preview</h3>
959 <div class="modal-body">
960 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
962 <div class="modal-footer">
963 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
970 </div> <!-- /.col-sm-10.col-sm-push-2 -->
972 <div class="col-sm-2 col-sm-pull-10">
974 [% INCLUDE 'biblio-view-menu.inc' %]
976 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
977 </div> <!-- /.row -->
981 [% MACRO jsinclude BLOCK %]
982 [% INCLUDE 'catalog-strings.inc' %]
983 [% Asset.js("js/catalog.js") | $raw %]
984 [% Asset.js("js/coce.js") | $raw %]
986 var interface = "[% interface | html %]";
987 var theme = "[% theme | html %]";
988 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
989 function verify_images() {
990 // Loop over each container in the template which contains covers
991 $(".cover-image").each( function( index ){
993 // Find the image in the container
994 var img = div.find("img")[0];
995 if( $(img).length > 0 ){
996 if( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ){
997 // No image loaded in the container. Remove the slide
1000 // All slides start hidden. If this is the first one, show it.
1004 // Check if Amazon image is present
1005 if ( div.attr("id") == "amazon-bookcoverimg" ) {
1008 if ((w == 1) || (h == 1)) {
1009 // Amazon returned single-pixel placeholder
1010 // Remove the container
1014 if( div.attr("id") == "custom-img" ){
1015 if ( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ) {
1016 // No image was loaded via the CustomCoverImages system preference
1017 // Remove the container
1021 if( div.attr("id") == "coce-coverimg" ){
1022 // Identify which service's image is being loaded by Coce
1023 if( $(img).attr("src").indexOf('amazon.com') >= 0 ){
1024 div.find(".hint").html(_("Coce image from Amazon.com"));
1025 } else if( $(img).attr("src").indexOf('google.com') >= 0 ){
1026 div.find(".hint").html(_("Coce image from Google Books"));
1027 } else if( $(img).attr("src").indexOf('openlibrary.org') >= 0 ){
1028 div.find(".hint").html(_("Coce image from Open Library"));
1035 var coverSlides = $(".cover-image");
1036 if( coverSlides.length > 1 ){
1037 coverSlides.each(function( index ){
1038 // If more that one slide is present, add a navigation link
1039 // for activating the slide
1040 var covernav = $("<a href=\"#\" data-num=\"" + index + "\" class=\"cover-nav\"></a>");
1042 // Set the first navigation link as active
1043 $(covernav).addClass("nav-active");
1045 $(covernav).html("<i class=\"fa fa-circle\"></i>");
1046 $("#cover-slides").append( covernav );
1051 if( $(".cover-image:visible").length < 1 ){
1052 $("#cover-slides").remove();
1054 $("#cover-slides").addClass("cover-slides");
1057 $("#editions img").each(function(i){
1058 if ( this.src.indexOf('amazon.com') >= 0 ) {
1061 if ((w == 1) || (h == 1)) {
1062 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1063 } else if ( (this.complete != null) && (!this.complete) || this.naturalHeight == 0 ) {
1064 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1070 function removeLocalImage(imagenumber) {
1071 var thumbnail = $("#imagenumber-" + imagenumber );
1072 var copy = thumbnail.html();
1073 thumbnail.find("img").css("opacity", ".2");
1074 thumbnail.find("a.remove").html("<img style='display:inline-block' src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' />");
1076 url: "/cgi-bin/koha/svc/cover_images?action=delete&imagenumber=" + imagenumber,
1077 success: function(data) {
1078 $(data).each( function(i) {
1079 if ( this.deleted == 1 ) {
1082 thumbnail.html( copy );
1083 alert(_("An error occurred on deleting this image"));
1085 if ( $('ul.thumbnails > li').length == 0 ) {
1086 showNoImageMessage();
1090 error: function(data) {
1091 thumbnail.html( copy );
1092 alert(_("An error occurred on deleting this image"));
1097 function showNoImageMessage() {
1098 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
1099 no_images_msg = '<p>' + no_images_msg + '</p>';
1100 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
1101 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>");
1102 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
1104 $('#images').html(no_images_msg);
1107 [% IF StaffDetailItemSelection %]
1108 function itemSelectionBuildDeleteLink(div) {
1109 var itemnumbers = new Array();
1110 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
1111 itemnumbers.push($(this).val());
1113 if (itemnumbers.length > 0) {
1114 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
1115 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
1116 url += '&biblionumber=[% biblionumber | uri %]';
1117 url += '&src=CATALOGUING';
1118 $('a.itemselection_action_delete').attr('href', url);
1125 function itemSelectionBuildModifyLink(div) {
1126 var itemnumbers = new Array();
1127 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
1128 itemnumbers.push($(this).val());
1130 if (itemnumbers.length > 0) {
1131 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
1132 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
1133 url += '&biblionumber=[% biblionumber | uri %]';
1134 url += '&src=CATALOGUING';
1135 $('a.itemselection_action_modify').attr('href', url);
1142 function itemSelectionBuildActionLinks(tab) {
1143 var div = $("#" + tab);
1144 var delete_link_ok = itemSelectionBuildDeleteLink(div);
1145 var modify_link_ok = itemSelectionBuildModifyLink(div);
1146 if (modify_link_ok || delete_link_ok) {
1147 $('.itemselection_actions', div).show();
1149 $('.itemselection_actions', div).hide();
1153 $(document).ready(function() {
1154 $('table.items_table').each(function() {
1155 var div = $(this).parent().attr("id");
1156 itemSelectionBuildActionLinks(div);
1159 $("input[name='itemnumber'][type='checkbox']").change(function() {
1160 var div = $(this).parents('table').parent().parent().attr("id");
1161 itemSelectionBuildActionLinks(div);
1164 $(".SelectAll").on("click",function(e){
1166 var tab = $(this).data("tab");
1167 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
1168 itemSelectionBuildActionLinks(tab);
1171 $(".ClearAll").on("click",function(e){
1173 var tab = $(this).data("tab");
1174 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
1175 itemSelectionBuildActionLinks(tab);
1180 $(document).ready(function() {
1181 $('#bibliodetails').tabs();
1182 [% IF count == 0 and ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) %]
1183 $('#bibliodetails').tabs("option", "active", $('#media_tab').index() );
1185 $('#search-form').focus();
1186 $('.thumbnails > li > .remove').click(function() {
1187 var result = confirm(_("Are you sure you want to delete this cover image?"));
1189 if ( result == true ) {
1190 var imagenumber = $(this).parent().attr('id').split('-')[1];
1191 removeLocalImage(imagenumber);
1196 [% IF ( IntranetCoce && CoceProviders ) %]
1197 KOHA.coce.getURL('[% CoceHost | html %]', '[% CoceProviders | html %]');
1200 $("body").on("click",".previewMARC", function(e){
1202 var page = $(this).attr("href");
1203 $("#marcPreview .modal-body").load(page + " table");
1204 $('#marcPreview').modal({show:true});
1206 $("#marcPreview").on("hidden.bs.modal", function(){
1207 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1209 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1210 novSelect.loadContentForQuery({
1211 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1212 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1215 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
1216 '[% Koha.Preference('NovelistSelectPassword') | html %]',
1218 if ( d.length > 0 ){ //If no content
1219 $(".NovelistSelect").show();
1223 $(".print-label").on("click", function(e){
1225 link = $(this).attr("href");
1226 openWindow(link,"Print spine label",400,400);
1228 $("#cover-slides").on("click",".cover-nav", function(e){
1230 // Adding click handler for cover image navigation links
1231 var num = $(this).data("num");
1232 $(".cover-nav").removeClass("nav-active");
1233 $(this).addClass("nav-active");
1234 $(".cover-image").hide();
1235 $(".cover-image").eq( num ).show();
1239 $(window).load(function() {
1243 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1244 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1246 [% INCLUDE 'datatables.inc' %]
1247 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
1248 [% INCLUDE 'columns_settings.inc' %]
1249 [% Asset.js("js/browser.js") | $raw %]
1250 [% Asset.js("js/table_filters.js") | $raw %]
1253 browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
1256 $(document).ready(function() {
1257 var ids = ['holdings_table', 'otherholdings_table'];
1258 var columns_settings = [ [% TablesSettings.GetColumns('catalogue', 'detail','holdings_table','json') | $raw %], [% TablesSettings.GetColumns('catalogue', 'detail','otherholdings_table','json') | $raw %] ];
1259 for (var i in ids) {
1261 var dt_parameters = {
1264 'bAutoWidth': false,
1265 "bKohaColumnsUseNames": true,
1266 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1268 var table = KohaTable(id, dt_parameters, columns_settings[i], 'with_filters');
1271 [% IF Koha.Preference('AcquisitionDetails') %]
1272 var columns_settings = [% TablesSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
1273 var acquisitiondetails_table = KohaTable("orders", {
1274 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1276 'bAutoWidth': false,
1277 "aaSorting": [[ 4, "desc" ]],
1278 }, columns_settings);
1281 [% IF suggestions.count %]
1282 $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
1284 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1285 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
1287 "sPaginationType": "full"
1293 [% INCLUDE 'intranet-bottom.inc' %]