From e5c6cdabe76f42903e4e8196a944dc0fc6e7918f Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 1 Apr 2025 14:27:34 +0000 Subject: [PATCH] Bug 39513: Correct OPAC subscription tables DataTable initialization This patch corrects an error in the OPAC subscription tables DataTable initialization which arose from merging of Bug 36553. The table should be initialized by class (see Bug 35202). To test you should have a bibliographic record with multiple subscriptions and items attached to each. - In the OPAC, view the detail page for that bibliographic record. - View the Subscriptions tab. All subscription tables should be sortable DataTables which follow the configuration set in staff client Administration -> Table settings -> OPAC -> subscriptionst. - Click another tab, e.g. Holdings. - Click back to the Subscriptions tab. The tables should remain the same: Sortable tables with no other DataTables controls. Sponsored-by: Athens County Public Libraries --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f87c37056a8..8792eb39122 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1890,7 +1890,7 @@ var serial_table_settings = [% TablesSettings.GetTableSettings( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %]; - $("#subscriptionst").kohaTable( + $(".subscriptionst").kohaTable( { dom: '<"clearfix">t', sorting: [[1, "desc"]], -- 2.39.5