From: miker Date: Wed, 21 Feb 2007 20:19:07 +0000 (+0000) Subject: adding library-hiding support X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2cfee99ac93bfb7a82ba03bb96e66e1f6acca1ae;p=Evergreen.git adding library-hiding support git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@6974 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/admin/ils_admin/setup/models.py b/Open-ILS/admin/ils_admin/setup/models.py index e3363c17c2..01d49283c4 100644 --- a/Open-ILS/admin/ils_admin/setup/models.py +++ b/Open-ILS/admin/ils_admin/setup/models.py @@ -154,6 +154,7 @@ class OrgUnit(models.Model): name = models.CharField(maxlength=200) email = models.EmailField(null=True, blank=True) phone = models.CharField(maxlength=200, null=True, blank=True) + opac_visible = models.BooleanField(blank=True) ill_address_id = models.ForeignKey(OrgAddress, db_column='ill_address', null=True, blank=True) holds_address_id = models.ForeignKey(OrgAddress, db_column='holds_address', null=True, blank=True) mailing_address_id = models.ForeignKey(OrgAddress, db_column='mailing_address', null=True, blank=True) diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index a85c8cf108..a1f76f5054 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -1253,6 +1253,7 @@ + diff --git a/Open-ILS/src/cgi-bin/lib-setup.cgi b/Open-ILS/src/cgi-bin/lib-setup.cgi index 1c67ba3a6d..a4186e68d5 100755 --- a/Open-ILS/src/cgi-bin/lib-setup.cgi +++ b/Open-ILS/src/cgi-bin/lib-setup.cgi @@ -23,9 +23,9 @@ my $cgi = new CGI; # setup part #------------------------------------------------------------------------------- -my %org_cols = ( qw/id SysID name Name parent_ou Parent ou_type OrgUnitType shortname ShortName email Email phone Phone/ ); +my %org_cols = ( qw/id SysID name Name parent_ou Parent ou_type OrgUnitType shortname ShortName email Email phone Phone opac_visible OPACVisible/ ); -my @col_display_order = ( qw/id name shortname ou_type email phone parent_ou/ ); +my @col_display_order = ( qw/id name shortname ou_type email phone opac_visible parent_ou/ ); if (my $action = $cgi->param('action')) { if ( $action eq 'Update' ) { @@ -248,12 +248,27 @@ if (my $action = $cgi->param('action')) { th($org_cols{email}), td("email() ."\">"), ); + print Tr( th($org_cols{phone}), td(""), ); print Tr( + th($org_cols{opac_visible}), + td("" + ), + ); + + print Tr( th($org_cols{parent_ou}), td("