moved id, css, name, etc. variables into their respective XML files
[working/Evergreen.git] / Open-ILS / web / opac / skin / default / xml / sidebar.xml
1 <?xml version='1.0'?>
2 <!DOCTYPE x [ <!ENTITY % ent SYSTEM "../../../locale/en-US/lang.dtd"> %ent; ] >
3
4 <!-- Navigation bar -->
5
6 <div id="sidebar_div" class="sidebar_div" xmlns:xi="http://www.w3.org/2001/XInclude">
7
8         <div class='sidebar_chunk color_1'>
9
10                 <div title="&navigate.home.title;" 
11                         id='home_link_div' class="side_bar_item">
12                         <a id='home_link' href='index.xml'>&navigate.home;</a>
13                 </div>
14         
15                 <div title="&navigate.advanced.title;"
16                         id='advanced_link_div' class="side_bar_item">
17                         <a id='advanced_link' href='advanced.xml'>&navigate.advanced;</a>
18                 </div>
19
20                 <div title="&navigate.myopac.title;"
21                         id='myopac_link_div' class="side_bar_item">
22                         <a  id='myopac_link' href='myopac/myopac.xml'>&navigate.myopac;</a>
23                 </div>
24
25                 <div title="&navigate.login.title;"
26                         id='login_link_div' class="side_bar_item">
27                         <a id='login_link' href='javascript:void(0);'>&navigate.login;</a>
28                 </div>
29
30                 <div title="&navigate.logout.title;"
31                         id='logout_link_div' class="side_bar_item hide_me">
32                         <a id='logout_link' href='javascript:void(0);'>&navigate.logout;</a>
33                 </div>
34
35
36                 <xi:include href="xulsidebar.xml"/>
37
38                 <!-- Informational sidebar components -->
39
40                 <div id='logged_in_as_div' title="&navigate.loggedinas.title;" class="side_bar_item hide_me">
41                         <span >&navigate.loggedinas; <b id='username_dest'> </b></span>
42                 </div>
43
44                 <div title="&navigate.titleGroupResults;" 
45                         id='mresult_link_div' class="side_bar_item hide_me">
46                         <span>&navigate.titleGroupResults;</span>
47                 </div>
48         
49                 <div title="&navigate.titleResults;"
50                         id='result_link_div' class="side_bar_item hide_me">
51                         <span>&navigate.titleResults;</span>
52                 </div>
53
54                 <div title="Record Details"
55                         id='rdetail_link_div' class="side_bar_item hide_me">
56                         <span>Record Details</span>
57                 </div>
58
59         </div>
60
61
62         <div id='subject_sidebar' class='sidebar_chunk hide_me'> 
63                 <div class='sidebar_header color_1'>&sidebar.relevantSubjects.headerLabel;</div>
64                 <ul style='margin-left: 1em; padding-left: 1em;'>
65                         <li id='subject_item' class='sidebar_extra_item'>
66                                 <a class='sidebar_extra_link' name='subject_item'> </a>
67                         </li>
68                 </ul>
69         </div>
70
71         <div id='author_sidebar' class='sidebar_chunk hide_me'> 
72                 <div class='sidebar_header color_1'>&sidebar.relevantAuthors.headerLabel;</div>
73                 <ul style='margin-left: 1em; padding-left: 1em;'>
74                         <li id='author_item' class='sidebar_extra_item'>
75                                 <a class='sidebar_extra_link' name='author_item'> </a>
76                         </li>
77                 </ul>
78         </div>
79
80         <div id='series_sidebar' class='sidebar_chunk hide_me'> 
81                 <div class='sidebar_header color_1'>&sidebar.relevantSeries.headerLabel;</div>
82                 <ul style='margin-left: 1em; padding-left: 1em;'>
83                         <li id='series_item' class='sidebar_extra_item'>
84                                 <a class='sidebar_extra_link' name='series_item'> </a>
85                         </li>
86                 </ul>
87         </div>
88
89
90         <!-- ============================================================================= -->
91         <!-- Our javascript -->
92         <script language='javascript' src='../js/sidebar.js'> </script>
93
94         <script language='javascript'>
95                 config.ids.sidebar = {};
96                 config.css.sidebar = {};
97                 config.names.sidebar = {};
98                 config.css.sidebar.item = {};
99                 config.ids.sidebar.home                         = 'home_link_div';
100                 config.ids.sidebar.advanced             = 'advanced_link_div';
101                 config.ids.sidebar.myopac                       = 'myopac_link_div';
102                 config.ids.sidebar.prefs                        = 'prefs_link_div';
103                 config.ids.sidebar.mresult                      = 'mresult_link_div';
104                 config.ids.sidebar.rresult                      = 'result_link_div';
105                 config.ids.sidebar.rdetail                      = "rdetail_link_div"; 
106                 config.ids.sidebar.login                        = 'login_link';
107                 config.ids.sidebar.logout                       = 'logout_link';
108                 config.ids.sidebar.logoutbox            = 'logout_link_div';
109                 config.ids.sidebar.loginbox             = 'login_link_div';
110                 config.ids.sidebar.logged_in_as = 'logged_in_as_div';
111                 config.ids.sidebar.username_dest        = 'username_dest';
112                 config.ids.sidebar.subject                      = 'subject_sidebar';
113                 config.ids.sidebar.subject_item = 'subject_item';
114                 config.ids.sidebar.author                       = 'author_sidebar';
115                 config.ids.sidebar.author_item  = 'author_item';
116                 config.ids.sidebar.series                       = 'series_sidebar';
117                 config.ids.sidebar.series_item  = 'series_item';
118                 
119                 config.ids.sidebar.home_link            = 'home_link'
120                 config.ids.sidebar.advanced_link        = 'advanced_link'
121                 config.ids.sidebar.myopac_link  = 'myopac_link'
122                 
123                 config.names.sidebar.subject_item       = 'subject_item';
124                 config.names.sidebar.author_item                = 'author_item';
125                 config.names.sidebar.series_item                = 'series_item';
126         </script>
127
128 </div>
129