<field reporter:label="Email Address" name="email" reporter:datatype="text"/>
<field reporter:label="Phone Number" name="phone" reporter:datatype="text"/>
<field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
+ <field reporter:label="Staff Visible" name="staff_visible" reporter:datatype="bool"/>
<field reporter:label="Fiscal Calendar" name="fiscal_calendar" reporter:datatype="link"/>
<field reporter:label="Users" name="users" oils_persist:virtual="true" reporter:datatype="link"/>
<field reporter:label="Closed Dates" name="closed_dates" oils_persist:virtual="true" reporter:datatype="link"/>
__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;
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);
--- /dev/null
+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;
}
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();
/>
</td>
</tr>
+ <tr>
+ <th>&conify.org_unit.editor_pane.staff_visible;</th>
+ <td>
+ <input
+ id="editor_pane_staff_visible"
+ jsId="editor_pane_staff_visible"
+ type="checkbox"
+ dojoType="dijit.form.CheckBox"
+ onChange="if (current_ou) ou_list_store.setValue( current_ou, 'staff_visible', this.checked ? 't' : 'f' );"
+ />
+ </td>
+ </tr>
</table>
<div dojoType="dijit.layout.ContentPane" orientation="horizontal" style="margin-bottom: 20px;">
<!ENTITY conify.org_unit.editor_pane.org_unit_type "Organization Unit Type">
<!ENTITY conify.org_unit.editor_pane.parent "Parent Organization Unit">
<!ENTITY conify.org_unit.editor_pane.opac_visible "OPAC Visible">
+<!ENTITY conify.org_unit.editor_pane.staff_visible "Staff Visible">
<!-- Hours of operation -->
<!ENTITY conify.org_unit.hoo_pane.title "Hours of Operation">
<!ENTITY conify.org_unit.hoo_pane.open_time "Open time">