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

Last change on this file since 37479 was 37411, checked in by davidb, 15 months ago

New param for googlemaps api key introduced so it can be controlled here with the Other Google ids/keys rather than needing to know the exact spot in an XSL file to change some Javascript syntax.

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