[open-ils-commits] r16245 - trunk/Open-ILS/web/js/dojo/openils (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Apr 15 16:10:40 EDT 2010


Author: dbs
Date: 2010-04-15 16:10:35 -0400 (Thu, 15 Apr 2010)
New Revision: 16245

Modified:
   trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js
Log:
Teach BibTemplate about locales, now that unapi has been wised up to their existence


Modified: trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js	2010-04-15 20:09:01 UTC (rev 16244)
+++ trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js	2010-04-15 20:10:35 UTC (rev 16245)
@@ -25,6 +25,7 @@
             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 @@
                 (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) {
 



More information about the open-ils-commits mailing list