From 28101e17a91066c392e882cb74cb8010a8e23b32 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 7 Feb 2025 17:46:44 +0000 Subject: [PATCH] Bug 35202: Table settings should apply to multiple subscriptions in the OPAC Content-Type: text/plain; charset=utf-8 This patch updates the bibliographic detail page in the OPAC so that if there are multiple subscriptions attached to one record, each table of issues under the subscriptions tab adheres to the settings defined in Table Settings. To test you should have at least two subscriptions attached to one record, and at least one issue of each subscription. - Apply the patch and view the record in the OPAC. - Under the "Subscriptions" tab there should be separate tables for each subscription, each of them a sortable DataTable. - In the staff interface, go to Administration -> Table settings -> OPAC -> subscriptionst - Select some columns to be hidden by default. - Return to the OPAC and confirm that each subscription table now reflects the change you made in table settings. Sponsored-by: Athens County Public Libraries Signed-off-by: David Nind Signed-off-by: Ray Delahunty Signed-off-by: Marcel de Rooy --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 6 +++--- 1 file changed, 3 insertions(+), 3 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 20d1543530..13dd977d5e 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -800,7 +800,7 @@ [% END %] [% IF ( subscription.latestserials ) %]

The [% subscription.opacdisplaycount | html %] latest issues for this subscription:

- +
@@ -1886,7 +1886,7 @@ var serial_table_settings = [% TablesSettings.GetTableSettings( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %]; - KohaTable("#subscriptionst", { + KohaTable(".subscriptionst", { dom: '<"clearfix">t', "sorting": [[ 1, "desc" ]], "bKohaColumnsUseNames": true, @@ -1898,7 +1898,7 @@ ], }, serial_table_settings); - var dTables = $("#holdingst,#subscriptionst,#otherholdingst"); + var dTables = $("#holdingst,.subscriptionst,#otherholdingst"); $('a[data-bs-toggle="tab"]').on('shown.bs.tab', function (event) { dTables.DataTable().responsive.recalc(); } ); -- 2.39.5
Latest serials