1 # ----------------------------------------------------------------------------------
2 # This is the global Evergreen virtual host config. Anything you want published
3 # through all virtual hosts (port 80, port 443, etc.) should live in here.
4 # ----------------------------------------------------------------------------------
6 # ----------------------------------------------------------------------------------
8 # ----------------------------------------------------------------------------------
9 RedirectMatch 301 ^/$ /opac/en-US/skin/default/xml/index.xml
11 # ----------------------------------------------------------------------------------
12 # Assign a default locale to the accessible OPAC
13 # ----------------------------------------------------------------------------------
14 RedirectMatch 301 ^/opac/extras/slimpac/start.html$ /opac/en-US/extras/slimpac/start.html
15 RedirectMatch 301 ^/opac/extras/slimpac/advanced.html$ /opac/en-US/extras/slimpac/advanced.html
17 # ----------------------------------------------------------------------------------
18 # Configure the gateway
19 # ----------------------------------------------------------------------------------
20 OSRFGatewayConfig /openils/conf/opensrf_core.xml
22 # ----------------------------------------------------------------------------------
23 # Added content plugin
24 # ----------------------------------------------------------------------------------
25 <Location /opac/extras/ac/>
26 SetHandler perl-script
27 PerlHandler OpenILS::WWW::AddedContent
33 # ----------------------------------------------------------------------------------
34 # Replace broken cover images with a transparent GIF by default
35 # ----------------------------------------------------------------------------------
37 RewriteRule ^/opac/extras/ac/jacket/(small|medium|large)/$ \
38 /opac/images/blank.png [P,L]
40 # ----------------------------------------------------------------------------------
42 # ----------------------------------------------------------------------------------
43 <LocationMatch /opac/>
44 AddType application/xhtml+xml .xml
46 # - configure mod_xmlent
48 XMLEntEscapeScript "no"
49 XMLEntStripComments "yes"
50 XMLEntContentType "text/html; charset=utf-8"
51 # forces quirks mode which we want for now
52 XMLEntStripDoctype "yes"
54 # - set up the include handlers
56 AddOutputFilter INCLUDES .xsl
57 AddOutputFilter INCLUDES;XMLENT .xml
59 # add languages as necessary
60 SetEnvIf Request_URI "/en-US/" locale=en-US
61 SetEnvIf Request_URI "/fr-CA/" locale=fr-CA
62 SetEnvIf Request_URI "/hy-AM/" locale=hy-AM
63 SetEnvIf Request_URI ".*" OILS_OPAC_BASE=/opac/
65 # This gives you the option to configure a different host to serve OPAC images from
66 # Specify the hostname (withouth protocol) and path to the images. Protocol will
67 # be determined at runtime
68 #SetEnvIf Request_URI ".*" OILS_OPAC_IMAGES_HOST=static.example.org/opac/
69 #SetEnvIf Request_URI ".*" OILS_OPAC_CSS_HOST=static.example.org/opac/
70 #SetEnvIf Request_URI ".*" OILS_OPAC_JS_HOST=static.example.org/opac/
75 # ----------------------------------------------------------------------------------
76 # Force SSL on the OPAC's "My Account" page
77 # ----------------------------------------------------------------------------------
78 <LocationMatch .*/myopac.xml>
82 <LocationMatch /opac/extras/>
83 AddType application/xhtml+xml .xml
86 <LocationMatch /opac/.*/extras/slimpac/>
87 AddOutputFilter INCLUDES;XMLENT .html
90 # ----------------------------------------------------------------------------------
91 # Run server-side XUL and XHTML through xmlent to load the correct XML entities
92 # ----------------------------------------------------------------------------------
94 SetEnvIfNoCase Accept-Language "en" locale=en-US
95 SetEnvIfNoCase Accept-Language "fr-CA" locale=fr-CA
96 SetEnvIfNoCase Accept-Language "hy-AM" locale=hy-AM
99 <LocationMatch /xul/.*\.xhtml$>
101 XMLEntEscapeScript "no"
102 XMLEntStripComments "yes"
104 XMLEntStripDoctype "yes"
105 XMLEntContentType "text/html; charset=utf-8"
106 AddOutputFilter INCLUDES;XMLENT .xhtml
111 <LocationMatch /xul/.*\.xul$>
113 XMLEntContentType "application/vnd.mozilla.xul+xml"
114 AddOutputFilter INCLUDES;XMLENT .xul
119 # ----------------------------------------------------------------------------------
121 # ----------------------------------------------------------------------------------
122 <Location /opac/extras/oisbn>
123 SetHandler perl-script
124 PerlHandler OpenILS::WWW::SuperCat::oisbn
129 <Location /opac/extras/supercat>
130 SetHandler perl-script
131 PerlHandler OpenILS::WWW::SuperCat::supercat
136 <Location /opac/extras/unapi>
137 SetHandler perl-script
138 PerlHandler OpenILS::WWW::SuperCat::unapi
143 <Location /opac/extras/feed/bookbag>
144 SetHandler perl-script
145 PerlHandler OpenILS::WWW::SuperCat::bookbag_feed
150 <Location /opac/extras/opensearch>
151 SetHandler perl-script
152 PerlHandler OpenILS::WWW::SuperCat::opensearch_feed
157 <Location /opac/extras/sru>
158 SetHandler perl-script
159 PerlHandler OpenILS::WWW::SuperCat::sru_search
164 <Location /opac/extras/feed/freshmeat>
165 SetHandler perl-script
166 PerlHandler OpenILS::WWW::SuperCat::changes_feed
171 <Location /opac/extras/browse>
172 SetHandler perl-script
173 PerlHandler OpenILS::WWW::SuperCat::string_browse
179 # ----------------------------------------------------------------------------------
180 # Module for processing staff-client offline scripts lives here
181 # ----------------------------------------------------------------------------------
182 <Directory "/openils/var/cgi-bin/offline">
183 AddHandler cgi-script .pl
190 # ----------------------------------------------------------------------------------
191 # XXX Note, it's important to explicitly set the JSON encoding style
192 # (OSRFGatewayLegacyJSON), since the default encoding style will likely change
194 # ----------------------------------------------------------------------------------
195 # OpenSRF JSON legacy gateway
196 # ----------------------------------------------------------------------------------
198 SetHandler osrf_json_gateway_module
199 OSRFGatewayLegacyJSON "true"
202 # ----------------------------------------------------------------------------------
203 # New-style OpenSRF JSON gateway
204 # ----------------------------------------------------------------------------------
205 <Location /osrf-gateway-v1>
206 SetHandler osrf_json_gateway_module
207 OSRFGatewayLegacyJSON "false"
211 # ----------------------------------------------------------------------------------
212 # OpenSRF-over-HTTP translator
213 # (http://open-ils.org/dokuwiki/doku.php?id=opensrf_over_http)
214 # ----------------------------------------------------------------------------------
215 <Location /osrf-http-translator>
216 SetHandler osrf_http_translator_module
220 # ----------------------------------------------------------------------------------
221 # The exporter lives here
222 # ----------------------------------------------------------------------------------
224 SetHandler perl-script
225 PerlSetVar OILSProxyTitle "Exporter Login"
226 PerlSetVar OILSProxyDescription "Please log in to export records"
227 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
228 PerlHandler OpenILS::WWW::Proxy OpenILS::WWW::Exporter
233 # ----------------------------------------------------------------------------------
234 # Reporting output lives here
235 # ----------------------------------------------------------------------------------
236 <Location /reporter/>
237 SetHandler perl-script
238 PerlSetVar OILSProxyTitle "Report Login"
239 PerlSetVar OILSProxyDescription "Please log in to view this report"
240 PerlSetVar OILSProxyPermissions "VIEW_REPORT_OUTPUT"
241 PerlHandler OpenILS::WWW::Proxy
247 # ----------------------------------------------------------------------------------
248 # Selfcheck interface
249 # ----------------------------------------------------------------------------------
250 <LocationMatch .*/selfcheck.xml>
251 SetHandler perl-script
252 PerlSetVar OILSProxyTitle "Selfcheck Login"
253 PerlSetVar OILSProxyDescription "Please log in to activate the selfcheck interface"
254 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
255 PerlHandler OpenILS::WWW::Proxy
262 # ----------------------------------------------------------------------------------
264 # ----------------------------------------------------------------------------------
265 <LocationMatch /reports/>
267 SetEnvIfNoCase Accept-Language "en" locale=en-US
268 SetEnvIfNoCase Accept-Language "fr-CA" locale=fr-CA
269 SetEnvIfNoCase Accept-Language "hy-AM" locale=hy-AM
270 XMLEntStripDoctype "yes"
271 XMLEntContentType "text/xml; charset=utf-8"
272 AddOutputFilter INCLUDES .xhtml
273 AddOutputFilter INCLUDES;XMLENT .xml
276 # ----------------------------------------------------------------------------------
278 # ----------------------------------------------------------------------------------
280 SetHandler perl-script
281 PerlHandler OpenILS::WWW::XMLRPCGateway
287 # ----------------------------------------------------------------------------------
288 # Conify - next-generation Evergreen administration interface
289 # ----------------------------------------------------------------------------------
291 RewriteRule ^/conify/.*/global/(.*)$ /conify/global/$1
294 XMLEntEscapeScript "no"
295 XMLEntStripComments "yes"
296 XMLEntContentType "text/html; charset=utf-8"
297 AddOutputFilter INCLUDES .html
299 SetHandler perl-script
300 PerlSetVar OILSProxyTitle "Dojo Admin Login"
301 PerlSetVar OILSProxyDescription "Please log in to administer Evergreen"
302 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
303 PerlHandler OpenILS::WWW::Proxy
309 # ----------------------------------------------------------------------------------
310 # Vandelay importers / exporters (your Web interface to bibliographic travel)
311 # ----------------------------------------------------------------------------------
312 # capture the locale from the URL
313 AliasMatch ^/vandelay/.*/vandelay.xml(.*) /openils/var/web/vandelay/vandelay.xml$1
316 SetEnvIf Request_URI "/en-US/" locale=en-US
317 SetEnvIf Request_URI "/fr-CA/" locale=fr-CA
319 XMLEntEscapeScript "no"
320 XMLEntStripComments "yes"
321 XMLEntContentType "text/html; charset=utf-8"
322 XMLEntStripDoctype "yes"
323 AddOutputFilter INCLUDES;XMLENT .xml
324 SetHandler perl-script
325 PerlSetVar OILSProxyTitle "Vandelay Login"
326 PerlSetVar OILSProxyDescription "Please log in to import MARC records"
327 PerlSetVar OILSProxyPermissions "IMPORT_MARC"
328 PerlHandler OpenILS::WWW::Proxy
333 <Location /vandelay-upload>
334 SetHandler perl-script
335 PerlHandler OpenILS::WWW::Vandelay::spool_marc
342 # OpenURL 0.1 searching based on OpenSearch
344 RewriteMap openurl prg:/openils/bin/openurl_map.pl
345 RewriteCond %{QUERY_STRING} (^.*$)
346 RewriteRule ^/openurl$ ${openurl:%1} [NE,PT]