handler="requestItems"></eg-grid-action>
<eg-grid-action label="[% l('Edit Selected Items') %]" group="[% l('Items') %]"
handler="spawnHoldingsEdit"></eg-grid-action>
+ <eg-grid-action label="[% l('Edit Call Numbers') %]" group="[% l('Items') %]"
+ handler="spawnCallNumberEdit"></eg-grid-action>
<eg-grid-action handler="showItems" group="[% l('Show') %]"
label="[% l('Open in Item Status') %]"></eg-grid-action>
<eg-grid-action handler="print_labels" group="[% l('Show') %]"
$scope.detachCopies(copies);
}
- $scope.spawnHoldingsEdit = function (copies) {
+ $scope.spawnHoldingsEdit = function() {
+ $scope.spawnEdit(true, false);
+ }
+
+ $scope.spawnCallNumberEdit = function() {
+ $scope.spawnEdit(false, true);
+ }
+
+ $scope.spawnEdit = function(hide_vols,hide_copies) {
var cp_list = []
angular.forEach($scope.gridControls.selectedItems(), function (i) {
cp_list.push(i.id);
- })
-
+ });
egCore.net.request(
'open-ils.actor',
'open-ils.actor.anon_cache.set_value',
null, 'edit-these-copies', {
record_id: 0, // false-y value for record_id disables record summary
copies: cp_list,
- hide_vols : true,
- hide_copies : false
+ hide_vols : hide_vols,
+ hide_copies : hide_copies
}
).then(function(key) {
if (key) {