This patch allows call numbers to be edited from
item status and copy buckets again, so long as there's
only a single bib record involved. Multi-record copy
edits result in only the items themselves being editable.
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
service.spawnHoldingsEdit = function (items,hide_vols,hide_copies){
var item_ids = [];
+ var record_ids = service.gatherSelectedRecordIds(items);
+
angular.forEach(items, function(i){
item_ids.push(i.id);
});
null,
'edit-these-copies',
{
- record_id: 0, // disables record summary
+ record_id: record_ids.length > 1 ? 0 : record_ids[0],
copies: item_ids,
raw: {},
hide_vols : hide_vols,