]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/XXXX.data.stalling-YAOUS.sql
LP#1895052: Avoid foreign targets when local items exist
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / XXXX.data.stalling-YAOUS.sql
1 BEGIN;
2
3 SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
4
5 UPDATE config.org_unit_setting_type
6   SET description = $$How long to wait before allowing opportunistic capture of holds with a pickup library other than the context item's circulating library$$ -- ' vim
7   WHERE name = 'circ.hold_stalling.soft';
8
9 INSERT into config.org_unit_setting_type
10 ( name, grp, label, description, datatype, fm_class ) VALUES
11 ( 'circ.pickup_hold_stalling.soft',
12   'holds',
13   'Pickup Library Soft stalling interval',
14   'When set for the pickup library, this specifies that for holds with a request time age smaller than this interval only items scanned at the pickup library can be opportunistically captured. Example "5 days". This setting takes precedence over "Soft stalling interval" (circ.hold_stalling.soft) when the interval is in force.',
15   'interval',
16   null
17 );
18
19 INSERT into config.org_unit_setting_type
20 ( name, grp, label, description, datatype, fm_class ) VALUES
21 ( 'circ.pickup_hold_stalling.hard',
22   'holds',
23   'Pickup Library Hard stalling interval',
24   'When set for the pickup library, this specifies that no items with a calculated proximity greater than 0 from the pickup library can be directly targeted for this time period if there are local available copies.  Example "3 days".',
25   'interval',
26   null
27 );
28
29 COMMIT;
30