<div class="col-md-6" ng-class="{'bg-success': working.location !== undefined}">
<select class="form-control"
ng-disabled="!defaults.attributes.location" ng-model="working.location"
- ng-options="l.id() as l.name() for l in location_list"
+ ng-options="l.id() as i18n.ou_qualified_location_name(l) for l in location_list"
></select>
</div>
<div class="col-md-6" ng-class="{'bg-success': working.opac_visible !== undefined}">
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}
);
};
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,
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,