Bugzilla – Attachment 192160 Details for
Bug 30221
Make the tables on opac-user.tt column configurable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30221: (QA follow-up) make holdshistory table configurable
Bug-30221-QA-follow-up-make-holdshistory-table-con.patch (text/plain), 5.06 KB, created by
Arthur Suzuki
on 2026-01-29 15:49:05 UTC
(
hide
)
Description:
Bug 30221: (QA follow-up) make holdshistory table configurable
Filename:
MIME Type:
Creator:
Arthur Suzuki
Created:
2026-01-29 15:49:05 UTC
Size:
5.06 KB
patch
obsolete
>From 52200f52958659dd3006ad7891addeb0b271a77d Mon Sep 17 00:00:00 2001 >From: Arthur Suzuki <arthur.suzuki@biblibre.com> >Date: Tue, 5 Nov 2024 19:06:18 +0100 >Subject: [PATCH] Bug 30221: (QA follow-up) make holdshistory table > configurable > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > admin/columns_settings.yml | 23 +++++++++++++++++++ > .../bootstrap/en/includes/holds-table.inc | 2 +- > .../bootstrap/en/modules/opac-holdshistory.tt | 23 ++++++++++--------- > 3 files changed, 36 insertions(+), 12 deletions(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index ec2430dff70..f4737d0ad9c 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -2618,6 +2618,29 @@ modules: > columnname: checkout_branch > - > columnname: links >+ table_holdshistory: >+ columns: >+ - >+ columnname: title >+ - >+ columnname: author >+ - >+ columnname: barcode >+ - >+ columnname: library >+ - >+ columnname: hold_date >+ - >+ columnname: expiration_date >+ - >+ columnname: waiting_date >+ - >+ columnname: cancellation_date >+ - >+ columnname: item_type >+ - >+ columnname: status >+ > > serials: > claims: >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc >index e6b5cdc49cc..f2384fe7124 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc >@@ -27,7 +27,7 @@ > [% END %] > <th>Status</th> > [% IF SuspendHoldsOpac and ! onlyinfo %] >- <th data-colname="suspend" class="nosort" >Suspend</th> >+ <th data-colname="suspend" class="nosort">Suspend</th> > [% END %] > [% IF ! onlyinfo %] > <th data-colname="modify" class="nosort">Modify</th> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-holdshistory.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-holdshistory.tt >index 7a835870209..a25646d4777 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-holdshistory.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-holdshistory.tt >@@ -97,18 +97,18 @@ > <caption class="sr-only">Holds history</caption> > <thead> > <tr> >- <th class="anti-the">Title</th> >- <th>Author</th> >- <th>Barcode</th> >- <th>Library</th> >- <th>Hold date</th> >- <th>Expiration date</th> >- <th>Waiting date</th> >- <th>Cancellation date</th> >+ <th data-colname="title" class="anti-the">Title</th> >+ <th data-colname="author">Author</th> >+ <th data-colname="barcode">Barcode</th> >+ <th data-colname="checkout_branch">Library</th> >+ <th data-colname="hold_date">Hold date</th> >+ <th data-colname="expiration_date">Expiration date</th> >+ <th data-colname="waiting_date">Waiting date</th> >+ <th data-colname="cancellation_date">Cancellation date</th> > [% IF show_itemtype_column %] >- <th>Requested item type</th> >+ <th data-colname="item_type">Requested item type</th> > [% END %] >- <th>Status</th> >+ <th data-colname="status">Status</th> > </tr> > </thead> > <tbody> >@@ -196,6 +196,7 @@ > $("#sort").change(function () { > $("#sortform").submit(); > }); >+ var table_settings = [% TablesSettings.GetColumns( 'opac', 'patron_details', 'table_holdshistory', 'json') | $raw %]; > var table = $("#table_holdshistory").kohaTable({ > dom: '<"top"<"table_entries"i><"table_controls"fB>>t', > autoWidth: false, >@@ -204,7 +205,7 @@ > search: "_INPUT_", > searchPlaceholder: _("Search"), > }, >- }); >+ }, table_settings); > }); > </script> > [% END %] >-- >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 30221
:
172214
|
172451
|
172452
|
172453
|
172454
|
172455
|
172456
|
172581
|
172610
|
172611
|
172613
|
172615
|
172616
|
172618
|
172620
|
174014
|
174015
|
174016
|
174046
|
174047
|
174048
|
192154
|
192155
|
192156
|
192157
|
192158
|
192159
| 192160 |
193361