From c6caeaa325d418f8b4cd02666bc7815894c45a82 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 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 --- 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 81a39a502f..ab2c5f8d88 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -749,7 +749,7 @@ [% END %] [% IF ( subscription.latestserials ) %]

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

- +
@@ -1770,7 +1770,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, @@ -1782,7 +1782,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