6 [% USE AuthorisedValues %]
10 [% USE TablesSettings %]
11 [% PROCESS 'i18n.inc' %]
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 plugins_intranet_catalog_biblio_tabs = KohaPlugins.get_plugins_intranet_catalog_biblio_tab({ biblio => biblio, biblio_id => biblionumber }) %]
34 [% SET footerjs = 1 %]
35 [% INCLUDE 'doc-head-open.inc' %]
37 [% IF ( unknownbiblionumber ) %]
40 Details for [% INCLUDE 'biblio-title-head.inc' %]
41 [% END %] › Catalog › Koha
43 [% INCLUDE 'doc-head-close.inc' %]
44 [% Asset.css("lib/Chocolat/css/chocolat.css") | $raw %]
47 <body id="catalog_detail" class="catalog">
49 [% WRAPPER 'header.inc' %]
50 [% INCLUDE 'cat-search.inc' %]
53 [% WRAPPER 'sub-header.inc' %]
54 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
57 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
60 <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
63 [% IF ( unknownbiblionumber ) %]
65 <a href="#" aria-current="page">
71 [% INCLUDE 'biblio-title.inc' link = 1 %]
74 <a href="#" aria-current="page">
83 <div class="main container-fluid">
85 <div class="col-sm-10 col-sm-push-2">
89 [% IF ( unknownbiblionumber ) %]
90 <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
93 [% IntranetCoce = Koha.Preference('IntranetCoce') %]
94 [% CoceProviders = Koha.Preference('CoceProviders') %]
95 [% CoceHost = Koha.Preference('CoceHost') %]
96 [% SyndeticsCovers = Koha.Preference('SyndeticsEnabled') && Koha.Preference('SyndeticsCoverImages') %]
98 [% INCLUDE 'cat-toolbar.inc' %]
99 [% IF decoding_error %]
101 <span class="biberror">
102 There is an error with this bibliographic record, the view may be degraded.</span>
103 <span class="error"><br/> Error: [% decoding_error | html %]</span>
106 [% IF analytics_error %]
108 <span class="analytics_error">
109 There was an error searching for analytic records, please see the logs for details.</span>
113 <!-- COinS / OpenURL -->
114 <span class="Z3988" title="[% ocoins | html %]"></span>
117 [% IF ( AmazonCoverImages || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
118 <div id="catalogue_detail_biblio" class="col-xs-9">
120 <div id="catalogue_detail_biblio" class="col-xs-12">
122 <div class="page-section">
124 [% XSLTBloc | $raw %]
126 [% IF shelves.count %]
127 <span class="results_summary"><span class="label">Lists that include this title: </span>
128 [% FOREACH s IN shelves %]
129 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
130 [% IF ( loop.last ) %][% ELSE %]|[% END %]
134 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
135 <span class="results_summary"><span class="label">Tags:</span>
136 [% FOREACH TagLoo IN TagLoop %]
137 [% IF ( CAN_user_tools_moderate_tags ) %]
138 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |uri %]">[% TagLoo.term | html %]</a>
140 [% TagLoo.term | html %]
142 <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
146 <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>
147 [% IF !item_level_itypes || Koha.Preference("BiblioItemtypeInfo") %]
148 <span class="results_summary itemtype"><span class="label">Itemtype:</span>
149 [% IF ( !noItemTypeImages && imageurl ) %]
150 <img src="[% imageurl | html %]" alt="" />
152 [% IF ( description ) %]
153 <span class="itypetext">[% description | html %]</span>
155 <span class="itypetext">[% itemtype | html %]</span>
160 [% IF ( holdcount ) %]
161 <span class="results_summary">
162 <span class="label">Holds:</span>
163 <span class="number_box">
164 [% IF CAN_user_reserveforothers_place_holds %]
165 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a>
167 <span>[% holdcount | html %]</span>
173 [% IF illrequests.count %]
174 <span class="results_summary">
175 <span class="label">ILL requests:</span>
176 [% IF CAN_user_ill %]
177 [% FOREACH ill IN illrequests %]
178 <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 %]
181 [% FOREACH ill IN illrequests %]
182 <span>Request [% ill.illrequest_id | html %]</span>[% IF ! loop.last %], [% END %]
188 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
189 <span class="results_summary">
190 <span class="label">Article requests:</span>
191 <span class="number_box">
192 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | uri %]">[% article_requests_count | html %]</a>
197 [% IF course_reserves %]
198 <span class="results_summary"><span class="label">Courses that have reserved this title: </span>
199 [% FOREACH c IN course_reserves %]
200 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% c.course_id | uri %]">[% c.course.course_name | html %]</a>
201 [% IF ( loop.last ) %][% ELSE %]|[% END %]
205 </div> [%# .page-section %]
207 [% IF ( AmazonCoverImages || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
209 <div class="col-xs-3 bookcoverimg">
210 <div id="biblio-cover-slider" class="cover-slider">
211 [% IF ( LocalCoverImages ) %]
212 [% IF localimages.count %]
213 [% FOREACH image IN localimages %]
214 <div class="cover-image local-coverimg">
215 <a href="/cgi-bin/koha/catalogue/image.pl?imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
216 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" data-link="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image.imagenumber | uri %]" />
218 <div class="hint">Local cover image</div>
224 [% IF ( AmazonCoverImages && normalized_isbn) %]
225 <div class="cover-image" id="amazon-bookcoverimg">
226 <a href="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | uri %].01.LZZZZZZZ.jpg" title="Amazon cover image">
227 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | uri %].01.MZZZZZZZ.jpg" alt="Amazon cover image" data-link="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"/>
229 <div class="hint">Image from Amazon.com</div>
233 [% IF ( IntranetCoce && CoceProviders && normalized_isbn ) %]
234 [% coce_id = normalized_ean || normalized_isbn %]
235 <div class="cover-image coce-coverimg">
237 <a title="Image from Coce" class="[% coce_id | html %]" id="coce-thumbnail-preview"></a>
239 <span class="no-image">No cover image available</span>
241 <div class="hint">Image from Coce</div>
245 [% IF ( SyndeticsCovers ) %]
246 [% IF ( content_identifier_exists ) %]
247 <div class="cover-image" id="syndetics-bookcoverimg">
248 <a href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | url %]/LC.GIF&client=[% Koha.Preference('SyndeticsClientCode') | url %]&type=xw10&upc=[% normalized_upc | url %]&oclc=[% normalized_oclc | url %]" title="Syndetics cover image">
249 <img src="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | url %]/[% Koha.Preference('SyndeticsCoverImageSize') | url %].GIF&client=[% Koha.Preference('SyndeticsClientCode') | url %]&type=xw10&upc=[% normalized_upc | url %]&oclc=[% normalized_oclc | url %]" alt="" class="thumbnail" />
251 <div class="hint">Image from Syndetics</div>
254 <span class="no-image">No cover image available</span>
258 [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
259 [% SET custom_cover_image_url = biblio.custom_cover_image_url %]
260 [% IF custom_cover_image_url %]
261 <div class="cover-image" id="custom-coverimg">
262 <a class="custom_cover_image" href="[% custom_cover_image_url | url %]" title="Custom cover image">
263 <img id="custom-img" alt="Custom cover image" src="[% custom_cover_image_url | url %]" />
265 <div class="hint">Custom cover image</div>
269 </div> <!-- /.cover-slider -->
270 </div> <!-- /.bookcoverimg.col-xs-3 -->
272 </div> <!-- /.col-xs-* -->
273 [% END # /IF ( AmazonCoverImages, etc ) %]
276 <div id="bibliodetails" class="toptabs">
278 <ul class="nav nav-tabs" role="tablist">
279 [% IF (SeparateHoldings) %]
280 <li role="presentation">
281 <a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">[% Branches.GetLoggedInBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
283 <li role="presentation">
284 <a href="#otherholdings" aria-controls="otherholdings" role="tab" data-toggle="tab">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
287 <li role="presentation">
288 <a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">Holdings ([% itemloop.size() || 0 | html %])</a>
291 [% IF Koha.Preference('EnableItemGroups') %]
292 <li role="presentation">
293 <a href="#item_groups" aria-controls="item_groups" role="tab" data-toggle="tab">Item groups</a>
296 [% IF ( MARCNOTES || notes ) %]<li role="presentation"><a href="#description" aria-controls="description" role="tab" data-toggle="tab">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %]
297 [% IF ComponentParts && ComponentParts.size %]<li id="components_tab" role="presentation"><a href="#components" aria-controls="components" role="tab" data-toggle="tab">Components ([% ComponentParts.size | html %])</a></li>[% END %]
298 [% IF ( subscriptionsnumber ) %]<li role="presentation"><a href="#subscriptions" aria-controls="subscriptions" role="tab" data-toggle="tab">Subscriptions</a></li>[% END %]
299 [% IF Koha.Preference('AcquisitionDetails') %]<li role="presentation"><a href="#acq_details" aria-controls="acq_details" role="tab" data-toggle="tab">Acquisition details</a></li>[% END %]
300 [% IF suggestions.count %]<li role="presentation"><a href="#suggestion_details" aria-controls="suggestion_details" role="tab" data-toggle="tab">Suggestion details</a></li>[% END %]
301 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li role="presentation"><a href="#editions" aria-controls="editions" role="tab" data-toggle="tab">Editions</a></li>[% END %][% END %]
302 [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]<li role="presentation"><a href="#concerns" aria-controls="concerns" role="tab" data-toggle="tab">Concerns ([% biblio.tickets.count | html %])</a></li>[% END %]
303 [% IF ( LocalCoverImages ) %]
304 <li role="presentation">
305 <a href="#images" aria-controls="images" role="tab" data-toggle="tab">Images ([% localimages.count || 0 | html %])</a>
308 [% IF HTML5MediaEnabled && HTML5MediaSets.size %]
309 <li id="media_tab" role="presentation"><a href="#html5media" aria-controls="html5media" role="tab" data-toggle="tab">Play media</a></li>
311 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
312 <li class="NovelistSelect" style="display:none;" role="presentation"><a href="#NovelistSelect" aria-controls="NovelistSelect" role="tab" data-toggle="tab">NoveList Select</a></li>
314 [% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %]
315 <li role="presentation"><a href="#[% plugins_intranet_catalog_biblio_tab.id | uri %]" aria-controls="[% plugins_intranet_catalog_biblio_tab.id | uri %]" role="tab" data-toggle="tab">[% plugins_intranet_catalog_biblio_tab.title | html %]</a></li>
319 <div class="tab-content">
320 [% items_table_block_iter = 0 %]
321 [% BLOCK items_table %]
322 [% items_table_block_iter = items_table_block_iter + 1 %]
323 <div class="[% tab | html %]_table_table_controls">
324 [% IF (StaffDetailItemSelection) %]
325 | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
326 <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
327 <span class="itemselection_actions">
329 [% IF CAN_user_tools_items_batchdel %]
330 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
332 [% IF CAN_user_tools_items_batchmod %]
333 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
335 [% IF CAN_user_editcatalogue_manage_item_groups && biblio.item_groups.count %]
336 <a class="itemselection_action_item_group_set" href="#"><i class="fa fa-book"></i> Add/move to item group</a>
337 <a class="itemselection_action_item_group_unset" href="#"><i class="fa fa-unlink"></i> Remove from item group</a>
342 <table class="items_table" id="[% tab | html %]_table">
345 [% IF (StaffDetailItemSelection) %]<th id="[% tab | html %]_checkbox" data-colname="[% tab | html %]_checkbox" class="NoSort"></th>[% END %]
346 [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
347 <th id="[% tab | html %]_cover_image" data-colname="[% tab | html %]_cover_image">Cover image</th>
349 [% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %]
350 <th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current library</th>
351 <th id="[% tab | html %]_homebranch" data-colname="[% tab | html %]_homebranch">Home library</th>
352 [% IF ( itemdata_ccode ) %]<th id="[% tab | html %]_ccode" data-colname="[% tab | html %]_ccode">Collection</th>[% END %]
353 [% IF Koha.Preference('EnableItemGroups') %]
354 <th id="[% tab | html %]_item_group" data-colname="[% tab | html %]_item_group">Item group</th>
356 <th id="[% tab | html %]_itemcallnumber" data-colname="[% tab | html %]_itemcallnumber">Call number</th>
358 <th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron">Serial enumeration / chronology</th>
360 <th id="[% tab | html %]_status" data-colname="[% tab | html %]_status">Status</th>
361 <th id="[% tab | html %]_lastseen" data-colname="[% tab | html %]_lastseen">Last seen</th>
362 <th id="[% tab | html %]_issues" data-colname="[% tab | html %]_issues">Checkouts</th>
363 <th id="[% tab | html %]_renewals" data-colname="[% tab | html %]_renewals">Renewals</th>
364 <th id="[% tab | html %]_dateaccessioned" data-colname="[% tab | html %]_dateaccessioned">Date accessioned</th>
365 <th id="[% tab | html %]_datelastborrowed" data-colname="[% tab | html %]_datelastborrowed">Date last borrowed</th>
366 <th id="[% tab | html %]_barcode" data-colname="[% tab | html %]_barcode">Barcode</th>
367 [% IF ( itemdata_uri ) %]<th id="[% tab | html %]_uri" data-colname="[% tab | html %]_uri">URL</th>[% END %]
368 [% IF ( itemdata_copynumber ) %]<th id="[% tab | html %]_copynumber" data-colname="[% tab | html %]_copynumber">Copy number</th>[% END %]
369 [% IF ( itemdata_stocknumber ) %]<th id="[% tab | html %]_stocknumber" data-colname="[% tab | html %]_stocknumber">Inventory number</th>[% END %]
370 [% IF materials %]<th id="[% tab | html %]_materials" data-colname="[% tab | html %]_materials">Materials specified</th>[% END %]
371 [% IF ( itemdata_itemnotes ) %]<th id="[% tab | html %]_itemnotes" data-colname="[% tab | html %]_itemnotes">Public notes</th>[% END %]
372 [% IF ( itemdata_nonpublicnotes ) %]<th id="[% tab | html %]_itemnotes_nonpublic" data-colname="[% tab | html %]_itemnotes_nonpublic">Non-public notes</th>[% END %]
373 [% IF ( hostrecords ) %]<th id="[% tab | html %]_hostrecord" data-colname="[% tab | html %]_hostrecord">Host records</th>[% END %]
374 [% IF ( analyze ) %]<th id="[% tab | html %]_usedin" data-colname="[% tab | html %]_usedin">Used in</th><th></th>[% END %]
375 [% IF ( ShowCourseReserves ) %]<th id="[% tab | html %]_course_reserves" data-colname="[% tab | html %]_course_reserves">Course reserves</th>[% END %]
376 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th id="[% tab | html %]_spinelabel" data-colname="[% tab | html %]_spinelabel" class="NoSort">Spine label</th>[% END %]
377 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th id="[% tab | html %]_actions" data-colname="[% tab | html %]_actions"class="NoSort noExport"> </th>[% END %]
381 [% FOREACH item IN items %]
382 <tr id="item_[% item.itemnumber | html %]" data-itemnumber="[% item.itemnumber | html %]" data-duedate="[% item.datedue | html %]">
383 [% IF (StaffDetailItemSelection) %]
384 <td style="text-align:center;vertical-align:middle">
385 [% IF item.can_be_edited %]
386 <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
390 [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
392 <div class="bookcoverimg">
393 <div class="cover-slider">
394 [% FOREACH image IN item.cover_images %]
395 <div class="cover-image local-coverimg">
396 <a href="/cgi-bin/koha/catalogue/image.pl?itemnumber=[% image.itemnumber | uri %]&imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
397 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" data-link="/cgi-bin/koha/catalogue/imageviewer.pl?itemnumber=[% item.itemnumber | uri %]&imagenumber=[% image.imagenumber | uri %]" />
406 [% IF ( item_level_itypes ) %]
408 [% SET itemtype = item.itemtype %]
409 [% IF !noItemTypeImages && itemtype.image_location('intranet') %]
410 <img src="[% itemtype.image_location('intranet') | html %]" alt="[% itemtype.translated_description | html %]" title="[% itemtype.translated_description | html %]" />
412 <span class="itypedesc itypetext">[% itemtype.translated_description | html %]</span>
415 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.holdingbranch ) | html %] [% END %]</td>
416 <td class="homebranch">
417 <span class="homebranchdesc">[% Branches.GetName(item.homebranch) | html %]</span>
418 <span class="shelvingloc">
420 If permanent location is defined, show description or code and display current location in parentheses. If not, display current location.
421 Note that permanent location is a code, and location may be an authval.
423 [% IF item.permanent_location %]
424 [% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %]
425 [% permloc_authval | html %]
426 [% IF item.location AND item.location != permloc_authval AND item.location != item.permanent_location %]
427 ([% item.location | html %])
430 [% item.location | html %]
434 [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
435 [% IF Koha.Preference('EnableItemGroups') %]<td class="item_group">[% item.object.item_group.description | html %]</td>[% END %]
436 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
438 [% SET serial = item.itemserial.serial %]
439 [% IF itemdata_publisheddate #If there is at least one published date, use it for sorting %]
440 <td class="enumchron" data-order="[% serial.publisheddate | html %]">
442 <td class="enumchron">
444 [% IF ( itemdata_enumchron ) %]
445 [% IF item.enumchron && serial.serialseq %]
446 <span class="enum">[% item.enumchron | html %]</span>
447 [% IF ( item.serialseq && item.enumchron != serial.serialseq ) %]
448 <span class="sep"> -- </span>
449 <span class="serialseq">[% serial.serialseq | html %]</span>
451 [% ELSIF item.enumchron %]
452 <span class="enum">[% item.enumchron | html %]</span>
453 [% ELSIF item.serialseq %]
454 <span class="serialseq">[% serial.serialseq | html %]</span>
456 [% IF serial.publisheddate %]
457 <span class="pubdate">([% serial.publisheddate | $KohaDates %])</span>
465 [% IF item.checkout %]
466 [% IF item.checkout.onsite_checkout %]
467 <span>Currently in local use
469 <span class="datedue">Checked out
471 [% UNLESS ( item.not_same_branch) %]
472 [% IF item.checkout.onsite_checkout %]
477 [% INCLUDE 'patron-title.inc' patron=item.checkout.patron hide_patron_infos_if_needed=1 %]
479 : due [% item.checkout.date_due | $KohaDates as_due_date => 1 %]
481 [% ELSIF ( item.transfer ) %]
482 [% IF (item.transfer.datesent) %]
483 <span class="intransit">In transit from [% Branches.GetName( item.transfer.frombranch ) | html %] to [% Branches.GetName( item.transfer.tobranch ) | html %] since [% item.transfer.datesent | $KohaDates %]</span>
485 <span class="transitrequested">Transit pending from [% Branches.GetName( item.transfer.frombranch ) | html %] to [% Branches.GetName( item.transfer.tobranch ) | html %] since [% item.transfer.daterequested | $KohaDates %]</span>
490 [% IF ( item.itemlost ) %]
491 [% IF itemlostloop %]
492 [% FOREACH itemlostloo IN itemlostloop %]
493 [% IF itemlostloo.authorised_value == item.itemlost %]
494 <span class="lost">[% itemlostloo.lib | html %]</span>
498 <span class="lost">Unavailable (lost or missing)</span>
502 [% IF ( item.withdrawn ) %]
503 [% IF itemwithdrawnloop %]
504 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
505 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
506 <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
510 <span class="wdn">Withdrawn</span>
514 [% IF ( item.damaged ) %]
515 [% IF itemdamagedloop %]
516 [% FOREACH itemdamagedloo IN itemdamagedloop %]
517 [% IF itemdamagedloo.authorised_value == item.damaged %]
518 <span class="dmg">[% itemdamagedloo.lib | html %]</span>
522 <span class="dmg">Damaged</span>
526 [% IF ( item.notforloan || item.itemtype.notforloan ) %]
527 <span class="notforloan">Not for loan
528 [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
529 [% IF not_for_loan_description %]
530 <span class="reason">([% not_for_loan_description | html %])</span>
535 [% SET hold = item.first_hold %]
537 [% IF hold.waitingdate %]
538 <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>
539 [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
540 <span class="heldfor">Hold for:</span>
541 [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
544 <span class="holdonitem">There is an item level hold on this item (priority = [% hold.priority | html %]).</span>
548 [% SET recall = item.recall %]
550 [% IF recall.waiting_date %]
551 <span>Waiting at [% Branches.GetName( recall.pickup_library_id ) | html %] since [% recall.waiting_date | $KohaDates %]</span>
553 [% patron_link = BLOCK %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %] ([% recall.patron.cardnumber | html %])</a>[% END %]
554 <span>recalled by [% patron_link| $raw %] on [% recall.created_date | $KohaDates %]</span>
558 [% UNLESS ( item.notforloan || item.itemtype.notforloan || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfer || hold || ( Koha.Preference('UseRecalls') && recall ) ) %]
559 <span>Available</span>
562 [% IF ( item.restricted ) %]
563 <span class="restricted">([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.restricted', authorised_value => item.restricted ) | html %])</span>
566 [% IF ( item.bundle_host ) %]
567 <span class="bundled">In bundle: [% INCLUDE 'biblio-title.inc' biblio = item.bundle_host.biblio link = 1 %]</span>
571 <td class="datelastseen" data-order="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</td>
572 <td class="issues" data-order="[% item.issues || 0 | html %]">[% item.issues || 0 | html %]</td>
573 <td class="renewals" data-order="[% item.renewals || 0 | html %]">[% item.renewals || 0 | html %]</td>
574 <td class="dateaccessioned" data-order="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</td>
575 <td class="datelastborrowed" data-order="[% item.datelastborrowed | html %]">[% item.datelastborrowed | $KohaDates %]</td>
576 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% item.itemnumber | uri %]&biblionumber=[% item.biblionumber | uri %]&bi=[% item.biblioitemnumber | uri %]#item[% item.itemnumber | uri %]">[% item.barcode | html %]</a></td>
577 [% IF ( itemdata_uri ) %]
578 [% IF item.uri.split(' \| ').size > 1 %]
580 [% FOREACH uri IN item.uri.split(' \| ') %]<a href="[% uri | url %]">[% uri | html %]</a><br>[% END %]
585 <a href="[% item.uri | url %]">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a>
590 [% IF ( itemdata_copynumber ) %]
591 <td class="copynumber">[% item.copynumber | html %]</td>
593 [% IF ( itemdata_stocknumber ) %]
594 <td class="stocknumber">[% item.stocknumber | html %]</td>
597 <td class="materials"> [% item.materials | html %] </td>
599 [% IF ( itemdata_itemnotes ) %]
600 <td><div class="itemnotes">[% item.itemnotes | $raw %]</div></td>
602 [% IF itemdata_nonpublicnotes %]
603 <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
605 [% IF ( hostrecords ) %]
606 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
610 [% IF ( item.countanalytics ) %]
611 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
616 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
619 [% IF ShowCourseReserves %]
621 [% IF item.course_reserves %]
622 [% FOREACH r IN item.course_reserves %]
623 [% IF r.course.enabled == 'yes' %]
625 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
626 [% r.course.course_name | html %]
627 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
628 [% IF r.course.section %] [% r.course.section | html %] [% END %]
629 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
638 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
639 <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>
642 [% IF CAN_user_editcatalogue_edit_items %]
644 [% IF item.can_be_edited %]
645 [% IF Koha.Preference('LocalCoverImages') OR Koha.Preference('OPACLocalCoverImages') %]
646 <div class="btn-group">
647 <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>
648 <ul class="dropdown-menu pull-right">
649 <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>
653 <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>
656 [% IF bundlesEnabled %]
657 <button class="btn btn-default btn-xs details-control"><i class="fa fa-folder"></i> Manage bundle ([% item.bundled | html %]|[% item.bundled_lost | html %])</button>
666 [% END %][%# end of block items_table %]
668 [% IF Koha.Preference('EnableItemGroups') %]
669 <div role="tabpanel" class="tab-pane" id="item_groups">
670 [% IF CAN_user_editcatalogue_manage_item_groups %]
671 <div class="item_groups_table_table_controls">
672 <a href="#" class="item-group-create btn btn-default btn-xs"><i class="fa fa-plus"></i> New item group</a>
675 <table class="items-group-table" id="items-group-table">
678 <td>Display order</td>
688 <div role="tabpanel" class="tab-pane" id="holdings">
690 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
691 <span class="results_summary NovelistSelect" style="display:none;">
692 <span class="label">Novelist Select: </span>
693 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
698 [% IF ( showncount ) %]
699 [% PROCESS items_table tab="holdings" items=itemloop %]
701 [% IF ( hiddencount ) %]
702 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
704 [% IF ( debug_display ) %]
707 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
708 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
709 <tr><td>serial</td><td>[% serial | html %]</td></tr>
713 [% IF ( ALTERNATEHOLDINGS ) %]
714 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
715 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
718 <div id="noitems">No physical items for this record</div>
722 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
723 <span class="results_summary NovelistSelect" style="display:none;">
724 <span class="label">Novelist Select: </span>
725 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
730 [% IF (SeparateHoldings) %]
731 <div role="tabpanel" class="tab-pane" id="otherholdings">
732 [% IF (otheritemloop.size) %]
733 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
735 <span class="nootheritems">No other items.</span>
740 [% IF ( MARCNOTES ) %]
742 <div role="tabpanel" class="tab-pane" id="description">
743 <div class="content_set">
745 [% FOREACH MARCNOTE IN MARCNOTES %]
747 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
748 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
750 [% MARCNOTE.marcnote | html | html_line_break %]
759 [% IF ComponentParts && ComponentParts.size %]
760 <div role="tabpanel" class="tab-pane" id="components">
761 <div class="content_set">
763 [% FOR PART IN ComponentParts %]
771 [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%]
772 <p>Only [% ComponentParts.size | html %] results are shown: <a href="/cgi-bin/koha/catalogue/search.pl?q=[% ComponentPartsQuery | url %]"/>show all component parts</a></p>
774 </div> <!-- /.content_set -->
775 </div> <!-- /#components -->
779 [% IF ( subscriptionsnumber ) %]
780 <div role="tabpanel" class="tab-pane" id="subscriptions">
781 <div id="catalogue_detail_subscriptions">
782 <h2>This is a serial subscription</h2>
783 <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
784 [% FOREACH subscription IN subscriptions %]
785 [% IF subscription.branchcode %]
786 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
788 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
789 [% IF ( subscription.location ) %]<p class="subscription_location">Location: [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => subscription.location ) | html %]</p>[% END %]
790 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
791 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
792 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
793 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
794 [% IF ( subscription.latestserials ) %]
795 <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
799 <th>Date arrived</th>
800 <th>Date published</th>
804 [% FOREACH latestserial IN subscription.latestserials %]
806 <td>[% latestserial.serialseq | html %]</td>
807 <td data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
808 <td data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
810 [% IF ( latestserial.status1 ) %]<span>Expected</span>[% END %]
811 [% IF ( latestserial.status2 ) %]<span>Arrived</span>[% END %]
812 [% IF ( latestserial.status3 ) %]<span>Late</span>[% END %]
813 [% IF ( latestserial.status4 ) %]<span>Missing</span>[% END %]
814 [% IF ( latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
815 [% IF ( latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
816 [% IF ( latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
817 [% IF ( latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
818 [% IF ( latestserial.status5 ) %]<span>Not issued</span>[% END %]
819 [% IF ( latestserial.status6 ) %]<span>Delete</span>[% END %]
820 [% IF ( latestserial.status7 ) %]<span>Claimed</span>[% END %]
821 [% IF ( latestserial.status8 ) %]<span>Stopped</span>[% END %]
823 <td>[% latestserial.notes | html %]</td>
828 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
834 [% IF Koha.Preference('AcquisitionDetails') %]
835 <div role="tabpanel" class="tab-pane" id="acq_details">
836 [% IF orders.count %]
842 <th>Basket group</th>
844 <th>Order number</th>
845 <th>Creation date</th>
846 <th>Receive date</th>
849 <th title="Estimated cost tax incl. while pending, actual cost tax incl. once received">Price</th>
850 <th>Internal note</th>
851 <th>Subscription</th>
852 <th>Subscription call number</th>
856 [% FOR order IN orders %]
857 [% SET basket = order.basket %]
858 [% SET vendor = basket.bookseller %]
861 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
864 [% IF order.invoiceid %]
865 [% IF CAN_user_acquisition %]
866 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
867 title="Invoice detail page">
868 [% order.invoice.invoicenumber | html %]</a>
870 [% order.invoice.invoicenumber | html %]
875 [% IF basket.basketgroupid %]
876 [% SET basket_group = basket.basket_group %]
877 [% IF CAN_user_acquisition_group_manage %]
878 <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>
880 [% basket_group.name | html %] ([% basket_group.id | html %])
884 <td>[% IF CAN_user_acquisition_order_manage %]
885 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
887 [% basket.basketname | html %] ([% basket.basketno | html %])
889 <td>[% order.ordernumber | html %]</td>
890 <td data-order="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</td>
891 <td data-order="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</td>
893 [% SWITCH order.orderstatus %]
894 [% CASE 'new' %]<span>New</span>
895 [% CASE 'ordered' %]<span>Ordered</span>
896 [% CASE 'partial' %]<span>Partial</span>
897 [% CASE 'complete' %]<span>Complete</span>
898 [% CASE 'cancelled' %]<span>Cancelled</span>
901 <td>[% order.quantity | html %]</td>
902 <td>[% IF ( order.unitprice_tax_included > 0 ) %][% order.unitprice_tax_included | $Price %][% ELSE %][% order.ecost_tax_included | $Price %][% END %]
903 <td>[% order.order_internalnote | html %]</td>
905 [% IF order.subscriptionid %]
906 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
910 [% IF order.subscriptionid %]
911 [% order.subscription.callnumber | html %]
919 <span class="noorder">There is no order for this bibliographic record.</span>
924 [% IF suggestions.count %]
925 <div role="tabpanel" class="tab-pane" id="suggestion_details">
926 [% IF nb_archived_suggestions > 0 %]
927 <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw %]
929 <table id="suggestions" class="sorted">
932 <th class="NoSort"> </th>
933 <th class="anti-the">Suggestion</th>
934 <th>Suggested by - on</th>
935 <th>Managed by - on</th>
936 <th>Last modification by - on</th>
943 [% FOREACH suggestion IN suggestions %]
945 <td>[% suggestion.suggestionid | html %]</td>
947 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestion.suggestionid | uri %]&op=show" title="suggestion" >
948 [% suggestion.title | html %][% IF ( suggestion.author ) %], by [% suggestion.author | html %][% END %]</a>
950 [% IF ( suggestion.copyrightdate ) %]© [% suggestion.copyrightdate | html %] [% END %]
951 [% IF ( suggestion.volumedesc ) %]; Volume:<em>[% suggestion.volumedesc | html %]</em> [% END %]
952 [% 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 %]
955 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.suggestedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</a>
956 [% IF suggestion.suggesteddate %] - [% suggestion.suggesteddate | $KohaDates %][% END %]
959 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.managedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.manager %]</a>
960 [% IF suggestion.manageddate %] - [% suggestion.manageddate | $KohaDates %][% END %]
963 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.lastmodificationby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.last_modifier %]</a>
964 [% IF suggestion.lastmodificationdate %] - [% suggestion.lastmodificationdate | $KohaDates %][% END %]
967 [% Branches.GetName( suggestion.branchcode ) | html %]
970 [% suggestion.fund.budget_name | html %]
973 [% IF suggestion.STATUS == 'ASKED' %]<span>Pending</span>
974 [% ELSIF suggestion.STATUS == 'ACCEPTED' %]<span>Accepted</span>
975 [% ELSIF suggestion.STATUS == 'ORDERED' %]<span>Ordered</span>
976 [% ELSIF suggestion.STATUS == 'REJECTED' %]<span>Rejected</span>
977 [% ELSIF suggestion.STATUS == 'CHECKED' %]<span>Checked</span>
978 [% ELSIF suggestion.STATUS == 'AVAILABLE' %]<span>Available</span>
979 [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) %]
980 [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) | html %]
981 [% ELSE %]<span>Status unknown</span>
983 [% IF suggestion.reason %]
984 <br />([% suggestion.reason | html %])
994 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
995 <div role="tabpanel" class="tab-pane" id="editions"><h4>Editions</h4>
997 [% 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 %]
998 [% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %]<td>[% IF ( noItemTypeImages ) %]<span class="itypetext">[% XISBN.description | html %]</span>[% ELSE %]<img src="[% XISBN.imageurl | html %]" alt="[% XISBN.description | html %]" title="[% XISBN.description | html %]">[% END %]</td>[% END %]
999 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> <span>by</span> [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
1000 [% IF ( XISBN.publishercode ) %]
1001 [% 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 %]
1003 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
1004 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
1008 </table></div>[% END %]
1011 [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
1012 <div role="tabpanel" class="tab-pane" id="concerns">
1013 <fieldset class="action" style="cursor:pointer;">
1014 <a id="hideResolved"><i class="fa fa-minus-square"></i> Hide resolved</a>
1015 | <a id="showAll"><i class="fa fa-bars"></i> Show all</a>
1018 <table id="table_concerns" width="100%">
1024 <th data-class-name="actions noExport">Actions</th>
1031 [% IF ( LocalCoverImages ) %]
1032 <div role="tabpanel" class="tab-pane" id="images">
1033 [% IF localimages.count %]
1034 <p>Click on an image to view it in the image viewer</p>
1035 <ul class="thumbnails">
1036 [% FOREACH image IN localimages %]
1038 <li id="imagenumber-[% image.imagenumber | html %]" class="thumbnail">
1039 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image.imagenumber | uri %]">
1040 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" />
1042 [% IF CAN_user_tools_upload_local_cover_images %]
1043 <a href="#" class="remove"><i class="fa fa-trash"></i> Delete image</a>
1049 [% ELSE # - No image passed JavaScript takes care %]
1050 <span class="noimagesuploaded">No images have been uploaded for this bibliographic record yet.</span>
1052 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
1053 <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>
1059 [% IF ( HTML5MediaEnabled ) %]
1060 <div role="tabpanel" class="tab-pane" id="html5media">
1061 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
1063 [% IF HTML5MediaSet.is_youtube %]
1064 <iframe id="player" width="640" height="360" src="[% HTML5MediaSet.srcblock | url %]"></iframe>
1066 <[% HTML5MediaParent | html %] controls preload=none>
1067 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]"[% HTML5MediaSet.typeblock | html %] />
1068 [[% HTML5MediaParent | html %] tag not supported by your browser.]
1069 </[% HTML5MediaParent | html %]>
1077 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
1078 <div role="tabpanel" class="tab-pane" id="NovelistSelect" class="novelistSelect">
1079 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
1083 [% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %]
1084 <div role="tabpanel" class="tab-pane" id="[% plugins_intranet_catalog_biblio_tab.id | html %]">
1085 [% plugins_intranet_catalog_biblio_tab.content | $raw %]
1089 </div><!-- /tab-content -->
1090 </div><!-- /bibliodetails -->
1092 <div id="export" style="margin-top: 1em;">
1093 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
1095 <th>Save record</th> </tr>
1096 <tr><td> Select download format: <select name="format">
1097 <option value="mods">MODS (XML)</option>
1098 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
1099 <option value="marcxml">MARCXML</option>
1100 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
1101 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
1102 <input type="submit" name="save" class="btn btn-primary" value="Download record" /></td>
1105 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
1111 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
1112 <div class="modal-dialog modal-lg">
1113 <div class="modal-content">
1114 <div class="modal-header">
1115 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
1116 <h3 id="marcPreviewLabel">MARC preview</h3>
1118 <div class="modal-body">
1119 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
1121 <div class="modal-footer">
1122 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
1129 </div> <!-- /.col-sm-10.col-sm-push-2 -->
1131 <div class="col-sm-2 col-sm-pull-10">
1133 [% INCLUDE 'biblio-view-menu.inc' %]
1135 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
1136 </div> <!-- /.row -->
1140 <div class="modal fade" id="modal-item-group-create" tabindex="-1" role="dialog" aria-labelledby="modal-item-group-create-label">
1141 <div class="modal-dialog">
1142 <div class="modal-content">
1143 <div class="modal-header">
1144 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
1145 <h3 id="modal-item-group-create-label"><i class="fa fa-plus"></i> Create a new item group</h3>
1147 <form id="modal-item-group-create-form" class="validated">
1148 <div class="modal-body">
1151 <label for="item_group_description" class="required">Name: </label>
1152 <input name="description" id="modal-item-group-create-form-description" type="text" size="30" required="required" class="required" />
1153 <span class="required">Required</span>
1156 <label for="item_group_display_order" class="required">Display order: </label>
1157 <input name="display_order" id="modal-item-group-create-form-display_order" value="0" size="5" required="required" class="required" />
1158 <span class="required">Required</span>
1160 <span class="hint">Numbers only, item groups will be displayed in counting order</span>
1164 <div class="modal-footer">
1165 <button id="modal-item-group-create-submit" class="btn btn-default"><i class="fa fa-plus"></i> Submit</button>
1166 <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
1173 <div class="modal fade" id="modal-item-group-edit" tabindex="-1" role="dialog" aria-labelledby="modal-item-group-edit-label">
1174 <div class="modal-dialog">
1175 <div class="modal-content">
1176 <div class="modal-header">
1177 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
1178 <h3 id="modal-item-group-edit-label"><i class='fa fa-edit'></i> Edit item group</h3>
1180 <form id="modal-item-group-edit-form" class="validated">
1181 <div class="modal-body">
1184 <label for="item_group_description" class="required">Name: </label>
1185 <input name="description" id="modal-item-group-edit-form-description" type="text" size="30" required="required" class="required" />
1186 <span class="required">Required</span>
1189 <label for="item_group_display_order" class="required">Sort order: </label>
1190 <input name="display_order" id="modal-item-group-edit-form-display_order" size="5" />
1191 <span class="hint">Numbers only, item groups will be displayed in counting order</span>
1195 <div class="modal-footer">
1196 <button id="modal-item-group-edit-submit" class="btn btn-default"><i class='fa fa-edit'></i> Submit</button>
1197 <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
1204 <div class="modal fade" id="modal-item-group-delete" tabindex="-1" role="dialog" aria-labelledby="modal-item-group-delete-label">
1205 <div class="modal-dialog">
1206 <div class="modal-content">
1207 <div class="modal-header">
1208 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
1209 <h3 id="modal-item-group-delete-label"><i class='fa fa-trash'></i> Delete item group</h3>
1211 <div class="modal-body">
1212 Are you sure you want to delete this item group?
1214 <div class="modal-footer">
1215 <button id="modal-item-group-delete-submit" class="btn btn-danger"><i class='fa fa-trash'></i> Delete</button>
1216 <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
1222 <div class="modal fade" id="modal-item-group-set" tabindex="-1" role="dialog" aria-labelledby="modal-item-group-set-label">
1223 <div class="modal-dialog">
1224 <div class="modal-content">
1225 <div class="modal-header">
1226 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
1227 <h3 id="modal-item-group-set-label"><i class='fa fa-book'></i> Set item group for items</h3>
1229 <form id="modal-item-group-set-form" class="validated">
1230 <div class="modal-body">
1233 <label for="item_group" class="required">Item group: </label>
1234 <select name="item_group" id="item-group-add-form-select">
1235 [% FOREACH ig IN biblio.item_groups %]
1236 <option value="[% ig.id | html %]">[% ig.description | html %]</option>
1239 <span class="required">Required</span>
1243 <div class="modal-footer">
1244 <button id="modal-item-group-set-submit" class="btn btn-default"><i class='fa fa-book'></i> Set item group</button>
1245 <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
1252 <div class="modal fade" id="modal-item-group-unset" tabindex="-1" role="dialog" aria-labelledby="modal-item-group-unset-label">
1253 <div class="modal-dialog">
1254 <div class="modal-content">
1255 <div class="modal-header">
1256 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
1257 <h3 id="modal-item-group-unset-label"><i class='fa fa-unlink'></i> Remove item from item group</h3>
1259 <div class="modal-body">
1260 Are you sure you want to remove these item(s) from their item group(s)?
1262 <div class="modal-footer">
1263 <button id="modal-item-group-unset-submit" class="btn btn-danger"><i class='fa fa-unlink'></i> Remove</button>
1264 <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
1270 [% IF bundlesEnabled %]
1271 <div class="modal" id="addToBundleModal" tabindex="-1" role="dialog" aria-labelledby="addToBundleLabel">
1272 <form id="addToBundleForm" action="">
1273 <div class="modal-dialog" role="document">
1274 <div class="modal-content">
1275 <div class="modal-header">
1276 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
1277 <h3 id="addToBundleLabel">Add to bundle</h3>
1279 <div class="modal-body">
1280 <div id="addResult"></div>
1281 <fieldset class="rows">
1284 <label class="required" for="external_id">Item barcode: </label>
1285 <input type="text" id="external_id" name="external_id" required="required">
1286 <span class="required">Required</span>
1291 <div class="modal-footer">
1292 <button type="submit" class="btn btn-default">Submit</button>
1293 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
1300 <div class="modal" id="removeFromBundleModal" tabindex="-1" role="dialog" aria-labelledby="removeFromBundleLabel">
1301 <form id="removeFromBundleForm" action="">
1302 <div class="modal-dialog" role="document">
1303 <div class="modal-content">
1304 <div class="modal-header">
1305 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
1306 <h3 id="removeFromBundleLabel">Remove from bundle</h3>
1308 <div class="modal-body">
1309 <div id="removeResult"></div>
1310 <fieldset class="rows">
1313 <label class="required" for="external_id">Item barcode: </label>
1314 <input type="text" id="rm_external_id" name="external_id" required="required">
1315 <span class="required">Required</span>
1320 <div class="modal-footer">
1321 <button type="submit" class="btn btn-default">Submit</button>
1322 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
1330 [% IF ( Koha.Preference('CatalogConcerns') ) %]
1331 [% INCLUDE 'modals/add_catalog_concern.inc' %]
1334 [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
1335 [% INCLUDE 'modals/display_ticket.inc' %]
1338 [% MACRO jsinclude BLOCK %]
1339 [% INCLUDE 'catalog-strings.inc' %]
1340 [% Asset.js("js/catalog.js") | $raw %]
1341 [% Asset.js("js/recalls.js") | $raw %]
1342 [% Asset.js("js/coce.js") | $raw %]
1343 [% Asset.js("lib/Chocolat/js/chocolat.js") | $raw %]
1344 [% IF ( Koha.Preference('CatalogConcerns') ) %]
1346 /* Set a variable needed by add_catalog_concern.js */
1347 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1349 [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
1351 [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
1353 $(document).ready(function() {
1354 var table_settings = [% TablesSettings.GetTableSettings( 'cataloguing', 'concerns', 'table_concerns', 'json' ) | $raw %];
1356 var tickets_url = '/api/v1/tickets';
1357 var tickets = $("#table_concerns").kohaTable({
1366 'emptyTable': '<div class="dialog message">' + _("Congratulations, there are no catalog concerns.") + '</div>',
1369 "render": function (data, type, row, meta) {
1370 if ( type == 'display' ) {
1371 if ( data != null ) {
1372 return data.escapeHtml();
1383 "data": "reported_date:reporter.firstname",
1384 "render": function(data, type, row, meta) {
1385 let reported = '<span class="date clearfix">' + $datetime(row.reported_date) + '</span>';
1386 reported += '<span class="reporter clearfix">' + $patron_to_html(row.reporter, {
1387 display_cardnumber: false,
1396 "data": "title:body",
1397 "render": function(data, type, row, meta) {
1398 let resolved = ( row.resolved_date ) ? true : false;
1399 let result = '<a role="button" href="#" data-toggle="modal" data-target="#ticketDetailsModal" data-concern="' + encodeURIComponent(row.ticket_id) + '" data-resolved="' + resolved + '">' + row.title + '</a>';
1400 if (row.updates_count) {
1401 result += '<span class="pull-right"><a role="button" href="#" data-toggle="modal" data-target="#ticketDetailsModal" data-concern="' + encodeURIComponent(row.ticket_id) + '"><i class="fa fa-comment" aria-hidden="true"></i> ' + row.updates_count + '</a></span>';
1403 result += '<div id="detail_' + row.ticket_id + '" class="hidden">' + row.body + '</div>';
1410 "data": "resolved_date",
1411 "render": function(data, type, row, meta) {
1413 if (row.resolved_date) {
1414 result += _("Resolved by:") + ' <span>' + $patron_to_html(row.resolver, {
1415 display_cardnumber: false,
1418 result += '<span class="clearfix">' + $datetime(row.resolved_date) + '</span>';
1420 result += _("Open");
1428 "data": function(row, type, val, meta) {
1429 let resolved = ( row.resolved_date ) ? true : false;
1430 let result = '<a class="btn btn-default btn-xs" role="button" href="#" data-toggle="modal" data-target="#ticketDetailsModal" data-concern="' + encodeURIComponent(row.ticket_id) + '" data-resolved="' + resolved + '"><i class="fa fa-eye" aria-hidden="true"></i> ' + _("Details") + '</a>';
1433 "searchable": false,
1437 }, table_settings, 0, { biblio_id: [% biblionumber | uri %]});
1439 $('#hideResolved').on( "click", function() {
1440 // It would be great if we could pass null here but it gets stringified
1441 concerns.DataTable().columns('3').search('special:undefined').draw();
1444 $('#showAll').on( "click", function() {
1445 concerns.DataTable().columns('3').search('').draw();
1449 [% Asset.js("js/modals/display_ticket.js") | $raw %]
1452 var interface = "[% interface | html %]";
1453 var theme = "[% theme | html %]";
1454 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
1455 function verify_cover_images() {
1456 // Loop over each container in the template which contains covers
1457 $(".cover-slider").each(function(){
1458 var lightbox_descriptions = [];
1459 var first_shown = 0;
1460 $(this).find(".cover-image").each( function( index ){
1462 // Find the image in the container
1463 var img = div.find("img")[0];
1464 if( $(img).length > 0 ){
1465 var description = "";
1466 // All slides start hidden. If this is the first one, show it.
1467 if( first_shown == 0 ){
1471 // Check if Amazon image is present
1472 if ( div.attr("id") == "amazon-bookcoverimg" ) {
1475 if ((w == 1) || (h == 1)) {
1476 // Amazon returned single-pixel placeholder
1477 // Remove the container
1480 lightbox_descriptions.push(_("Amazon cover image (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1482 } else if( div.attr("id") == "custom-coverimg" ){
1483 if ( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ) {
1484 // No image was loaded via the CustomCoverImages system preference
1485 // Remove the container
1488 lightbox_descriptions.push("Custom cover image");
1490 } else if ( div.attr("id") == "syndetics-bookcoverimg" ){
1491 lightbox_descriptions.push(_("Syndetics cover image (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1493 else if( div.hasClass("coce-coverimg" ) ){
1494 // Identify which service's image is being loaded by Coce
1495 var coce_description;
1496 if( $(img).attr("src").indexOf('amazon.com') >= 0 ){
1497 coce_description = ("Coce image from Amazon.com");
1498 } else if( $(img).attr("src").indexOf('google.com') >= 0 ){
1499 coce_description = _("Coce image from Google Books");
1500 } else if( $(img).attr("src").indexOf('openlibrary.org') >= 0 ){
1501 coce_description = _("Coce image from Open Library");
1503 div.find(".hint").html(coce_description);
1504 lightbox_descriptions.push(coce_description);
1505 } else if ( div.attr("class") == "cover-image local-coverimg" ) {
1506 lightbox_descriptions.push(_("Local cover image (<a href='%s'>edit</a>)").format($(img).data('link')));
1508 lightbox_descriptions.push(_("Cover image source unknown"));
1513 // Lightbox for cover images
1514 Chocolat(this.querySelectorAll('.cover-image a'), {
1515 description: function(){
1516 return lightbox_descriptions[this.settings.currentImageIndex];
1522 $(".cover-slider").each(function(){
1523 var coverSlide = this;
1524 var coverImages = $(this).find(".cover-image");
1525 if( coverImages.length > 1 ){
1526 coverImages.each(function( index ){
1527 // If more that one image is present, add a navigation link
1528 // for activating the slide
1529 var covernav = $("<a href=\"#\" data-num=\"" + index + "\" class=\"cover-nav\"></a>");
1531 // Set the first navigation link as active
1532 $(covernav).addClass("nav-active");
1534 $(covernav).html("<i class=\"fa fa-circle\"></i>");
1535 $(coverSlide).append( covernav );
1539 if( $(coverSlide).attr('id') == 'biblio-cover-slider' // Hide if not visible, but only for the biblio images. Images for items are only local cover images
1540 && $(coverSlide).find(".cover-image:visible").length < 1 ){
1541 $(coverSlide).remove();
1543 $(coverSlide).addClass("cover-slides");
1544 var img = $(coverSlide).find(".cover-image:visible").find("img")[0];
1545 if( $(img).length > 0 && img.complete && img.naturalHeight > 0 ){
1546 $(".cover-slides").css({"background-image":"none"});
1551 $("#editions img").each(function(i){
1552 if ( this.src.indexOf('amazon.com') >= 0 ) {
1555 if ((w == 1) || (h == 1)) {
1556 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1557 } else if ( (this.complete != null) && (!this.complete) || this.naturalHeight == 0 ) {
1558 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1564 function removeLocalImage(imagenumber) {
1565 var thumbnail = $("#imagenumber-" + imagenumber );
1566 var copy = thumbnail.html();
1567 thumbnail.find("img").css("opacity", ".2");
1568 thumbnail.find("a.remove").html("<img style='display:inline-block' src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' />");
1570 url: "/cgi-bin/koha/svc/cover_images?action=delete&imagenumber=" + imagenumber,
1571 success: function(data) {
1572 $(data).each( function(i) {
1573 if ( this.deleted == 1 ) {
1576 thumbnail.html( copy );
1577 alert(_("An error occurred on deleting this image"));
1579 if ( $('ul.thumbnails > li').length == 0 ) {
1580 showNoImageMessage();
1584 error: function(data) {
1585 thumbnail.html( copy );
1586 alert(_("An error occurred on deleting this image"));
1591 function showNoImageMessage() {
1592 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
1593 no_images_msg = '<p>' + no_images_msg + '</p>';
1594 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
1595 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>");
1596 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
1598 $('#images').html(no_images_msg);
1601 [% IF StaffDetailItemSelection %]
1602 function itemSelectionBuildDeleteLink(div) {
1603 var itemnumbers = new Array();
1604 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
1605 itemnumbers.push($(this).val());
1607 if (itemnumbers.length > 0) {
1608 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
1609 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
1610 url += '&biblionumber=[% biblionumber | uri %]';
1611 url += '&src=CATALOGUING';
1612 $('a.itemselection_action_delete').attr('href', url);
1619 function itemSelectionBuildModifyLink(div) {
1620 var itemnumbers = new Array();
1621 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
1622 itemnumbers.push($(this).val());
1624 if (itemnumbers.length > 0) {
1625 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
1626 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
1627 url += '&biblionumber=[% biblionumber | uri %]';
1628 url += '&src=CATALOGUING';
1629 $('a.itemselection_action_modify').attr('href', url);
1636 function itemSelectionBuildActionLinks(tab) {
1637 var div = $("#" + tab);
1638 var delete_link_ok = itemSelectionBuildDeleteLink(div);
1639 var modify_link_ok = itemSelectionBuildModifyLink(div);
1640 if (modify_link_ok || delete_link_ok) {
1641 $('.itemselection_actions', div).show();
1643 $('.itemselection_actions', div).hide();
1647 $(document).ready(function() {
1648 $('table.items_table').each(function() {
1649 var div = $(this).parent().attr("id");
1650 itemSelectionBuildActionLinks(div);
1653 $("input[name='itemnumber'][type='checkbox']").change(function() {
1654 var div = $(this).parents('table').parent().parent().attr("id");
1655 itemSelectionBuildActionLinks(div);
1658 $(".SelectAll").on("click",function(e){
1660 var tab = $(this).data("tab");
1661 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
1662 itemSelectionBuildActionLinks(tab);
1665 $(".ClearAll").on("click",function(e){
1667 var tab = $(this).data("tab");
1668 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
1669 itemSelectionBuildActionLinks(tab);
1674 $(document).ready(function() {
1675 // Pick details tab to display by default
1677 [% IF ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) && HTML5MediaSets.size %]
1678 $(".nav-tabs a[href='#html5media']").tab("show");
1679 [% ELSIF ComponentParts && ComponentParts.size %]
1680 $(".nav-tabs a[href='#components']").tab("show");
1682 $(".nav-tabs a[href='#holdings']").tab("show");
1685 $(".nav-tabs a[href='#holdings']").tab("show");
1687 $('#search-form').focus();
1688 $('.thumbnails > li > .remove').click(function() {
1689 var result = confirm(_("Are you sure you want to delete this cover image?"));
1691 if ( result == true ) {
1692 var imagenumber = $(this).parent().attr('id').split('-')[1];
1693 removeLocalImage(imagenumber);
1698 [% IF ( IntranetCoce && CoceProviders ) %]
1699 KOHA.coce.getURL('[% CoceHost | html %]', '[% CoceProviders | html %]');
1702 $("body").on("click",".previewMARC", function(e){
1704 var page = $(this).attr("href");
1705 $("#marcPreview .modal-body").load(page + " table");
1706 $('#marcPreview').modal({show:true});
1708 $("#marcPreview").on("hidden.bs.modal", function(){
1709 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1711 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1712 novSelect.loadContentForQuery({
1713 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1714 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1717 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
1718 '[% Koha.Preference('NovelistSelectPassword') | html %]',
1720 if ( d.length > 0 ){ //If no content
1721 $(".NovelistSelect").show();
1725 $(".print-label").on("click", function(e){
1727 link = $(this).attr("href");
1728 openWindow(link,"Print spine label",400,400);
1730 $(".cover-slider").on("click",".cover-nav", function(e){
1732 var cover_slider = $(this).parent();
1733 // Adding click handler for cover image navigation links
1734 var num = $(this).data("num");
1735 $(cover_slider).find(".cover-nav").removeClass("nav-active");
1736 $(this).addClass("nav-active");
1737 $(cover_slider).find(".cover-image").hide();
1738 $(cover_slider).find(".cover-image").eq( num ).show();
1743 [% IF ( IntranetCoce && CoceProviders ) %]
1744 let counter_wait = 0;
1745 function wait_for_images(cb){
1751 loaded = KOHA.coce.done;
1754 if (!loaded && counter_wait < 50) {// Do not wait more than 5 seconds
1755 window.setTimeout(function(){wait_for_images(cb);}, 100);
1757 if (counter_wait >= 50 ) {
1758 console.log("Could not retrieve the images")
1764 $(window).load(function() {
1765 wait_for_images(verify_cover_images);
1768 $(window).load(function() {
1769 verify_cover_images();
1773 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1774 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1776 [% INCLUDE 'datatables.inc' %]
1777 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
1778 [% INCLUDE 'columns_settings.inc' %]
1779 [% INCLUDE 'js-date-format.inc' %]
1780 [% INCLUDE 'js-patron-format.inc' %]
1781 [% INCLUDE 'js-biblio-format.inc' %]
1782 [% Asset.js("js/browser.js") | $raw %]
1783 [% Asset.js("js/table_filters.js") | $raw %]
1786 browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
1789 [% IF bundlesEnabled %]
1790 var bundle_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail','bundle_tables','json') | $raw %];
1791 var bundle_lost_value = [% Koha.Preference('BundleLostValue') | html %];
1793 $(document).ready(function() {
1795 [% IF bundlesEnabled %] // Bundle handling
1796 function createChild ( row, itemnumber, duedate ) {
1799 var bundle_toolbar = $('<div id="toolbar" class="btn-toolbar"></div>');
1800 bundle_toolbar.append('<a class="btn btn-default" data-toggle="modal" data-target="#addToBundleModal" data-item="' + itemnumber + '"><i class="fa fa-plus"></i> ' + _("Add to bundle") + '</a>');
1801 bundle_toolbar.append('<a class="btn btn-default" data-toggle="modal" data-target="#removeFromBundleModal" data-item="' + itemnumber + '"><i class="fa fa-minus"></i> ' + _("Remove from bundle") + '</a>');
1803 // Disable management if there's a duedate
1805 bundle_toolbar.children('.btn').addClass("disabled");
1808 // This is the table we'll convert into a DataTable
1809 var bundles_table = $('<table class="display tbundle" data-itemnumber="'+itemnumber+'" id="bundle_table_'+itemnumber+'" width="100%"/>');
1811 // Display it the child row
1812 row.child( bundle_toolbar.add(bundles_table), 'bundle' ).show();
1814 // Initialise as a DataTable
1815 var bundle_table_url = "/api/v1/items/" + itemnumber + "/bundled_items?";
1816 var bundle_table = bundles_table.kohaTable({
1818 "url": bundle_table_url
1822 "return_claim.patron"
1824 "order": [[ 1, "asc" ]],
1826 "targets": [0,1,2,3],
1827 "render": function (data, type, row, meta) {
1828 if ( data && type == 'display' ) {
1829 return data.escapeHtml();
1836 "data": "biblio.title:biblio.subtitle:biblio.medium",
1837 "title": _("Title"),
1840 "render": function(data, type, row, meta) {
1841 return $biblio_to_html(row.biblio, { link: 1 });
1845 "data": "biblio.author",
1846 "title": _("Author"),
1851 "data": "callnumber",
1852 "title": _("Callnumber"),
1857 "data": "external_id",
1858 "title": _("Barcode"),
1863 "data": "lost_status:last_seen_date:return_claim.patron",
1864 "title": _("Status"),
1865 "searchable": false,
1867 "render": function(data, type, row, meta) {
1868 if ( row.lost_status == bundle_lost_value ) {
1869 let out = '<span class="lost">' + _("Last seen") + ': ' + $date(row.last_seen_date) + '</span>';
1870 if ( row.return_claim ) {
1871 out = out + '<span class="claims_return">' + _("Claims returned by") + ': ' + $patron_to_html( row.return_claim.patron, { display_cardnumber: false, url: true } ) + '</span>';
1875 else if ( row.lost_status !== 0 ) {
1876 return '<span class="lost">' + _("Lost") + ': ' + row.lost_status + '</span>';
1878 return '<span class="available">' + _("Present") + '</span>';
1882 "data": function( row, type, val, meta ) {
1885 result = '<button class="btn btn-default btn-xs remove disabled" role="button" data-itemnumber="'+row.item_id+'"><i class="fa fa-minus" aria-hidden="true"></i> '+_("Remove")+'</button>\n';
1887 result = '<button class="btn btn-default btn-xs remove" role="button" data-itemnumber="'+row.item_id+'"><i class="fa fa-minus" aria-hidden="true"></i> '+_("Remove")+'</button>\n';
1891 "title": _("Actions"),
1892 "searchable": false,
1897 }, bundle_settings, 1);
1898 $(".tbundle").on("click", ".remove:not(.disabled)", function(){
1899 var bundle_table = $(this).closest('table');
1900 var host_itemnumber = bundle_table.data('itemnumber');
1901 var component_itemnumber = $(this).data('itemnumber');
1902 var unlink_item_url = "/api/v1/items/" + host_itemnumber + "/bundled_items/" + component_itemnumber;
1905 url: unlink_item_url,
1906 success: function(){
1907 bundle_table.DataTable({ 'retrieve': true }).draw(false);
1916 var bundle_form_active;
1917 $("#addToBundleModal").on("shown.bs.modal", function(e){
1918 var button = $(e.relatedTarget);
1919 var item_id = button.data('item');
1920 $("#addResult").replaceWith('<div id="addResult"></div>');
1921 $("#addToBundleForm").attr('action', '/api/v1/items/' + item_id + '/bundled_items');
1922 $("#external_id").focus();
1924 bundle_form_active = item_id;
1927 $("#addToBundleForm").submit(function(event) {
1929 /* stop form from submitting normally */
1930 event.preventDefault();
1932 /* get the action attribute from the <form action=""> element */
1933 var $form = $(this),
1934 url = $form.attr('action');
1936 /* Send the data using post with external_id */
1937 var posting = $.post({
1939 data: JSON.stringify({ external_id: $('#external_id').val()}),
1940 contentType: "application/json; charset=utf-8",
1944 /* Report the results */
1945 posting.done(function(data) {
1946 var barcode = $('#external_id').val();
1947 $('#addResult').replaceWith('<div id="addResult" class="alert alert-success">'+_("Success: Added '%s'").format(barcode)+'</div>');
1948 $('#external_id').val('').focus();
1951 posting.fail(function(data) {
1952 var barcode = $('#external_id').val();
1953 if ( data.status === 409 ) {
1954 var response = data.responseJSON;
1955 if ( response.key === "PRIMARY" ) {
1956 $('#addResult').replaceWith('<div id="addResult" class="alert alert-warning">'+_("Warning: Item '%s' already attached").format(barcode)+'</div>');
1958 $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>');
1960 } else if ( data.status === 404 ) {
1961 $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' not found").format(barcode)+'</div>');
1962 } else if ( data.status === 400 ) {
1963 var response = data.responseJSON;
1964 if ( response.error === "Bundles cannot be nested" ) {
1965 $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' is a bundle and bundles cannot be nested").format(barcode)+'</div>');
1967 $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Check the logs for details")+'</div>');
1970 $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Check the logs for details")+'</div>');
1972 $('#external_id').val('').focus();
1976 $("#addToBundleModal").on("hidden.bs.modal", function(e){
1977 if ( bundle_changed ) {
1978 $('#bundle_table_'+bundle_form_active).DataTable({ 'retrieve': true }).ajax.reload();
1980 bundle_form_active = 0;
1984 $("#removeFromBundleModal").on("shown.bs.modal", function(e){
1985 var button = $(e.relatedTarget);
1986 var item_id = button.data('item');
1987 $("#removeResult").replaceWith('<div id="removeResult"></div>');
1988 $("#removeFromBundleForm").attr('action', '/api/v1/items/' + item_id + '/bundled_items/');
1989 $("#rm_external_id").focus();
1991 bundle_form_active = item_id;
1994 $("#removeFromBundleForm").submit(function(event) {
1996 /* stop form from submitting normally */
1997 event.preventDefault();
1999 /* get the action attribute from the <form action=""> element */
2000 var $form = $(this),
2001 url = $form.attr('action');
2003 var barcode = $('#rm_external_id').val();
2005 /* Fetch itemnumber using rm_external_id */
2006 var itemReq = $.get('/api/v1/items', { q: JSON.stringify({
2007 external_id: barcode
2008 }) }, null, "json");
2011 itemReq.done(function(data) {
2012 if (data.length === 1) {
2013 itemnumber = data[0].item_id;
2015 /* Remove link using fetch itemnumber */
2016 var deleteReq = $.ajax( url + itemnumber, {
2020 /* Report the results */
2021 deleteReq.done(function(data) {
2022 var barcode = $('#rm_external_id').val();
2023 $('#removeResult').replaceWith('<div id="removeResult" class="alert alert-success">'+_("Success: Removed '%s'").format(barcode)+'</div>');
2024 $('#rm_external_id').val('').focus();
2027 deleteReq.fail(function(data) {
2028 var barcode = $('#rm_external_id').val();
2029 if ( data.status === 409 ) {
2030 var response = data.responseJSON;
2031 if ( response.key === "PRIMARY" ) {
2032 $('#removeResult').replaceWith('<div id="removeResult" class="alert alert-warning">'+_("Warning: Item '%s' already attached").format(barcode)+'</div>');
2034 $('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>');
2036 } else if ( data.status === 404 ) {
2037 $('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' not found").format(barcode)+'</div>');
2039 $('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failure: Check the logs for details")+'</div>');
2041 $('#rm_external_id').val('').focus();
2044 $('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failed: Barcode matched more than one item '%s'").format(barcode)+'</div>');
2047 itemReq.fail(function(data) {
2048 $('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failed: Item not found '%s'").format(barcode)+'</div>');
2049 $('#rm_external_id').val('').focus();
2054 $("#removeFromBundleModal").on("hidden.bs.modal", function(e){
2055 if ( bundle_changed ) {
2056 $('#bundle_table_'+bundle_form_active).DataTable({ 'retrieve': true }).ajax.reload();
2058 bundle_form_active = 0;
2061 // End bundle handling
2064 var table_names = [ 'holdings_table', 'otherholdings_table' ];
2065 var table_settings = [ [% TablesSettings.GetTableSettings('catalogue', 'detail','holdings_table','json') | $raw %], [% TablesSettings.GetTableSettings('catalogue', 'detail','otherholdings_table','json') | $raw %] ];
2066 var has_images = [ "[% itemloop_has_images | html %]", "[% otheritemloop_has_images | html %]" ];
2067 table_names.forEach( function( table_name, index ) {
2068 if ( !has_images[index] ) {
2069 table_settings[index].columns.splice(1,1);
2071 var dt_parameters = {
2074 'bAutoWidth': false,
2075 "bKohaColumnsUseNames": true,
2076 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
2078 var table = KohaTable( table_name, dt_parameters, table_settings[index], 'with_filters' );
2080 [% IF bundlesEnabled %]
2081 // Add event listener for opening and closing bundle details
2082 $('#' + table_name + ' tbody').on('click', 'button.details-control', function () {
2083 var button = $(this);
2084 var tr = button.closest('tr');
2085 var dTable = button.closest('table').DataTable({ 'retrieve': true });
2087 var itemnumber = tr.data('itemnumber');
2088 var duedate = tr.data('duedate');
2089 var row = dTable.row( tr );
2091 if ( row.child.isShown() ) {
2092 // This row is already open - close it
2094 tr.removeClass('shown');
2095 button.removeClass('active');
2099 createChild(row, itemnumber, duedate);
2100 tr.addClass('shown');
2101 button.addClass('active');
2107 [% IF Koha.Preference('AcquisitionDetails') %]
2108 var table_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail', 'acquisitiondetails-table', 'json') | $raw %];
2109 var acquisitiondetails_table = KohaTable("orders", {
2110 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
2112 'bAutoWidth': false,
2113 "aaSorting": [[ 4, "desc" ]],
2117 [% IF suggestions.count %]
2118 $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
2120 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
2121 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
2123 "sPaginationType": "full"
2129 [% IF found1 && Koha.Preference('RetainCatalogSearchTerms') %]
2130 $(document).ready(function() {
2131 var search_index = localStorage.getItem("cat_search_pulldown_selection");
2132 var search_value = localStorage.getItem("searchbox_value");
2133 if ( search_index ){ $('#cat-search-block select.advsearch').val(search_index)};
2134 if ( search_value ){ $('#cat-search-block #search-form').val(search_value)};
2138 [% IF Koha.Preference('EnableItemGroups') %]
2139 // Load item groups table
2140 var itemGroupsTable = KohaTable("items-group-table", {
2141 "bAutoWidth": false,
2142 'sDom': '<"top pager"ilp>t<"bottom pager"ip>r',
2145 "mDataProp": function( oObj ) {
2146 return oObj.display_order;
2150 "mDataProp": function( oObj ) {
2151 return oObj.description;
2155 "mDataProp": function( oObj ) {
2156 [% IF CAN_user_editcatalogue_manage_item_groups %]
2157 return `<button class='item-group-edit btn btn-default btn-xs' data-item-group-id='${oObj.item_group_id}'>
2158 <i class='fa fa-edit'></i> ${_("Edit")}
2161 + `<button class='item-group-delete btn btn-default btn-xs' data-item-group-id='${oObj.item_group_id}'>
2162 <i class='fa fa-trash'></i> ${('Delete')}
2171 "bProcessing": true,
2172 "bServerSide": false,
2173 "sAjaxSource": `/api/v1/biblios/${biblionumber}/item_groups?_per_page=-1`,
2174 "sAjaxDataProp": "",
2175 "fnServerData": function ( sSource, aoData, fnCallback ) {
2176 $.getJSON( sSource, aoData, function (json) {
2182 // Create new item groups
2183 $('.item-group-create').on('click', function(){
2184 $('#modal-item-group-create-form-description').val("");
2185 $('#modal-item-group-create-submit').removeAttr('disabled');
2186 $('#modal-item-group-create').modal('show');
2189 $("#modal-item-group-create-form").validate({
2190 submitHandler: function(form) {
2192 url: `/api/v1/biblios/${biblionumber}/item_groups`,
2193 headers: { "x-koha-embed": "items" },
2194 success: function(item_groups){
2195 $('#modal-item-group-create-submit').attr('disabled', 'disabled');
2198 "url": `/api/v1/biblios/${biblionumber}/item_groups`,
2201 "Content-Type": "application/json"
2203 "data": JSON.stringify(
2205 "description": $("#modal-item-group-create-form-description").val(),
2206 "display_order": $("#modal-item-group-create-form-display_order").val(),
2212 .done(function (response) {
2213 $('#item-group-add-form-select').append($('<option>', {
2214 value: response.item_group_id,
2215 text: response.description
2218 $('#modal-item-group-create').modal('hide');
2219 if ( item_groups.length == 0 ) {
2220 // This bib has no previous item groups, reload the page
2221 window.location.replace(`/cgi-bin/koha/catalogue/detail.pl?biblionumber=${biblionumber}`);
2223 // Has other item groups, just reload the table
2224 itemGroupsTable.api().ajax.reload();
2227 .fail(function(err) {
2228 var message = err.responseJSON.error;
2236 $('#modal-item-group-create').on('shown.bs.modal', function () {
2237 $('#modal-item-group-create-form-description').focus();
2240 // Edit existing item groups
2241 $('body').on( 'click', '.item-group-edit', function(){
2242 const item_group_id = $(this).data('item-group-id');
2243 const url = `/api/v1/biblios/${biblionumber}/item_groups/${item_group_id}`;
2244 $.get( url, function( data ) {
2245 $('#modal-item-group-edit-form-description').val( data.description );
2246 $('#modal-item-group-edit-form-display_order').val( data.display_order );
2247 $('#modal-item-group-edit-submit').data('item-group-id', item_group_id );
2248 $('#modal-item-group-edit-submit').removeAttr('disabled');
2249 $('#modal-item-group-edit').modal('show');
2253 $("#modal-item-group-edit-form").validate({
2254 submitHandler: function(form) {
2255 $('#modal-item-group-edit-submit').attr('disabled', 'disabled');
2257 const item_group_id = $('#modal-item-group-edit-submit').data('item-group-id');
2258 const url = `/api/v1/biblios/${biblionumber}/item_groups/${item_group_id}`;
2264 "Content-Type": "application/json"
2266 "data": JSON.stringify(
2268 "description": $("#modal-item-group-edit-form-description").val(),
2269 "display_order": $("#modal-item-group-edit-form-display_order").val(),
2275 .done(function (response) {
2276 $('#modal-item-group-edit').modal('hide');
2277 itemGroupsTable.api().ajax.reload();
2279 .fail(function(err) {
2280 var message = err.responseJSON.error;
2286 $('#modal-item-group-edit').on('shown.bs.modal', function () {
2287 $('#modal-item-group-edit-form-description').focus();
2290 // Delete existing item groups
2291 $('body').on( 'click', '.item-group-delete', function(){
2292 const item_group_id = $(this).data('item-group-id');
2293 $('#modal-item-group-delete-submit').data('item-group-id', item_group_id );
2294 $('#modal-item-group-delete-submit').removeAttr('disabled');
2295 $('#modal-item-group-delete').modal('show');
2297 $("#modal-item-group-delete-submit").on('click', function(){
2298 $('#modal-item-group-delete-submit').attr('disabled', 'disabled');
2299 const item_group_id = $("#modal-item-group-delete-submit").data('item-group-id');
2302 url: `/api/v1/biblios/${biblionumber}/item_groups/${item_group_id}`,
2303 headers: { "x-koha-embed": "items" },
2304 success: function(item_group_data){
2306 "url": `/api/v1/biblios/${biblionumber}/item_groups/${item_group_id}`,
2309 .done(function (response) {
2310 $('#modal-item-group-delete').modal('hide');
2311 $(`#item-group-add-form-select option[value='${item_group_id}']`).remove();
2312 if ( item_group_data.items === null ) {
2313 // No items for this item group, we can just refresh the table
2314 itemGroupsTable.api().ajax.reload();
2316 // This item group had items attached to it, we need to reload the page
2317 window.location.replace(`/cgi-bin/koha/catalogue/detail.pl?biblionumber=${biblionumber}`);
2320 .fail(function(err) {
2321 var message = err.responseJSON.error;
2328 // Add item(s) to a item group
2329 $('.itemselection_action_item_group_set').on('click', function(){
2330 $('#modal-item-group-set').modal('show');
2333 $("#modal-item-group-set-form").validate({
2334 submitHandler: function(form) {
2335 $('#modal-item-group-set-submit').attr('disabled', 'disabled');
2337 const item_group_id = $('#item-group-add-form-select').val();
2339 let itemnumbers = new Array();
2340 $("input[name='itemnumber'][type='checkbox']:checked").each(function() {
2341 const itemnumber = $(this).val();
2342 itemnumbers.push( itemnumber );
2344 if (itemnumbers.length > 0) {
2345 let url = '/cgi-bin/koha/catalogue/detail.pl?op=set_item_group';
2346 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
2347 url += '&biblionumber=[% biblionumber | uri %]';
2348 url += `&item_group_id=${item_group_id}`;
2350 window.location.replace(url);
2353 $('#modal-item-group-set').modal('hide');
2357 // Remove item(s) from an item group
2358 $('.itemselection_action_item_group_unset').on('click', function(){
2359 $('#modal-item-group-unset').modal('show');
2362 $("#modal-item-group-unset-submit").on('click', function(){
2363 $('#modal-item-group-unset-submit').attr('disabled', 'disabled');
2365 let itemnumbers = new Array();
2366 $("input[name='itemnumber'][type='checkbox']:checked").each(function() {
2367 const itemnumber = $(this).val();
2368 itemnumbers.push( itemnumber );
2370 if (itemnumbers.length > 0) {
2371 let url = '/cgi-bin/koha/catalogue/detail.pl?op=unset_item_group';
2372 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
2373 url += '&biblionumber=[% biblionumber | uri %]';
2375 window.location.replace(url);
2378 $('#modal-item-group-unset').modal('hide');
2384 [% INCLUDE 'intranet-bottom.inc' %]