more locale switch work
[Evergreen.git] / Open-ILS / web / opac / skin / default / xml / common / js_common.xml
1         <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/utils.js' type='text/javascript'></script>
2         <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/config.js' type='text/javascript'></script>
3         <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/CGI.js' type='text/javascript'></script>
4         <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/Cookies.js' type='text/javascript'></script>
5         <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/md5.js' type='text/javascript'></script>
6
7         <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/slimtree.js' type='text/javascript'></script>
8
9         <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/JSON_v1.js' type='text/javascript'></script>
10         <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/fmcore.js' type='text/javascript'></script>
11         <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/fmgen.js' type='text/javascript'></script>
12         <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/opac_utils.js' type='text/javascript'></script>
13         <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/OrgTree.js' type='text/javascript'></script>
14         <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/OrgLasso.js' type='text/javascript'></script>
15         <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/org_utils.js' type='text/javascript'></script>
16         <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/RemoteRequest.js' type='text/javascript'></script>
17         <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/init.js' type='text/javascript'></script>
18         <script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/added_content.js' type='text/javascript'></script>
19
20         <!-- Some global js -->
21         <script language='javascript' type='text/javascript'>
22
23                 config.css.color_1 = "color_1";
24                 config.css.color_2 = "color_2";
25                 config.css.color_3 = "color_3";
26
27
28                 <!-- set up some global JS config variables, read from the Apache config -->
29                 var OILS_OPAC_IMAGES_HOST = null;
30                 <!--#if expr="$OILS_OPAC_IMAGES_HOST"-->
31                         OILS_OPAC_IMAGES_HOST = '<!--#echo var="OILS_OPAC_IMAGES_HOST"-->extras/ac/jacket/';
32                 <!--#endif -->
33
34         </script>
35
36     <!-- enable Dojo date picker -->
37     <script language='javascript' type="text/javascript">
38
39         var djConfig = {parseOnLoad: true, isDebug: false}, lang, bidi;
40
41         var locale = location.href.replace( /.+opac\/([^\/]+)\/skin.+/, '$1' );
42         if (!locale) locale = '<!--#echo var="locale"-->';
43
44         djConfig.locale = locale;
45
46     </script>
47
48     <script type="text/javascript" src='/js/dojo/dojo/dojo.js'></script>
49
50     <script language="javascript" type="text/javascript">
51         dojo.require("dijit._Calendar");
52         dojo.require("dijit.form.DateTextBox");
53         dojo.require("dojo.date.locale");
54         dojo.require("dojo.date.stamp");
55         dojo.require("dojo.parser");
56         dojo.require("openils.I18N");
57         dojo.require("dijit.form.FilteringSelect");
58     </script>