From: Galen Charlton Date: Mon, 11 Sep 2017 15:13:57 +0000 (-0400) Subject: LP#1713151: display owning OU in volcopy editor location selector X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d02163c4f7a4c1b8223943c86da37bd2ca3f3a44;p=Evergreen.git LP#1713151: display owning OU in volcopy editor location selector This patch causes the short name of the OU that owns a location to be displayed after the location name in shelving location selectors in the item attribute and copy template editors. To test ------- [1] Edit an item and verify that the shelving location selector displays the org unit shortname in parentheses after the location name. [2] Verify that the location selector in the copy template portion also displays the OU short names. Signed-off-by: Galen Charlton Signed-off-by: Andrea Neiman Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 b/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 index 6e40e32c41..1d014916c0 100644 --- a/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 +++ b/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 @@ -183,7 +183,7 @@
diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index 285f5e8734..4a0c956a67 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -139,7 +139,14 @@ function(egCore , $q) { service.get_locations = function(orgs) { return egCore.pcrud.search('acpl', {owning_lib : orgs, deleted : 'f'}, - {order_by : { acpl : 'name' }}, {atomic : true} + { + flesh : 1, + flesh_fields : { + acpl : ['owning_lib'] + }, + order_by : { acpl : 'name' } + }, + {atomic : true} ); }; @@ -809,6 +816,7 @@ function(egCore , $q) { function($scope , $q , $window , $routeParams , $location , $timeout , egCore , egNet , egGridDataProvider , itemSvc , $uibModal) { $scope.forms = {}; // Accessed by t_attr_edit.tt2 + $scope.i18n = egCore.i18n; $scope.defaults = { // If defaults are not set at all, allow everything barcode_checkdigit : false, @@ -1845,6 +1853,8 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , controller : ['$scope','$window','itemSvc','egCore','ngToast', function ( $scope , $window , itemSvc , egCore , ngToast) { + $scope.i18n = egCore.i18n; + $scope.defaults = { // If defaults are not set at all, allow everything barcode_checkdigit : false, auto_gen_barcode : false,