From 3259a38f4098951dc7afbe805ee0e30a9647c460 Mon Sep 17 00:00:00 2001 From: Kyle Huckins Date: Thu, 6 Oct 2016 09:17:19 -0700 Subject: [PATCH] LP#1537223 Show Username on copy buckets Display bucket owner name on copy bucket in webstaff client. Signed-off-by: Kyle Huckins Changes to be committed: modified: Open-ILS/src/templates/staff/cat/bucket/copy/t_bucket_info.tt2 modified: Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js --- Open-ILS/src/templates/staff/cat/bucket/copy/t_bucket_info.tt2 | 1 + Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/Open-ILS/src/templates/staff/cat/bucket/copy/t_bucket_info.tt2 b/Open-ILS/src/templates/staff/cat/bucket/copy/t_bucket_info.tt2 index 877fcf6aaf..b5c7b8fac9 100644 --- a/Open-ILS/src/templates/staff/cat/bucket/copy/t_bucket_info.tt2 +++ b/Open-ILS/src/templates/staff/cat/bucket/copy/t_bucket_info.tt2 @@ -7,6 +7,7 @@ / [% l('Created {{bucket().create_time() | date}}') %] + / {{bucket()._owner_name}} / {{bucket().description()}} diff --git a/Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js b/Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js index e3b068e1e0..d2ace99568 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js @@ -153,6 +153,12 @@ angular.module('egCatCopyBuckets', deferred.reject(evt); return; } + egCore.pcrud.retrieve( + 'au', bucket.owner() + ).then(function(patron) { + bucket._owner_name = patron.usrname(); + }); + service.currentBucket = bucket; deferred.resolve(bucket); }); -- 2.11.0