]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0812.data.add_library_info_url_OUS.sql
LP1893463: Follow-up to address de-duplication and adding release notes.
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0812.data.add_library_info_url_OUS.sql
1 -- Evergreen DB patch 0812.data.add_library_info_url_OUS.sql
2 --
3 -- Adds YAOUS for enabling information links from the TPAC to a library URL
4 --
5 BEGIN;
6
7 -- check whether patch can be applied
8 SELECT evergreen.upgrade_deps_block_check('0812', :eg_version);
9
10 -- FIXME: add/check SQL statements to perform the upgrade
11 INSERT into config.org_unit_setting_type
12 ( name, grp, label, description, datatype, fm_class ) VALUES
13 ( 'lib.info_url', 'lib',
14     oils_i18n_gettext('lib.info_url',
15         'Library information URL (such as "http://example.com/about.html")',
16         'coust', 'label'),
17     oils_i18n_gettext('lib.info_url',
18         'URL for information on this library, such as contact information, hours of operation, and directions. If set, the library name in the copy details section links to that URL. Use a complete URL, such as "http://example.com/hours.html".',
19         'coust', 'description'),
20     'string', null)
21 ;
22
23 COMMIT;