From 75dadcfd340185ffed210fc93276d950ffd45a3f Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 11 Feb 2025 21:27:14 +0000 Subject: [PATCH] Bug 38939: Add reservenote column to members/holdshistory.pl To test: 1. APPLY PATCH, restart_all 2. Make some holds for patrons in both the staff client and the OPAC. ( For OPAC turn on OpacHoldNotes ) 3. Make sure you add some notes to each of these holds. 4. Go to the patron account and click on the 'Holds history' tab. 5. Make sure the hold note is there and looks correct. 6. Ensure you can hide the coluimn properly via Table settings. Signed-off-by: Andrew Auld --- admin/columns_settings.yml | 2 ++ .../prog/en/modules/members/holdshistory.tt | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index e2293a9930..54ef42fcc3 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -1422,6 +1422,8 @@ modules: columnname: itemtype - columnname: status + - + columnname: notes checkouthistory: checkouthistory-table: diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt index 7730c8a405..9272a18cc0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt @@ -97,6 +97,7 @@ Requested item type [% END %] Status + Notes @@ -141,6 +142,7 @@ Requested item type [% END %] Status + Notes @@ -323,6 +325,14 @@ return _("Pending"); } }, + { + data: "notes", + searchable: true, + orderable: true, + render: function (data, type, row, meta) { + return row.notes; + } + }, ], }, table_settings, true, additional_filters); } -- 2.39.5