Bugzilla – Attachment 137218 Details for
Bug 30922
Make the "Relative's checkouts" table configurable by the table settings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30922: Make the "Relative's checkouts" table configurable by the table settings
Bug-30922-Make-the-Relatives-checkouts-table-confi.patch (text/plain), 6.24 KB, created by
Shi Yao Wang
on 2022-07-06 15:07:00 UTC
(
hide
)
Description:
Bug 30922: Make the "Relative's checkouts" table configurable by the table settings
Filename:
MIME Type:
Creator:
Shi Yao Wang
Created:
2022-07-06 15:07:00 UTC
Size:
6.24 KB
patch
obsolete
>From ca5e498cee445b866525962d9b3ec801bde7868f Mon Sep 17 00:00:00 2001 >From: Shi Yao Wang <shi-yao.wang@inlibro.com> >Date: Wed, 6 Jul 2022 10:47:03 -0400 >Subject: [PATCH] Bug 30922: Make the "Relative's checkouts" table configurable > by the table settings > >Adds "relatives-issues-table" in table settings. > >Test plan: >1- Apply the patch >2- Check out an item to a patron with a guarantor >3- Go to the guarantor's "details" and "check out" page > relatives' >checkouts and look at the different columns (you should see collection >and location) >4- Go to > admin > table settings > patron > moremember > relatives-issues-table > or > admin > table settings > circulation > circulation > >relatives-issues-table >to hide some columns (e.g. collection and location) and click save >5- Do step 3 again and notice some columns (e.g. collection and location) are hidden >--- > admin/columns_settings.yml | 82 +++++++++++++++++++ > .../prog/en/modules/circ/circulation.tt | 1 + > .../prog/en/modules/members/moremember.tt | 1 + > koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 4 +- > 4 files changed, 86 insertions(+), 2 deletions(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index 3c4f7c2d32..070603e7e9 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -938,6 +938,47 @@ modules: > cannot_be_toggled: 1 > cannot_be_modified: 1 > >+ relatives-issues-table: >+ columns: >+ - >+ columnname: due_date_unformatted >+ cannot_be_toggled: 1 >+ cannot_be_modified: 1 >+ is_hidden: 1 >+ - >+ columnname: due_date >+ - >+ columnname: title >+ - >+ columnname: record_type >+ - >+ columnname: item_type >+ - >+ columnname: collection >+ - >+ columnname: location >+ - >+ columnname: checkout_on_unformatted >+ cannot_be_toggled: 1 >+ cannot_be_modified: 1 >+ is_hidden: 1 >+ - >+ columnname: checkout_on >+ - >+ columnname: checkout_from >+ - >+ columnname: callno >+ - >+ columnname: copynumber >+ - >+ columnname: charge >+ - >+ columnname: fine >+ - >+ columnname: price >+ - >+ columnname: patron >+ > holdshistory: > holdshistory-table: > default_display_length: 20 >@@ -1209,6 +1250,47 @@ modules: > cannot_be_toggled: 1 > cannot_be_modified: 1 > >+ relatives-issues-table: >+ columns: >+ - >+ columnname: due_date_unformatted >+ cannot_be_toggled: 1 >+ cannot_be_modified: 1 >+ is_hidden: 1 >+ - >+ columnname: due_date >+ - >+ columnname: title >+ - >+ columnname: record_type >+ - >+ columnname: item_type >+ - >+ columnname: collection >+ - >+ columnname: location >+ - >+ columnname: checkout_on_unformatted >+ cannot_be_toggled: 1 >+ cannot_be_modified: 1 >+ is_hidden: 1 >+ - >+ columnname: checkout_on >+ - >+ columnname: checkout_from >+ - >+ columnname: callno >+ - >+ columnname: copynumber >+ - >+ columnname: charge >+ - >+ columnname: fine >+ - >+ columnname: price >+ - >+ columnname: patron >+ > table_borrowers: > columns: > - >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index f433448406..fde9cd14fb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -1061,6 +1061,7 @@ > [% INCLUDE 'calendar.inc' %] > <script> > table_settings_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %] >+ table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'relatives-issues-table', 'json' ) | $raw %] > table_settings_borrowers_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %] > > [% IF borrowernumber and patron %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >index bf90be1d45..3b34224fbd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -874,6 +874,7 @@ > <script> > > table_settings_issues_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'issues-table', 'json' ) | $raw %] >+ table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'relatives-issues-table', 'json' ) | $raw %] > > $(document).ready(function() { > $("#info_digests").tooltip(); >diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >index 965aec6cf0..afb2ca207f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >@@ -707,7 +707,7 @@ $(document).ready(function() { > var relativesIssuesTable; > $("#relatives-issues-tab").click( function() { > if ( ! relativesIssuesTable ) { >- relativesIssuesTable = $("#relatives-issues-table").dataTable($.extend(true, {}, dataTablesDefaults, { >+ relativesIssuesTable = KohaTable("relatives-issues-table", { > "bAutoWidth": false, > "sDom": "rt", > "aaSorting": [], >@@ -872,7 +872,7 @@ $(document).ready(function() { > fnCallback(json) > } ); > }, >- })); >+ }, table_settings_relatives_issues_table); > } > }); > >-- >2.25.1
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 30922
:
137218
|
137332
|
137334
|
139089