From 4d27d2ecfb5537fa069d9026fbcac48e7e2e3ba9 Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 10 Mar 2006 15:28:54 +0000 Subject: [PATCH] store the workstation shortname on the filesystem 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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/main/ws_info.xul b/Open-ILS/xul/staff_client/server/main/ws_info.xul index 1dae35d6f6..9d11e90fef 100644 --- a/Open-ILS/xul/staff_client/server/main/ws_info.xul +++ b/Open-ILS/xul/staff_client/server/main/ws_info.xul @@ -57,6 +57,11 @@ [ 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 ] @@ -97,7 +102,9 @@ } 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); -- 2.43.2