}
$e->update_action_circulation($circ) or return $e->die_event;
- $e->commit;
-
- # see if we need to also mark the copy as missing
- if($U->ou_ancestor_setting_value($circ->circ_lib, 'circ.claim_return.mark_missing')) {
- return $apputils->simplereq(
- 'open-ils.circ',
- 'open-ils.circ.mark_item_missing',
- $auth, $copy->id
- );
+ # see if there is a configured post-claims-return copy status
+ if(my $stat = $U->ou_ancestor_setting_value($circ->circ_lib, 'circ.claim_return.copy_status')) {
+ $copy->status($stat);
+ $copy->edit_date('now');
+ $copy->editor($e->requestor->id);
+ $e->update_asset_copy($copy) or return $e->die_event;
}
+ $e->commit;
return 1;
}
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0077'); -- atz
+INSERT INTO config.upgrade_log (version) VALUES ('0078'); -- berick
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
INSERT INTO action_trigger.reactor (module,description) VALUES ('ApplyPatronPenalty','Applies the conifigured penalty to a patron. Required named environment variables are "user", which refers to the user object, and "context_org", which refers to the org_unit object that acts as the focus for the penalty.');
+INSERT INTO config.org_unit_setting_type (name, label, description, datatype, fm_class)
+ VALUES (
+ 'circ.claim_return.copy_status',
+ 'Claim Return Copy Status',
+ 'Claims returned copies are put into this status. Default is to leave the copy in the Checked Out status'
+ 'link',
+ 'ccs',
+ );
+
--- /dev/null
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0078');
+
+UPDATE config.org_unit_setting_type
+ SET
+ name = 'circ.claim_return.copy_status',
+ fm_class = 'ccs',
+ datatype = 'link',
+ label = 'Claim Return Copy Status',
+ description = 'Claims returned copies are put into this status. Default is to leave the copy in the Checked Out status'
+ WHERE
+ name = 'circ.claim_return.mark_missing';
+
+COMMIT;
+