Bugzilla – Attachment 172453 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: made opac-readingrecord.pl table configurable
Bug-30221-made-opac-readingrecordpl-table-configur.patch (text/plain), 3.44 KB, created by
Arthur Suzuki
on 2024-10-07 12:08:24 UTC
(
hide
)
Description:
Bug 30221: made opac-readingrecord.pl table configurable
Filename:
MIME Type:
Creator:
Arthur Suzuki
Created:
2024-10-07 12:08:24 UTC
Size:
3.44 KB
patch
obsolete
>From 6e0ac45a0783fa3fbea3eb04659313131cd0420e Mon Sep 17 00:00:00 2001 >From: Arthur Suzuki <arthur.suzuki@biblibre.com> >Date: Mon, 7 Oct 2024 11:14:51 +0200 >Subject: [PATCH] Bug 30221: made opac-readingrecord.pl table configurable > >--- > admin/columns_settings.yml | 19 ++++++++++++++++- > .../en/modules/opac-readingrecord.tt | 21 ++++++++++--------- > 2 files changed, 29 insertions(+), 11 deletions(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index e5770acaf2..9ac13243b1 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -2173,7 +2173,6 @@ modules: > columnname: renew > - > columnname: fines >- > opac_user_relative_issues_table: > columns: > - >@@ -2186,6 +2185,24 @@ modules: > columnname: callnumber > - > columnname: relative >+ readingrec: >+ columns: >+ - >+ columnname: type >+ - >+ columnname: title >+ - >+ columnname: author >+ - >+ columnname: item_type >+ - >+ columnname: callnumber >+ - >+ columnname: vol_info >+ - >+ columnname: date >+ - >+ columnname: links > > serials: > subscription-detail: >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt >index 34aebe1983..2542782fa8 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt >@@ -114,16 +114,16 @@ > <caption class="sr-only">Checkout history</caption> > <thead> > <tr> >- <th style="display:none;" class="noExport">Type</th> >+ <th data-colname="type" style="display:none;" class="noExport">Type</th> > <th class="NoSort noExport"></th> >- <th class="all anti-the">Title</th> >- <th>Author</th> >- <th>Item type</th> >- <th>Call number</th> >- <th>Vol info</th> >- <th>Date</th> >+ <th data-colname="title" class="all anti-the">Title</th> >+ <th data-colname="author">Author</th> >+ <th data-colname="item_type">Item type</th> >+ <th data-colname="callnumber">Call number</th> >+ <th data-colname="vol_info">Vol info</th> >+ <th data-colname="date">Date</th> > [% IF Koha.Preference('OPACMySummaryHTML') %] >- <th class="NoSort noExport">Links</th> >+ <th data-colname="links" class="NoSort noExport">Links</th> > [% END %] > <th></th> > </tr> >@@ -234,9 +234,10 @@ > $('#sortform').submit(); > }); > >- var columns_settings = []; // Empty because there are no columns we want to be configurable >+ var columns_settings = [% TablesSettings.GetColumns( 'opac', 'patron_details', 'readingrec', 'json') | $raw %]; > var table = KohaTable("#readingrec", { >- "dom": '<"top"<"table_entries"i><"table_controls"fB>>t', >+ "dom": '<"top"<"table_entries"><"table_controls"fB>>t', >+ "bKohaColumnsUseNames": true, > "autoWidth": false, > "language": { > "search": "_INPUT_", >-- >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