From 47c27b413e46ccc3982e6ef30e33ff5036d9c4f4 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 29 Jun 2009 21:14:29 +0000 Subject: [PATCH] fetch org setting types from server now. yay. git-svn-id: svn://svn.open-ils.org/ILS/trunk@13483 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js | 1 + .../staff_client/server/admin/org_unit_settings.js | 15 ++ .../server/admin/org_unit_settings.xhtml | 176 --------------------- 3 files changed, 16 insertions(+), 176 deletions(-) diff --git a/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js b/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js index 901d87d08..9a6927504 100644 --- a/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js +++ b/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js @@ -203,6 +203,7 @@ if(!dojo._hasResource["fieldmapper.Fieldmapper"]){ fieldmapper.rxpt.Identifier = 'xact'; fieldmapper.cxt.Identifier = 'name'; fieldmapper.amtr.Identifier = 'matchpoint'; + fieldmapper.coust.Identifier = 'name'; } diff --git a/Open-ILS/xul/staff_client/server/admin/org_unit_settings.js b/Open-ILS/xul/staff_client/server/admin/org_unit_settings.js index 13bd9b34b..f7a2152e3 100644 --- a/Open-ILS/xul/staff_client/server/admin/org_unit_settings.js +++ b/Open-ILS/xul/staff_client/server/admin/org_unit_settings.js @@ -11,11 +11,13 @@ dojo.require('openils.CGI'); dojo.require('openils.User'); dojo.require('openils.Event'); dojo.require('openils.widget.OrgUnitFilteringSelect'); +dojo.require('openils.PermaCrud'); var authtoken; var contextOrg; var user; var workOrgs; +var osSettings = {}; function osInit(data) { authtoken = dojo.cookie('ses') || new openils.CGI().param('ses'); @@ -42,6 +44,19 @@ function osInit(data) { dojo.addOnLoad(osInit); function osDraw() { + var types = new openils.PermaCrud({authtoken:authtoken}).retrieveAll('coust'); + + dojo.forEach(types, + function(type) { + osSettings[type.name()] = { + label : type.label(), + desc : type.description(), + type : type.datatype(), + fm_class : type.fm_class() + } + } + ); + var names = []; for(var key in osSettings) names.push(key); diff --git a/Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml b/Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml index e3f5c862c..32367d65f 100644 --- a/Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml +++ b/Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml @@ -26,182 +26,6 @@ -
-- 2.11.0