Revise the web client so that when one is in the copy bucket one can
select multiple entries and do "show status" on all of them.
Signed-off-by: Mike Risher <mrisher@catalyte.io>
Changes to be committed:
modified: Open-ILS/src/templates/staff/cat/bucket/copy/t_view.tt2
modified: Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js
handler="requestItems"></eg-grid-action>
<eg-grid-action label="[% l('Edit Selected Items') %]" group="[% l('Items') %]"
handler="spawnHoldingsEdit"></eg-grid-action>
+ <eg-grid-action handler="showItems" group="[% l('Show') %]"
+ label="[% l('Show Selected Items') %]"></eg-grid-action>
<eg-grid-action handler="print_labels" group="[% l('Show') %]"
label="[% l('Print Labels') %]"></eg-grid-action>
<eg-grid-action label="[% l('Transfer Selected Items to Marked Call Number') %]" group="[% l('Items') %]"
});
}
+ $scope.showItems = function() {
+ var cp_list = []
+ angular.forEach($scope.gridControls.selectedItems(), function (i) {
+ cp_list.push(i.id);
+ })
+ var url = egCore.env.basePath + '/cat/item/search/' + cp_list.join();
+ $timeout(function() { $window.open(url, '_blank') });
+ }
+
$scope.print_labels = function() {
var cp_list = []
angular.forEach($scope.gridControls.selectedItems(), function (i) {