This is an old revision of the document!
Table of Contents
New Developers Working Group
Save Grid Settings
This example added a workstation setting for the Monograph Parts Grid Preferences grid: https://bugs.launchpad.net/evergreen/+bug/1975852
Determine the Setting Name
For most simple interfaces, an easy way to determine what the setting name is supposed to be is to simply look at the URL path. In the example below, the path to that interface is:
/eg2/en-US/staff/catalog/record/parts
So the setting is going to be:
eg.grid.catalog.record.parts
Create Seed Data for New Installs
Update file: Open-ILS/src/sql/Pg/950.data.seed-values.sql
INSERT into config.workstation_setting_type (name, grp, datatype, label) VALUES ( 'eg.grid.catalog.record.parts', 'gui', 'object', oils_i18n_gettext( 'eg.grid.catalog.record.parts', 'Grid Config: catalog.record.parts', 'cwst', 'label' ) );
Create Upgrade Script for Existing Installs
New file: Open-ILS/src/sql/Pg/upgrade/XXXX.data.monograph_parts_grid.sql
Don't worry about trying to predict what the next sequential script number will be, just use "XXXX" and the core committer will update it at commit time.
BEGIN; -- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); INSERT into config.workstation_setting_type (name, grp, datatype, label) VALUES ( 'eg.grid.catalog.record.parts', 'gui', 'object', oils_i18n_gettext( 'eg.grid.catalog.record.parts', 'Grid Config: catalog.record.parts', 'cwst', 'label' ) ); COMMIT;