Bug 33845: (follow-up) Rename config and add a second configuration section

This patch renames the table in the columns configuration to match the id
used in the templates

It also adds a section for the moremember table to alllow config of each page as we do for issues

Lastly we add the table controls as they exist on the issues tables

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2023-06-06 12:40:50 +00:00 committed by Tomas Cohen Arazi
parent 3ed84ea95d
commit 4e035ba8ae
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
4 changed files with 36 additions and 4 deletions

View File

@ -1072,6 +1072,38 @@ modules:
cannot_be_toggled: 1
cannot_be_modified: 1
holds-table:
columns:
-
columnname: reservedate
-
columnname: title
-
columnname: callnumber
-
columnname: itemtype
-
columnname: barcode
-
columnname: pickup_location
-
columnname: expirationdate
-
columnname: priority
-
columnname: notes
is_hidden: 1
-
columnname: delete
cannot_be_toggled: 1
cannot_be_modified: 1
-
columnname: suspend
cannot_be_toggled: 1
cannot_be_modified: 1
-
columnname: status
relatives-issues-table:
columns:
-
@ -1447,7 +1479,7 @@ modules:
columnname: phone
is_hidden: 1
holds_table:
holds-table:
columns:
-
columnname: reservedate

View File

@ -916,7 +916,7 @@
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 %]
table_settings_holds_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'holds_table', 'json' ) | $raw %]
table_settings_holds_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'holds-table', 'json' ) | $raw %]
[% IF borrowernumber and patron %]
if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){

View File

@ -717,7 +717,7 @@
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 %]
table_settings_holds_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'holds_table', 'json' ) | $raw %]
table_settings_holds_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'holds-table', 'json' ) | $raw %]
$(document).ready(function() {
$("#info_digests").tooltip();

View File

@ -128,7 +128,7 @@ $(document).ready(function() {
var title;
holdsTable = KohaTable("holds-table", {
"bAutoWidth": false,
"dom": "rt",
"dom": '<"table_controls"B>rt',
"aoColumns": [
{
"data": { _: "reservedate_formatted", "sort": "reservedate" }