source: main/trunk/greenstone3/web/WEB-INF/servlets.xml@ 36111

Last change on this file since 36111 was 36111, checked in by kjdon, 7 months ago

moved each servlet-mapping next to its servlet definition for ease of customization. Added a new init-param - servlet_url_prefix - if you have a non standard url, put the prefix here. This is replacing the old way of adding siteURL metadata into siteConfig

File size: 7.8 KB
Line 
1<servlet>
2 <servlet-name>library</servlet-name>
3 <description>The standard gsdl3 library program</description>
4 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
5 <!-- this is the servlet url path - needs to match what you have specified in servlet-mapping below -->
6 <init-param>
7 <param-name>library_name</param-name>
8 <param-value>library</param-value>
9 </init-param>
10 <!-- If you are using a non-custom url, eg www.greenstone.org/greenstone3/library, add it here
11 It should start with // (hot http) and end with /
12 It's everything not including the servlet name specified above -->
13 <!--
14 <init-param>
15 <param-name>servlet_prefix_url</param-name>
16 <param-value>//www.greenstone.org/greenstone3/</param-value>
17 </init-param>
18 -->
19 <init-param>
20 <param-name>site_name</param-name>
21 <param-value>localsite</param-value>
22 </init-param>
23 <init-param>
24 <param-name>interface_name</param-name>
25 <param-value>default</param-value>
26 </init-param>
27 <init-param>
28 <param-name>receptionist_class</param-name>
29 <param-value>DefaultReceptionist</param-value>
30 </init-param>
31 <init-param>
32 <param-name>default_lang</param-name>
33 <param-value>en</param-value>
34 </init-param>
35 <init-param>
36 <!-- Does this servlet provide a favourites option? true/false-->
37 <param-name>favouritebasket</param-name>
38 <param-value>true</param-value>
39 </init-param>
40 <init-param>
41 <!-- Does this servlet provide a documentbasket option? true/false.
42Note, this currently doesn't work properly -->
43 <param-name>documentbasket</param-name>
44 <param-value>false</param-value>
45 </init-param>
46
47 <!--
48 The cookie consent manager is a component of the default interface that alerts the end user
49 to Greenstone's cookie usage. It also allows them to consent to non-essential cookies.
50 It can be customised by editing the 'cookieconsent-init.js' file in the default interface's 'js' folder.
51 To disable the manager for all interfaces that support it, remove or comment out this entire parameter.
52 -->
53 <init-param>
54 <param-name>cookie_consent</param-name>
55 <param-value>comment_this_entire_param_to_disable</param-value>
56 </init-param>
57
58 <!--
59 <init-param>
60 <param-name>google_tracking_id</param-name>
61 <param-value>UA-?????.....?????</param-value>
62 </init-param>
63 -->
64 <!-- For Google Authenticated Signin, need to specify the client-id (*not* the secret one)
65 <init-param>
66 <param-name>googlesignin_client_id</param-name>
67 <param-value>?????.....?????.apps.googleusercontent.com</param-value>
68 </init-param>
69 -->
70</servlet>
71
72<!-- the /* in the url-pattern below is necessary for the restful URLs to work.
73 e.g. greenstone3/library/collection/lucene-jdbm-demo/page/about
74-->
75<servlet-mapping>
76 <servlet-name>library</servlet-name>
77 <url-pattern>/library/*</url-pattern>
78</servlet-mapping>
79
80<servlet>
81 <servlet-name>halftone-library</servlet-name>
82 <description>A library servlet using the standard content, but with the halftone interface.</description>
83 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
84 <init-param>
85 <param-name>library_name</param-name>
86 <param-value>halftone-library</param-value>
87 </init-param>
88 <init-param>
89 <param-name>site_name</param-name>
90 <param-value>localsite</param-value>
91 </init-param>
92 <init-param>
93 <param-name>interface_name</param-name>
94 <param-value>halftone</param-value>
95 </init-param>
96 <init-param>
97 <param-name>receptionist_class</param-name>
98 <param-value>DefaultReceptionist</param-value>
99 </init-param>
100 <init-param>
101 <param-name>default_lang</param-name>
102 <param-value>en</param-value>
103 </init-param>
104
105 <!-- For Google Analytics -->
106 <!--
107 <init-param>
108 <param-name>google_tracking_id</param-name>
109 <param-value>UA-?????.....?????</param-value>
110 </init-param>
111 -->
112
113 <!-- For Google Authenticated Signin, need to specify the client-id (*not* the secret one) -->
114 <!--
115 <init-param>
116 <param-name>googlesignin_client_id</param-name>
117 <param-value>?????.....?????.apps.googleusercontent.com</param-value>
118 </init-param>
119 -->
120</servlet>
121
122<servlet-mapping>
123 <servlet-name>halftone-library</servlet-name>
124 <url-pattern>/halftone-library/*</url-pattern>
125</servlet-mapping>
126
127<!--<servlet>
128 <servlet-name>gs2-library</servlet-name>
129 <description>Greenstone 2 lookalike library program: uses localsite with the gs2 interface</description>
130 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
131 <init-param>
132 <param-name>library_name</param-name>
133 <param-value>gs2-library</param-value>
134 </init-param>
135 <init-param>
136 <param-name>site_name</param-name>
137 <param-value>localsite</param-value>
138 </init-param>
139 <init-param>
140 <param-name>interface_name</param-name>
141 <param-value>gs2</param-value>
142 </init-param>
143 <init-param>
144 <param-name>default_lang</param-name>
145 <param-value>en</param-value>
146 </init-param>
147 <init-param>
148 <param-name>session_expiration</param-name>
149 <param-value>1800</param-value>
150 </init-param>
151 <init-param>
152 <param-name>params_class</param-name>
153 <param-value>GS2Params</param-value>
154 </init-param>
155</servlet>
156
157<servlet-mapping>
158 <servlet-name>gs2-library</servlet-name>
159 <url-pattern>/gs2-library/*</url-pattern>
160</servlet-mapping>
161-->
162
163<!--<servlet>
164 <servlet-name>nzdl-library</servlet-name>
165 <description>gsdl3 library program</description>
166 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
167 <init-param>
168 <param-name>library_name</param-name>
169 <param-value>nzdl</param-value>
170 </init-param>
171 <init-param>
172 <param-name>site_name</param-name>
173 <param-value>nzdl</param-value>
174 </init-param>
175 <init-param>
176 <param-name>interface_name</param-name>
177 <param-value>nzdl</param-value>
178 </init-param>
179 <init-param>
180 <param-name>default_lang</param-name>
181 <param-value>en</param-value>
182 </init-param>
183 <init-param>
184 <param-name>params_class</param-name>
185 <param-value>NZDLParams</param-value>
186 </init-param>
187 <init-param>
188 <param-name>session_expiration</param-name>
189 <param-value>600</param-value>
190 </init-param>
191</servlet>
192
193<servlet-mapping>
194 <servlet-name>nzdl-library</servlet-name>
195 <url-pattern>/nzdl/*</url-pattern>
196</servlet-mapping>
197
198-->
199
200<!--<servlet>
201 <servlet-name>gateway</servlet-name>
202 <description>gsdl3 library based on gateway site and basic interface. It uses SOAP to talk to localsite</description>
203 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
204 <init-param>
205 <param-name>library_name</param-name>
206 <param-value>gateway</param-value>
207 </init-param>
208 <init-param>
209 <param-name>site_name</param-name>
210 <param-value>gateway</param-value>
211 </init-param>
212 <init-param>
213 <param-name>interface_name</param-name>
214 <param-value>basic</param-value>
215 </init-param>
216 <init-param>
217 <param-name>default_lang</param-name>
218 <param-value>en</param-value>
219 </init-param>
220</servlet>
221
222<servlet-mapping>
223 <servlet-name>gateway</servlet-name>
224 <url-pattern>/gateway/*</url-pattern>
225</servlet-mapping>
226-->
227
228<!--<servlet>
229 <servlet-name>basic-library</servlet-name>
230 <description>basic gsdl3 library program: uses localsite and the basic interface</description>
231 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
232 <init-param>
233 <param-name>library_name</param-name>
234 <param-value>basic-library</param-value>
235 </init-param>
236 <init-param>
237 <param-name>site_name</param-name>
238 <param-value>localsite</param-value>
239 </init-param>
240 <init-param>
241 <param-name>interface_name</param-name>
242 <param-value>basic</param-value>
243 </init-param>
244 <init-param>
245 <param-name>default_lang</param-name>
246 <param-value>en</param-value>
247 </init-param>
248 <init-param>
249 <param-name>allow_client_side_xslt</param-name>
250 <param-value>true</param-value>
251 </init-param>
252</servlet>
253
254<servlet-mapping>
255 <servlet-name>basic-library</servlet-name>
256 <url-pattern>/basic-library/*</url-pattern>
257</servlet-mapping>
258-->
259
260
261
262
263
264
265
266
267
268
269 -->
Note: See TracBrowser for help on using the repository browser.