[open-ils-commits] r10751 - in
trunk/Open-ILS/web/opac/skin/default/xml: common home
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Oct 3 11:47:39 EDT 2008
Author: erickson
Date: 2008-10-03 11:47:37 -0400 (Fri, 03 Oct 2008)
New Revision: 10751
Modified:
trunk/Open-ILS/web/opac/skin/default/xml/common/fonts.xml
trunk/Open-ILS/web/opac/skin/default/xml/home/homesearch.xml
Log:
added locale picker to home page. setting locale value in the selector on page load
Modified: trunk/Open-ILS/web/opac/skin/default/xml/common/fonts.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/xml/common/fonts.xml 2008-10-03 14:38:40 UTC (rev 10750)
+++ trunk/Open-ILS/web/opac/skin/default/xml/common/fonts.xml 2008-10-03 15:47:37 UTC (rev 10751)
@@ -7,7 +7,8 @@
<span style='vertical-align: top;'><a href="javascript:void(0);" onclick="setFontSize('large');"> &common.textsize.large; </a></span>
<span style='vertical-align: top;'> <span style="font-weight:bold;">|</span> </span>
<span style='vertical-align: top;'>&common.language;</span>
- <span id='translation_switch' dojoType="dijit.form.FilteringSelect" store="openils.I18N.localeStore" searchAttr="label" required="false">
+ <span id='translation_switch' dojoType="dijit.form.FilteringSelect" store="openils.I18N.localeStore"
+ searchAttr="label" required="false" value='<!--#echo var="locale"-->'>
<script type="dojo/label" event="onChange">
if (this.getValue()) {
location.href = location.href.replace( /opac\/[^\/]+\/skin/, 'opac/' + this.getValue() + '/skin');
Modified: trunk/Open-ILS/web/opac/skin/default/xml/home/homesearch.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/xml/home/homesearch.xml 2008-10-03 14:38:40 UTC (rev 10750)
+++ trunk/Open-ILS/web/opac/skin/default/xml/home/homesearch.xml 2008-10-03 15:47:37 UTC (rev 10751)
@@ -105,6 +105,19 @@
</td>
</tr>
+ <!-- locale picker -->
+ <tr><td align='center' valign='bottom' style='padding-top:10px;'>
+ <span style='vertical-align: top;'>&common.language;</span>
+ <span dojoType="dijit.form.FilteringSelect" store="openils.I18N.localeStore"
+ searchAttr="label" required="false" value='<!--#echo var="locale"-->'>
+ <script type="dojo/label" event="onChange">
+ if (this.getValue()) {
+ location.href = location.href.replace( /opac\/[^\/]+\/skin/, 'opac/' + this.getValue() + '/skin');
+ }
+ </script>
+ </span>
+ </td></tr>
+
</tbody>
</table>
More information about the open-ils-commits
mailing list