using "barred" instead of "standing", though standing will stick around for now
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Feb 2006 03:42:07 +0000 (03:42 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Feb 2006 03:42:07 +0000 (03:42 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3085 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/actor.pm
Open-ILS/src/sql/Pg/005.schema.actors.sql
Open-ILS/xul/staff_client/server/patron/user_edit.js
Open-ILS/xul/staff_client/server/patron/user_edit.xml

index 60bcf52..d45267c 100644 (file)
@@ -17,7 +17,7 @@ __PACKAGE__->columns( Essential => qw/usrname email first_given_name
                                ident_type2 ident_value2 net_access_level
                                photo_url create_date expire_date credit_forward_balance
                                super_user usrgroup passwd card last_xact_id
-                               standing profile prefix suffix alert_message
+                               standing barred profile prefix suffix alert_message
                                day_phone evening_phone other_phone mailing_address/ );
 
 #-------------------------------------------------------------------------------
index fd5ed10..9746f08 100644 (file)
@@ -54,6 +54,7 @@ CREATE TABLE actor.usr (
        active                  BOOL            NOT NULL DEFAULT TRUE,
        master_account          BOOL            NOT NULL DEFAULT FALSE,
        super_user              BOOL            NOT NULL DEFAULT FALSE,
+       barred                  BOOL            NOT NULL DEFAULT FALSE,
        usrgroup                SERIAL          NOT NULL,
        claims_returned_count   INT             NOT NULL DEFAULT 0,
        credit_forward_balance  NUMERIC(6,2)    NOT NULL DEFAULT 0.00,
index f3a6ac2..263c81c 100644 (file)
@@ -18,7 +18,6 @@ var required_user_parts = {
        day_phone:'Daytime Phone',
        home_ou:'Home Library',
        profile:'Profile Group',
-       standing:'Standing',
 };
 
 var required_addr_parts = {
@@ -315,6 +314,10 @@ function init_editor (u) {
        x['user.super_user'].setAttribute('onchange','user.super_user(this.checked ? "t" : "f" )');
        if (cgi.param('adv')) x['user.super_user'].parentNode.parentNode.setAttribute('adv', 'false');
 
+       if (user.barred()) x['user.barred'].checked = true;
+       x['user.barred'].setAttribute('onchange','user.barred(this.checked ? "t" : "f" )');
+       if (cgi.param('adv')) x['user.barred'].parentNode.parentNode.setAttribute('adv', 'false');
+
        if (user.claims_returned_count()) x['user.claims_returned_count'].value = user.claims_returned_count();
        // onchange handled by func above
 
@@ -373,7 +376,8 @@ function init_editor (u) {
        x['user.ident_type2'].setAttribute('onchange','var x = this.options[this.selectedIndex].value; x ? user.ident_type2(x) : user.ident_type2(null);');
 
 
-       // set up the standing selector
+/*
+       // set up the barred checkbox
        req = new RemoteRequest( 'open-ils.actor', 'open-ils.actor.standings.retrieve' );
        req.send(true);
        standing_list = req.getResultObject();
@@ -390,6 +394,7 @@ function init_editor (u) {
        );
 
        x['user.standing'].setAttribute('onchange','user.standing(this.options[this.selectedIndex].value)');
+*/
 
        // set up the profile selector
        req = new RemoteRequest( 'open-ils.actor', 'open-ils.actor.groups.tree.retrieve' );
index 73b2a5c..a4be9dc 100644 (file)
                                <td class="value"><input type="checkbox" name="user.super_user" id="user.super_user" value="t"/></td>
                        </tr>
                        <tr class='advanced hideme'>
-                               <td class="label">Standing:</td>
-                               <td class="value"><select name="user.standing" id="user.standing"/></td>
+                               <td class="label">Barred:</td>
+                               <td class="value"><input type="checkbox" name="user.barred" id="user.barred" value="t"/></td>
                        </tr>
                        <tr>
                                <td class="label">Set as Family or Group Lead Account:</td>