From 5a894fc477be986a9220d9c757a8926e9ec0bc55 Mon Sep 17 00:00:00 2001 From: dbs Date: Thu, 15 Apr 2010 20:10:35 +0000 Subject: [PATCH] Teach BibTemplate about locales, now that unapi has been wised up to their existence git-svn-id: svn://svn.open-ils.org/ILS/trunk@16245 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/BibTemplate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/dojo/openils/BibTemplate.js b/Open-ILS/web/js/dojo/openils/BibTemplate.js index 6ed21195f2..f8be3653d4 100644 --- a/Open-ILS/web/js/dojo/openils/BibTemplate.js +++ b/Open-ILS/web/js/dojo/openils/BibTemplate.js @@ -25,6 +25,7 @@ if(!dojo._hasResource["openils.BibTemplate"]) { this.root = kwargs.root; this.record = kwargs.record; this.org_unit = kwargs.org_unit || '-'; + this.locale = kwargs.locale || 'en-US'; this.mode = 'biblio-record_entry'; this.default_datatype = 'marcxml-uris'; @@ -57,7 +58,7 @@ if(!dojo._hasResource["openils.BibTemplate"]) { (function (slot_list,dtype,mode,rec,org) { dojo.xhrGet({ - url: '/opac/extras/unapi?id=tag:opac:' + mode + '/' + rec + '/' + org + '&format=' + dtype, + url: '/opac/extras/unapi?id=tag:opac:' + mode + '/' + rec + '/' + org + '&format=' + dtype + '&locale=' + this.locale, handleAs: 'xml', load: function (bib) { -- 2.11.0