From c3ada14743a66e686f1ae5b2579c3a3b027739c9 Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Wed, 14 Sep 2011 13:58:27 -0400 Subject: [PATCH] Save MARC Default Template per-server In case you use multiple servers with different template lists Signed-off-by: Thomas Berezansky Signed-off-by: Dan Scott --- Open-ILS/xul/staff_client/server/cat/marc_new.xul | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/cat/marc_new.xul b/Open-ILS/xul/staff_client/server/cat/marc_new.xul index 859f410558..7a9209d074 100644 --- a/Open-ILS/xul/staff_client/server/cat/marc_new.xul +++ b/Open-ILS/xul/staff_client/server/cat/marc_new.xul @@ -66,7 +66,7 @@ if (typeof templates.ilsevent != 'undefined') throw(templates); var default_template; g.prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces['nsIPrefBranch']); - var default_template_key = 'oils.marc_new.default_template'; + var default_template_key = 'oils.marc_new.default_template.' + window.location.hostname; if(g.data.last_marc_template) default_template = g.data.last_marc_template; if(!default_template) { var has_key = g.prefs.prefHasUserValue(default_template_key); -- 2.11.0