Bugzilla – Attachment 174016 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), 4.04 KB, created by
Arthur Suzuki
on 2024-11-05 18:09:55 UTC
(
hide
)
Description:
Bug 30221: (QA follow-up) make holdshistory table configurable
Filename:
MIME Type:
Creator:
Arthur Suzuki
Created:
2024-11-05 18:09:55 UTC
Size:
4.04 KB
patch
obsolete
>From fc4ba5fe3f96b1e303d5b211f6a48cb188adfd32 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 > >--- > admin/columns_settings.yml | 22 +++++++++++++++++++ > .../bootstrap/en/modules/opac-holdshistory.tt | 22 +++++++++---------- > 2 files changed, 33 insertions(+), 11 deletions(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index 03bce02b12..46c17889e6 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -2280,6 +2280,28 @@ 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: > subscription-detail: >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 3e39a2725b..1709d1a054 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> >@@ -185,7 +185,7 @@ > $('#sort').change(function() { > $('#sortform').submit(); > }); >- var columns_settings = []; // Empty because there are no columns we want to be configurable >+ var columns_settings = [% TablesSettings.GetColumns( 'opac', 'patron_details', 'table_holdshistory', 'json') | $raw %]; > var table = KohaTable("#table_holdshistory", { > "dom": '<"top"<"table_entries"i><"table_controls"fB>>t', > "autoWidth": false, >-- >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