From a19e2adb2fd0ffc7dab6a14eb037ffef364aaabf Mon Sep 17 00:00:00 2001 From: Cesar Velez Date: Thu, 20 Jul 2017 21:08:13 +0100 Subject: [PATCH] LP#1685929-Adds more XUL parity to Webstaff checkIn Grid context actiions like Add Items to Bucket, Show Holds on Bib, Show Last Few Circulations, Edit Item Attributes, Mark Item Missing Pieces, Print Spine Label, are missing from CheckIn in webstaff. Signed-off by: Cesar Velez --- .../src/templates/staff/circ/checkin/t_checkin_table.tt2 | 5 ++++- Open-ILS/web/js/ui/default/staff/circ/checkin/app.js | 13 +++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/templates/staff/circ/checkin/t_checkin_table.tt2 b/Open-ILS/src/templates/staff/circ/checkin/t_checkin_table.tt2 index 0ccf9e4bbe..c4a978861b 100644 --- a/Open-ILS/src/templates/staff/circ/checkin/t_checkin_table.tt2 +++ b/Open-ILS/src/templates/staff/circ/checkin/t_checkin_table.tt2 @@ -8,7 +8,10 @@ grid-controls="gridControls" persist-key="{{grid_persist_key}}" dateformat="{{$root.egDateAndTimeFormat}}"> - + + + diff --git a/Open-ILS/web/js/ui/default/staff/circ/checkin/app.js b/Open-ILS/web/js/ui/default/staff/circ/checkin/app.js index 099b1bea73..8009938c6e 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/checkin/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/checkin/app.js @@ -34,8 +34,8 @@ angular.module('egCheckinApp', ['ngRoute', 'ui.bootstrap', * Manages checkin */ .controller('CheckinCtrl', - ['$scope','$q','$window','$location','egCore','checkinSvc','egGridDataProvider','egCirc', -function($scope , $q , $window , $location , egCore , checkinSvc , egGridDataProvider , egCirc) { + ['$scope','$q','$window','$location','egCore','checkinSvc','egGridDataProvider','egCirc', 'itemSvc', +function($scope , $q , $window , $location , egCore , checkinSvc , egGridDataProvider , egCirc, itemSvc) { $scope.focusMe = true; $scope.checkins = checkinSvc.checkins; @@ -326,5 +326,14 @@ function($scope , $q , $window , $location , egCore , checkinSvc , egGridDataPro }); } + $scope.add_copies_to_bucket = function(items){ + var itemsIds = []; + angular.forEach(items, function(cp){ + itemsIds.push(cp.acp.id()); + }); + + itemSvc.add_copies_to_bucket(itemsIds); + } + }]) -- 2.11.0