From: Kyle Huckins Date: Thu, 17 Nov 2016 19:47:31 +0000 (-0800) Subject: LP#1502292 Add Volumes from Bib Record X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1515f43c22509e59e5f3ff7186ab923bd53a6369;p=working%2FEvergreen.git LP#1502292 Add Volumes from Bib Record Add 'Add Volumes' button to record summary pane to add a new volume for a record. Signed-off-by: Kyle Huckins Signed-off-by: Kathy Lussier modified: Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2 modified: Open-ILS/web/js/ui/default/staff/cat/catalog/app.js Signed-off-by: Kathy Lussier --- diff --git a/Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2 b/Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2 index c57b542b37..632c0be952 100644 --- a/Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2 +++ b/Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2 @@ -4,7 +4,7 @@
-
+
@@ -21,7 +21,10 @@ [% l('Back To Results') %] ( {{ search_result_index }} / {{ search_result_hit_count }} )
-
+
+ diff --git a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js index 9423e5059f..3b4846969e 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js @@ -954,12 +954,20 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e raw.push( {callnumber : v} ); }); } else if (vols) { - angular.forEach( - $scope.holdingsGridControls.selectedItems(), - function (item) { - raw.push({owner : item.owner_id}); - } - ); + if (typeof $scope.holdingsGridControls.selectedItems == "function" && + $scope.holdingsGridControls.selectedItems().length > 0) { + angular.forEach($scope.holdingsGridControls.selectedItems(), + function (item) { + raw.push({ + owner : item.owner_id, + label : item.call_number.label + }); + }); + } else { + raw.push({ + owner : egCore.auth.user().ws_ou() + }); + } } if (raw.length == 0) raw.push({});