From e2b565bba9b94e1ad9ba74485fd8b4eb7c709269 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 24 Oct 2017 19:19:09 -0300 Subject: [PATCH] Bug 16759: (Alternative followup) Handle otherholdings gracefuly Signed-off-by: Tomas Cohen Arazi --- .../opac-tmpl/bootstrap/en/modules/opac-detail.tt | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 528d7d29d2..af77f55660 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -654,7 +654,7 @@ [% IF too_many_items %]

This record has many physical items ([% items_count %]). Click here to view them all.

[% ELSIF ( itemloop.size ) %] - [% INCLUDE items_table items=itemloop tab="holdings" %] + [% INCLUDE items_table items=itemloop tab="holdings" table_id="holdingst" %] [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %] [% IF acquisition_details.total_quantity == 1 %] 1 item is on order. @@ -701,7 +701,7 @@ [% IF (SeparateHoldings) %]
[% IF (otheritemloop.size) %] - [% INCLUDE items_table items=otheritemloop tab="otherholdings" %] + [% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %] [% ELSE %] No other items. [% END %] @@ -1177,7 +1177,7 @@ [%# End of template %] [% BLOCK items_table %] - +
[% IF ( item_level_itypes ) %] @@ -1437,7 +1437,17 @@ }); var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) %]; - KohaTable(".holdingst", { + + KohaTable("#holdingst", { + dom: 'B<"clearfix">t', + "columnDefs": [ + { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, + { "sType": "title-string", "aTargets" : [ "title-string" ] } + ], + "bKohaColumnsUseNames": true + }, columns_settings); + + KohaTable("#otherholdingst", { dom: 'B<"clearfix">t', "columnDefs": [ { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, -- 2.14.3