]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac/pages/main.ttk
581cef8d813c91a3a13b9ab4f654c6e53f10c513
[Evergreen.git] / Open-ILS / src / templates / opac / pages / main.ttk
1 [%
2
3         util_batch = [ 
4                         "js/util/md5.js",
5                         "js/util/webutils.js",
6                         "js/util/Cookie.js",
7                         "js/util/browser.js",
8                 ];
9
10         ils_batch = [
11                         "js/util/ils_utils.js",
12                         "js/util/web_fieldmapper.js", 
13                         "js/util/RemoteRequest.js"
14                         "js/util/ex.js",
15                         "js/util/UserSession.js",
16                 ];
17
18         widget_batch = [
19                         "js/widgets/xtree.js",
20                         "js/widgets/menu/ContextMenu.js",
21                         "js/widgets/menu/ContextMenuManager.js",
22                         "js/widgets/ProgressBar.js",
23                         "js/widgets/Box.js",
24                         "js/widgets/ListBox.js",
25                         "js/widgets/SideBar.js",
26                         "js/widgets/Survey.js",
27                 ];
28
29         page_batch = [
30                         "js/opac/Page.js",
31                         "js/opac/OPACStartPage.js",
32                         "js/opac/SearchBarFormChunk.js",
33                         "js/opac/SearchBarChunk.js",
34                         "js/opac/GlobalInit.js",
35                         "js/opac/LocationTree.js",
36                         "js/opac/LoginPage.js",
37                         "js/opac/AbstractRecordResultPage.js",
38                         "js/opac/HTMLChunks.js",
39                         "js/opac/XULEvents.js",
40                         "js/opac/MRResultPage.js",
41                         "js/opac/RecordResultPage.js",
42                         "js/opac/RecordDetailPage.js",
43                         "js/opac/LogoutPage.js",
44                         "js/opac/AboutPage.js",
45                         "js/opac/AdvancedSearchPage.js",
46                         "js/opac/MyOPACPage.js",
47                 ];
48
49
50 %]
51
52 [% BLOCK FASTJS;
53                 "<script language='javascript' src='/fastjs?";
54                 FOR file IN batch; 
55                         IF ! loop.first; "&"; END;
56                         "file=" _ file;
57                 END;
58                 "'></script>";
59         END;
60 %]
61
62 [% BLOCK JS;
63                 FOR file IN batch; 
64                         "<script language='javascript' src='/$file'></script>";
65                 END;
66         END;
67 %] 
68
69 <html>
70         <head>
71
72                 <script language='javascript' src='/js/util/JSON.js'></script>
73
74                 [%
75                         IF cgi.user_agent("MSIE");
76                                 INCLUDE FASTJS batch=util_batch; 
77                                 INCLUDE FASTJS batch=ils_batch; 
78                                 INCLUDE FASTJS batch=widget_batch; 
79                                 INCLUDE FASTJS batch=page_batch; 
80
81                         ELSE;
82                                 INCLUDE JS batch=util_batch;
83                                 INCLUDE JS batch=ils_batch;
84                                 INCLUDE JS batch=widget_batch;
85                                 INCLUDE JS batch=page_batch;
86                         END;
87                 %]
88
89                 <script language='javascript' src='/js/util/OrgTree.js'></script>
90
91                 [% top_target = cgi.param("top_target"); %]
92
93                 <frameset cols='100%'>
94
95                         <frame
96                                 style                   = "border:none; border:0px;" 
97                                 frameborder     = '0' 
98                                 height          = '100%'
99                                 width                   = '100%' 
100                                 name                    = 'appframe' 
101                                 id                              = 'appframe' 
102                                 src                     = '/opac/?target=[%- IF top_target; top_target; ELSE; "start";END; %]';
103                         />      
104
105                 </frameset>
106         
107         </head>
108
109
110 </html>
111
112