Add 'Add Volumes' button to record summary pane to
add a new volume for a record.
Signed-off-by: Kyle Huckins <khuckins@catalystdevworks.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
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 <klussier@masslnc.org>
</div>
<div ng-show="record_id" class="row col-md-12 pad-vert">
- <div class="col-md-9">
+ <div class="col-md-8">
<button type="button" ng-disabled="from_route" class="btn btn-default" ng-click="opac_call('rdetailStart')">
[% l('Start') %]
</button>
[% l('Back To Results') %] ( {{ search_result_index }} / {{ search_result_hit_count }} )
</button>
</div>
- <div class="col-md-3">
+ <div class="col-md-4">
+ <button type="button" class="btn btn-default" ng-click="selectedHoldingsVolCopyAdd()">
+ [% l('Add Volumes') %]
+ </button>
<button type="button" class="btn btn-default" ng-click="add_to_record_bucket()">
[% l('Add To Bucket') %]
</button>
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({});