LP#1537223 Show Username on copy buckets user/khuckins/lp1537223-copy-buckets-username
authorKyle Huckins <khuckins@catalystdevworks.com>
Thu, 6 Oct 2016 16:17:19 +0000 (09:17 -0700)
committerKyle Huckins <khuckins@catalystdevworks.com>
Tue, 18 Oct 2016 20:11:56 +0000 (13:11 -0700)
Display bucket owner name on copy bucket in webstaff
client.

Signed-off-by: Kyle Huckins <khuckins@catalystdevworks.com>
 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
Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js

index 877fcf6..b5c7b8f 100644 (file)
@@ -7,6 +7,7 @@
     </ng-pluralize>
   </span> 
   <span> / [% l('Created {{bucket().create_time() | date}}') %]</span>
+  <span ng-show="bucket()._owner_name"> / {{bucket()._owner_name}}</span>
   <span ng-show="bucket().description()"> / {{bucket().description()}}</span>
 </div>
 
index e3b068e..d2ace99 100644 (file)
@@ -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);
         });