From 552cda754c7b6ec78f629e536628854071039aad Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Thu, 18 Oct 2018 14:21:36 +0100 Subject: [PATCH] Bug 21063: (follow-up) Add user ID to column list As originally specified in bug 20883, there is a requirement for some users to be able to display the user ID (borrowernumber) in the UI. This patch adds that ability to this bug, 20883 will be marked as a duplicate of this one. --- Koha/REST/V1/Illrequests.pm | 7 ++++--- admin/columns_settings.yml | 4 ++++ koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 3 ++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Koha/REST/V1/Illrequests.pm b/Koha/REST/V1/Illrequests.pm index 376e272a13..a53b8c6448 100644 --- a/Koha/REST/V1/Illrequests.pm +++ b/Koha/REST/V1/Illrequests.pm @@ -128,9 +128,10 @@ sub list { foreach my $p(@{$patron_arr}) { if ($p->{borrowernumber} == $req->borrowernumber) { $to_push->{patron} = { - firstname => $p->{firstname}, - surname => $p->{surname}, - cardnumber => $p->{cardnumber} + borrowernumber => $p->{borrowernumber}, + firstname => $p->{firstname}, + surname => $p->{surname}, + cardnumber => $p->{cardnumber} }; last; } diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 88cbde18fd..a5384fa722 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -321,6 +321,10 @@ modules: - columnname: orderid - + columnname: patron_borrowernumber + - + columnname: patron_cardnumber + - columnname: biblio_id - columnname: borrowernumber diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index c6b348b11f..dfcbb0d458 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -510,9 +510,10 @@ Pages Type Order ID + Patron ID + Patron barcode Biblio ID Patron - Patron barcode Branch Status   -- 2.11.0