Bugzilla – Attachment 177701 Details for
Bug 35202
Table settings should apply to multiple subscriptions in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35202: Table settings should apply to multiple subscriptions in the OPAC
Bug-35202-Table-settings-should-apply-to-multiple-.patch (text/plain), 3.06 KB, created by
PTFS Europe Sandboxes
on 2025-02-10 14:49:24 UTC
(
hide
)
Description:
Bug 35202: Table settings should apply to multiple subscriptions in the OPAC
Filename:
MIME Type:
Creator:
PTFS Europe Sandboxes
Created:
2025-02-10 14:49:24 UTC
Size:
3.06 KB
patch
obsolete
>From c6caeaa325d418f8b4cd02666bc7815894c45a82 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 <david@davidnind.com> >Signed-off-by: Ray Delahunty <lib-systems@arts.ac.uk> >--- > 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 ) %] > <p class="subscription_latestissues"> The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p> >- <table class="table table-bordered table-striped" id="subscriptionst"> >+ <table class="table table-bordered table-striped subscriptionst"> > <caption class="sr-only">Latest serials</caption> > <thead> > <tr> >@@ -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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35202
:
177653
|
177660
|
177701
|
177926
|
178088