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 <laura.escamilla@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Owen Leonard 2025-04-01 14:27:34 +00:00 committed by Katrin Fischer
parent 317b70b7b6
commit 8779674f1f
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 1 additions and 1 deletions

View File

@ -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"]],