Add Federal Codes to Org Units for Annual Reports
authorTerran McCanna <tmccanna@georgialibraries.org>
Thu, 29 Jul 2021 16:48:16 +0000 (12:48 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Sat, 19 Nov 2022 19:59:31 +0000 (14:59 -0500)
This adds two new fields to the org unit interface and makes
those fields available to the reporter.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/sql/Pg/005.schema.actors.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.federal_codes.sql [new file with mode: 0644]

index 67b4dd9..d976149 100644 (file)
@@ -7275,6 +7275,8 @@ SELECT  usr,
                        <field reporter:label="Resource Attributes" name="rsrc_attrs" oils_persist:virtual="true" reporter:datatype="link"/>
                        <field reporter:label="Attribute Values" name="attr_vals" oils_persist:virtual="true" reporter:datatype="link"/>
                        <field reporter:label="Hours of Operation" name="hours_of_operation" oils_persist:virtual="true" reporter:datatype="link"/>
+            <field name="fscskey" reporter:label="FSCSKEY" reporter:datatype="text"/>
+            <field name="fscs_seq" reporter:label="FSCS_SEQ" reporter:datatype="text"/>
                </fields>
                <links>
                        <link field="billing_address" reltype="has_a" key="id" map="" class="aoa"/>
index 1c6fb9d..afb2830 100644 (file)
@@ -335,6 +335,8 @@ CREATE TABLE actor.org_unit (
        name            TEXT    NOT NULL UNIQUE,
        email           TEXT,
        phone           TEXT,
+    fscskey     TEXT,
+    fscs_seq    TEXT,
        opac_visible    BOOL    NOT NULL DEFAULT TRUE,
        fiscal_calendar INT     NOT NULL DEFAULT 1   -- foreign key constraint to be added later
 );
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.federal_codes.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.federal_codes.sql
new file mode 100644 (file)
index 0000000..78af2e7
--- /dev/null
@@ -0,0 +1,5 @@
+BEGIN;
+
+ALTER TABLE actor.org unit ADD COLUMN fscskey TEXT, ADD COLUMN fscs_seq TEXT;
+
+COMMIT;
\ No newline at end of file