From: Chris Sharp Date: Mon, 6 Aug 2018 15:08:11 +0000 (-0400) Subject: LP#1277194 - Add staff_visible column to actor.org_unit X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a7427ef1a6a1c7fba984a5e673d4115b2a395374;p=working%2FEvergreen.git LP#1277194 - Add staff_visible column to actor.org_unit --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index e9b2323360..6aba82e3d9 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -6698,6 +6698,7 @@ SELECT usr, + diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/CDBI/actor.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/CDBI/actor.pm index a4047f794e..edcab93a19 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/CDBI/actor.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/CDBI/actor.pm @@ -82,7 +82,7 @@ use base qw/actor/; __PACKAGE__->table( 'actor_org_unit' ); __PACKAGE__->columns( Primary => qw/id/); __PACKAGE__->columns( Essential => qw/parent_ou ou_type mailing_address billing_address - ill_address holds_address shortname name email phone opac_visible fiscal_calendar/); + ill_address holds_address shortname name email phone opac_visible fiscal_calendar staff_visible/); #------------------------------------------------------------------------------- package actor::org_unit::hours_of_operation; diff --git a/Open-ILS/src/sql/Pg/005.schema.actors.sql b/Open-ILS/src/sql/Pg/005.schema.actors.sql index 61d5baed27..0029db4580 100644 --- a/Open-ILS/src/sql/Pg/005.schema.actors.sql +++ b/Open-ILS/src/sql/Pg/005.schema.actors.sql @@ -345,6 +345,7 @@ CREATE TABLE actor.org_unit ( email TEXT, phone TEXT, opac_visible BOOL NOT NULL DEFAULT TRUE, + staff_visible BOOL NOT NULL DEFAULT TRUE, fiscal_calendar INT NOT NULL DEFAULT 1 -- foreign key constraint to be added later ); CREATE INDEX actor_org_unit_parent_ou_idx ON actor.org_unit (parent_ou); diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.lp1277194.schema.add_staff_visible_column_aou.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.lp1277194.schema.add_staff_visible_column_aou.sql new file mode 100644 index 0000000000..082a1b38cf --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.lp1277194.schema.add_staff_visible_column_aou.sql @@ -0,0 +1,7 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('XXXX', :eg_version); + +ALTER TABLE actor.org_unit ADD COLUMN staff_visible BOOLEAN NOT NULL DEFAULT TRUE; + +COMMIT; diff --git a/Open-ILS/web/conify/global/actor/org_unit.html b/Open-ILS/web/conify/global/actor/org_unit.html index aca9335523..d16008f578 100644 --- a/Open-ILS/web/conify/global/actor/org_unit.html +++ b/Open-ILS/web/conify/global/actor/org_unit.html @@ -196,6 +196,7 @@ } editor_pane_opac_visible.setChecked( this.store.getValue( current_ou, 'opac_visible' ) == 't' ? true : false ); + editor_pane_staff_visible.setChecked( this.store.getValue( current_ou, 'staff_visible' ) == 't' ? true : false ); hoo_load(); addr_load(); @@ -315,6 +316,18 @@ /> + + &conify.org_unit.editor_pane.staff_visible; + + + +
diff --git a/Open-ILS/web/opac/locale/en-US/conify.dtd b/Open-ILS/web/opac/locale/en-US/conify.dtd index c0cf5a7992..0d1683eae2 100644 --- a/Open-ILS/web/opac/locale/en-US/conify.dtd +++ b/Open-ILS/web/opac/locale/en-US/conify.dtd @@ -33,6 +33,7 @@ +