]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0661.data.yaous-opac-tag-circed-items.sql
LP1893463: Follow-up to address de-duplication and adding release notes.
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0661.data.yaous-opac-tag-circed-items.sql
1 -- Evergreen DB patch 0661.data.yaous-opac-tag-circed-items.sql
2 --
3 -- Add org unit setting that enables users who have opted in to
4 -- tracking their circulation history to see which items they
5 -- have previously checked out in search results.
6 --
7 BEGIN;
8
9 -- check whether patch can be applied
10 SELECT evergreen.upgrade_deps_block_check('0661', :eg_version);
11
12 INSERT into config.org_unit_setting_type 
13     (name, grp, label, description, datatype) 
14     VALUES ( 
15         'opac.search.tag_circulated_items', 
16         'opac',
17         oils_i18n_gettext(
18             'opac.search.tag_circulated_items',
19             'Tag Circulated Items in Results',
20             'coust', 
21             'label'
22         ),
23         oils_i18n_gettext(
24             'opac.search.tag_circulated_items',
25             'When a user is both logged in and has opted in to circulation history tracking, turning on this setting will cause previous (or currently) circulated items to be highlighted in search results',
26             'coust', 
27             'description'
28         ),
29         'bool'
30     );
31
32
33 COMMIT;