<field reporter:label="Code" name="code" reporter:datatype="text"/>
<field reporter:label="Description" name="description" reporter:datatype="text"/>
<field reporter:label="Owning Library" name="owning_lib" reporter:datatype="link"/>
+ <field reporter:label="Order Identifier" name="order_ident" reporter:datatype="bool"/>
</fields>
<links>
<link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
<field reporter:label="Name" name="attr_name" reporter:datatype="text" />
<field reporter:label="Value" name="attr_value" reporter:datatype="text" />
<field reporter:label="Definition" name="definition" reporter:datatype="text" />
+ <field reporter:label="Order Identifier" name="order_ident" reporter:datatype="bool" />
</fields>
<links>
<link field="lineitem" reltype="has_a" key="id" map="" class="jub"/>
lineitem BIGINT NOT NULL REFERENCES acq.lineitem (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
attr_type TEXT NOT NULL,
attr_name TEXT NOT NULL,
- attr_value TEXT NOT NULL
+ attr_value TEXT NOT NULL,
+ order_ident BOOLEAN NOT NULL DEFAULT FALSE
);
CREATE INDEX li_attr_li_idx ON acq.lineitem_attr (lineitem);
( 545, 'SAVED_FILTER_DIALOG_FILTERS', oils_i18n_gettext( 545,
'Allows users to save and load sets of filters for filter dialogs, available in certain staff interfaces', 'ppl', 'description')),
( 546, 'ADMIN_HOLD_CAPTURE_SORT', oils_i18n_gettext( 546,
- 'Allows a user to make changes to best-hold selection sort order', 'ppl', 'description'))
+ 'Allows a user to make changes to best-hold selection sort order', 'ppl', 'description')),
+ ( 547, 'ACQ_ADD_LINEITEM_IDENTIFIER', oils_i18n_gettext(547,
+ 'When granted, newly added lineitem identifiers will propagate to linked bib records', 'ppl', 'description')),
+ ( 548, 'ACQ_SET_LINEITEM_IDENTIFIER', oils_i18n_gettext(549,
+ 'Allows staff to change the lineitem identifier', 'ppl', 'description'))
;
--- /dev/null
+
+BEGIN;
+
+ALTER TABLE acq.lineitem_attr
+ ADD COLUMN order_ident BOOLEAN NOT NULL DEFAULT FALSE;
+
+INSERT INTO permission.perm_list ( id, code, description ) VALUES (
+ 547, -- VERIFY
+ 'ACQ_ADD_LINEITEM_IDENTIFIER',
+ oils_i18n_gettext(
+ 547,-- VERIFY
+ 'When granted, newly added lineitem identifiers will propagate to linked bib records',
+ 'ppl',
+ 'description'
+ )
+);
+
+INSERT INTO permission.perm_list ( id, code, description ) VALUES (
+ 548, -- VERIFY
+ 'ACQ_SET_LINEITEM_IDENTIFIER',
+ oils_i18n_gettext(
+ 548,-- VERIFY
+ 'Allows staff to change the lineitem identifier',
+ 'ppl',
+ 'description'
+ )
+);
+
+COMMIT;