store the workstation shortname on the filesystem
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 10 Mar 2006 15:28:54 +0000 (15:28 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 10 Mar 2006 15:28:54 +0000 (15:28 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3321 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/main/ws_info.xul

index 1dae35d..9d11e90 100644 (file)
                                [ xulG.auth.session.key ]
                        );
 
+                       g.my_libs_hash = {};
+                       for (var i = 0; i < g.my_libs.length; i++) {
+                               g.my_libs_hash[ g.my_libs[i].id() ] = g.my_libs[i].shortname();
+                       }
+
                        g.my_lib = g.network.simple_request(
                                'FM_AU_RETRIEVE_VIA_SESSION',
                                [ xulG.auth.session.key ]
                                } else {
                                        netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect UniversalPreferencesWrite UniversalBrowserWrite UniversalPreferencesRead UniversalBrowserRead");
                                        g.data.ws_info[ xulG.auth.controller.view.server_prompt.value ] = { 
-                                               'name' : g.tb.value, 'owning_lib' : g.ml.value 
+                                               'name' : g.tb.value, 
+                                               'owning_lib' : g.ml.value,
+                                               'lib_shortname' : g.my_libs_hash[ g.ml.value ],
                                        };
                                        xulG.file.get('ws_info');
                                        xulG.file.set_object(g.data.ws_info);