net access level in patron summary
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 18 Jul 2006 19:44:25 +0000 (19:44 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 18 Jul 2006 19:44:25 +0000 (19:44 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5070 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js
Open-ILS/xul/staff_client/chrome/content/main/constants.js
Open-ILS/xul/staff_client/server/patron/summary.js
Open-ILS/xul/staff_client/server/patron/summary_overlay.xul

index e2ac577..9714bbb 100644 (file)
@@ -283,6 +283,27 @@ OpenILS.data.prototype = {
                this.chain.push(
                        function() {
                                var f = gen_fm_retrieval_func(
+                                       'cnal',
+                                       [
+                                               api.FM_CNAL_RETRIEVE.app,
+                                               api.FM_CNAL_RETRIEVE.method,
+                                               [ obj.session.key ],
+                                               false
+                                       ]
+                               );
+                               try {
+                                       f();
+                               } catch(E) {
+                                       var error = 'Error: ' + js2JSON(E);
+                                       obj.error.sdump('D_ERROR',error);
+                                       throw(E);
+                               }
+                       }
+               );
+
+               this.chain.push(
+                       function() {
+                               var f = gen_fm_retrieval_func(
                                        'au',
                                        [
                                                api.FM_AU_RETRIEVE_VIA_SESSION.app,
index 1050dd9..9c29e42 100644 (file)
@@ -86,6 +86,7 @@ const api = {
        'FM_CIRC_EDIT_DUE_DATE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.circulation.due_date.update' },
        'FM_CIT_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.ident_types.retrieve' },
        'FM_CITM_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.item_type_map.retrieve.all' },
+       'FM_CNAL_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.net_access_level.retrieve.all' },
        'FM_CNCT_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.non_cat_types.retrieve.all' },
        'FM_CRAHP_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.config.rules.age_hold_protect.retrieve.all' },
        'FM_CST_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.standings.retrieve' },
index 5263b87..1dfa509 100644 (file)
@@ -72,6 +72,19 @@ patron.summary.prototype = {
                                                        };
                                                }
                                        ],
+                                       'patron_net_access' : [
+                                               ['render'],
+                                               function(e) {
+                                                       return function() { 
+                                                               e.setAttribute('value',
+                                                                       'Internet: ' + 
+                                                                       obj.OpenILS.data.hash.cnal[
+                                                                               obj.patron.net_access_level()
+                                                                       ].name()
+                                                               );
+                                                       };
+                                               }
+                                       ],
                                        'patron_standing' : [
                                                ['render'],
                                                function(e) {
index 792d21f..bd4737b 100644 (file)
@@ -45,6 +45,9 @@
                <row id="pdsgr5">
                        <label id="patron_library" class="homelib value"/>
                </row>
+               <row id="pdsgr5a">
+                       <label id="patron_net_access" class="net_access value"/>
+               </row>
        </rows></grid>
        <grid id="PatronSummaryStatus_grid" flex="1"/>