PINES Customization - Add library logo field to Org Unit rel_3_10_0_library_logo_field
authorTerran McCanna <tmccanna@georgialibraries.org>
Wed, 8 Feb 2023 14:17:44 +0000 (09:17 -0500)
committerTerran McCanna <tmccanna@georgialibraries.org>
Wed, 8 Feb 2023 16:14:22 +0000 (11:14 -0500)
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/eg2/src/app/staff/admin/server/org-unit.component.html
Open-ILS/src/sql/Pg/005.schema.actors.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.library_logo.sql [new file with mode: 0644]
Open-ILS/web/images/logos/pines.png [new file with mode: 0644]

index e62eb22..ed9a31e 100644 (file)
@@ -7277,6 +7277,7 @@ SELECT  usr,
                        <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"/>
+            <field name="library_logo" reporter:label="Library Logo" reporter:datatype="text"/>
                </fields>
                <links>
                        <link field="billing_address" reltype="has_a" key="id" map="" class="aoa"/>
index 19b803a..25fe4bc 100644 (file)
@@ -50,7 +50,7 @@
               [record]="currentOrg().isnew() ? currentOrg() : null"
               [recordId]="currentOrg().isnew() ? null : currentOrg().id()"
               [showDelete]="!orgHasChildren()"
-              fieldOrder="parent_ou,ou_type,name,shortname,phone,email,opac_visible,fiscal_calendar"
+              fieldOrder="parent_ou,ou_type,name,shortname,phone,email,library_logo,opac_visible,fiscal_calendar"
               hiddenFields="id,billing_address,mailing_address,holds_address,ill_address">
               <eg-fm-record-editor-action label="Add Child" i18n-label 
                 [disabled]="orgChildTypes().length === 0 || currentOrg().isnew()"
index 32971a6..52d3fef 100644 (file)
@@ -358,6 +358,7 @@ CREATE TABLE actor.org_unit (
        phone           TEXT,
        fscskey         TEXT,
        fscs_seq    TEXT,
+    library_logo 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.library_logo.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.library_logo.sql
new file mode 100644 (file)
index 0000000..a9b87f5
--- /dev/null
@@ -0,0 +1,5 @@
+BEGIN;
+
+ALTER TABLE actor.org_unit ADD COLUMN library_logo TEXT;
+
+COMMIT;
diff --git a/Open-ILS/web/images/logos/pines.png b/Open-ILS/web/images/logos/pines.png
new file mode 100644 (file)
index 0000000..00189f8
Binary files /dev/null and b/Open-ILS/web/images/logos/pines.png differ