From: dbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Thu, 15 Apr 2010 20:10:35 +0000 (+0000)
Subject: Teach BibTemplate about locales, now that unapi has been wised up to their existence
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5a894fc477be986a9220d9c757a8926e9ec0bc55;p=evergreen%2Fmasslnc.git

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
---

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) {