prev_check_time expire_time requestor usr cancel_cause
hold_type holdable_formats target cancel_time shelf_time
phone_notify email_notify selection_depth cancel_note
- pickup_lib current_copy request_lib frozen thaw_date
+ pickup_lib current_copy request_lib frozen thaw_date mint_condition
fulfillment_staff fulfillment_lib selection_ou cut_in_line/);
#-------------------------------------------------------------------------------
__PACKAGE__->columns( Essential => qw/call_number barcode creator create_date editor
edit_date copy_number status loan_duration circ_lib
fine_level circulate deposit price ref opac_visible
- circ_as_type circ_modifier deposit_amount location
+ circ_as_type circ_modifier deposit_amount location mint_condition
holdable dummy_title dummy_author deleted alert_message
age_protect/ );
@$all_copies = grep { isTrue($_->status->holdable) &&
isTrue($_->location->holdable) &&
isTrue($_->holdable) &&
- !isTrue($_->deleted)
+ !isTrue($_->deleted) &&
+ isTrue($hold->mint_condition) ? isTrue($_->mint_condition) : 1
} @$all_copies;
# let 'em know we're still working
COMMIT;
+ALTER TABLE auditor.action_hold_request ADD COLUMN mint_condition boolean NOT NULL DEFAULT TRUE;
+