From 755124cb679734bb7f3c60c79f69701b10934ed7 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 Signed-off-by: Laura_Escamilla --- 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 f87c37056a..8792eb3912 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