label="[% l('Item as Damaged') %]"></eg-grid-action>
<eg-grid-action handler="selectedHoldingsMissing" group="[% l('Mark') %]"
label="[% l('Item as Missing') %]"></eg-grid-action>
+ <eg-grid-action handler="selectedHoldingsVolEdit" group="[% l('Edit') %]"
+ label="[% l('Selected Volumes') %]"></eg-grid-action>
+ <eg-grid-action handler="selectedHoldingsCopyEdit" group="[% l('Edit') %]"
+ label="[% l('Selected Copies') %]"></eg-grid-action>
<eg-grid-action handler="selectedHoldingsVolCopyEdit" group="[% l('Edit') %]"
- label="[% l('Selected Vols/Copies') %]"></eg-grid-action>
+ label="[% l('Selected Volumes and Copies') %]"></eg-grid-action>
<eg-grid-field label="[% l('Owning Library') %]" path="owner_label" flex="4" align="right" visible></eg-grid-field>
<eg-grid-field label="[% l('Call Number') %]" path="call_number.label" visible></eg-grid-field>
return cp_id_list;
}
- $scope.selectedHoldingsVolCopyEdit = function (){
+ spawnHoldingsEdit = function (hide_vols,hide_copies){
egCore.net.request(
'open-ils.actor',
'open-ils.actor.anon_cache.set_value',
- null, 'edit-these-copies', {record_id: $scope.record_id, copies: gatherSelectedHoldingsIds() }
+ null, 'edit-these-copies', {
+ record_id: $scope.record_id,
+ copies: gatherSelectedHoldingsIds(),
+ hide_vols : hide_vols,
+ hide_copies : hide_copies
+ }
).then(function(key) {
if (key) {
var url = egCore.env.basePath + 'cat/volcopy/' + key;
}
});
}
+ $scope.selectedHoldingsVolCopyEdit = function () { spawnHoldingsEdit(false,false) }
+ $scope.selectedHoldingsVolEdit = function () { spawnHoldingsEdit(false,true) }
+ $scope.selectedHoldingsCopyEdit = function () { spawnHoldingsEdit(true,false) }
$scope.selectedHoldingsItemStatus = function (){
var url = egCore.env.basePath + 'cat/item/search/' + gatherSelectedHoldingsIds().join(',')