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
87 RewriteCond %{QUERY_STRING} locale=([^&]*)
88 RewriteRule ^/opac/[^/]+/extras/slimpac/(.*)$ /opac/%1/extras/slimpac/$1? [redirect]
89 <LocationMatch /opac/[^/]+/extras/slimpac/>
90 AddOutputFilter INCLUDES;XMLENT .html
93 # ----------------------------------------------------------------------------------
94 # Run server-side XUL and XHTML through xmlent to load the correct XML entities
95 # ----------------------------------------------------------------------------------
97 SetEnvIfNoCase Accept-Language "en" locale=en-US
98 SetEnvIfNoCase Accept-Language "fr-CA" locale=fr-CA
99 SetEnvIfNoCase Accept-Language "hy-AM" locale=hy-AM
102 <LocationMatch /xul/.*\.xhtml$>
104 XMLEntEscapeScript "no"
105 XMLEntStripComments "yes"
107 XMLEntStripDoctype "yes"
108 XMLEntContentType "text/html; charset=utf-8"
109 AddOutputFilter INCLUDES;XMLENT .xhtml
114 <LocationMatch /xul/.*\.xul$>
116 XMLEntContentType "application/vnd.mozilla.xul+xml"
117 AddOutputFilter INCLUDES;XMLENT .xul
122 # ----------------------------------------------------------------------------------
124 # ----------------------------------------------------------------------------------
125 <Location /opac/extras/oisbn>
126 SetHandler perl-script
127 PerlHandler OpenILS::WWW::SuperCat::oisbn
132 <Location /opac/extras/supercat>
133 SetHandler perl-script
134 PerlHandler OpenILS::WWW::SuperCat::supercat
139 <Location /opac/extras/unapi>
140 SetHandler perl-script
141 PerlHandler OpenILS::WWW::SuperCat::unapi
146 <Location /opac/extras/feed/bookbag>
147 SetHandler perl-script
148 PerlHandler OpenILS::WWW::SuperCat::bookbag_feed
153 <Location /opac/extras/opensearch>
154 SetHandler perl-script
155 PerlHandler OpenILS::WWW::SuperCat::opensearch_feed
160 <Location /opac/extras/sru>
161 SetHandler perl-script
162 PerlHandler OpenILS::WWW::SuperCat::sru_search
167 <Location /opac/extras/feed/freshmeat>
168 SetHandler perl-script
169 PerlHandler OpenILS::WWW::SuperCat::changes_feed
174 <Location /opac/extras/browse>
175 SetHandler perl-script
176 PerlHandler OpenILS::WWW::SuperCat::string_browse
182 # ----------------------------------------------------------------------------------
183 # Module for processing staff-client offline scripts lives here
184 # ----------------------------------------------------------------------------------
185 <Directory "/openils/var/cgi-bin/offline">
186 AddHandler cgi-script .pl
193 # ----------------------------------------------------------------------------------
194 # XXX Note, it's important to explicitly set the JSON encoding style
195 # (OSRFGatewayLegacyJSON), since the default encoding style will likely change
197 # ----------------------------------------------------------------------------------
198 # OpenSRF JSON legacy gateway
199 # ----------------------------------------------------------------------------------
201 SetHandler osrf_json_gateway_module
202 OSRFGatewayLegacyJSON "true"
205 # ----------------------------------------------------------------------------------
206 # New-style OpenSRF JSON gateway
207 # ----------------------------------------------------------------------------------
208 <Location /osrf-gateway-v1>
209 SetHandler osrf_json_gateway_module
210 OSRFGatewayLegacyJSON "false"
214 # ----------------------------------------------------------------------------------
215 # OpenSRF-over-HTTP translator
216 # (http://open-ils.org/dokuwiki/doku.php?id=opensrf_over_http)
217 # ----------------------------------------------------------------------------------
218 <Location /osrf-http-translator>
219 SetHandler osrf_http_translator_module
223 # ----------------------------------------------------------------------------------
224 # The exporter lives here
225 # ----------------------------------------------------------------------------------
227 SetHandler perl-script
228 PerlSetVar OILSProxyTitle "Exporter Login"
229 PerlSetVar OILSProxyDescription "Please log in to export records"
230 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
231 PerlHandler OpenILS::WWW::Proxy OpenILS::WWW::Exporter
236 # ----------------------------------------------------------------------------------
237 # Reporting output lives here
238 # ----------------------------------------------------------------------------------
239 <Location /reporter/>
240 SetHandler perl-script
241 PerlSetVar OILSProxyTitle "Report Login"
242 PerlSetVar OILSProxyDescription "Please log in to view this report"
243 PerlSetVar OILSProxyPermissions "VIEW_REPORT_OUTPUT"
244 PerlHandler OpenILS::WWW::Proxy
250 # ----------------------------------------------------------------------------------
251 # Selfcheck interface
252 # ----------------------------------------------------------------------------------
253 <LocationMatch .*/selfcheck.xml>
254 SetHandler perl-script
255 PerlSetVar OILSProxyTitle "Selfcheck Login"
256 PerlSetVar OILSProxyDescription "Please log in to activate the selfcheck interface"
257 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
258 PerlHandler OpenILS::WWW::Proxy
265 # ----------------------------------------------------------------------------------
267 # ----------------------------------------------------------------------------------
268 <LocationMatch /reports/>
270 SetEnvIfNoCase Accept-Language "en" locale=en-US
271 SetEnvIfNoCase Accept-Language "fr-CA" locale=fr-CA
272 SetEnvIfNoCase Accept-Language "hy-AM" locale=hy-AM
273 XMLEntStripDoctype "yes"
274 XMLEntContentType "text/xml; charset=utf-8"
275 AddOutputFilter INCLUDES .xhtml
276 AddOutputFilter INCLUDES;XMLENT .xml
279 # ----------------------------------------------------------------------------------
281 # ----------------------------------------------------------------------------------
283 SetHandler perl-script
284 PerlHandler OpenILS::WWW::XMLRPCGateway
290 # ----------------------------------------------------------------------------------
291 # Conify - next-generation Evergreen administration interface
292 # ----------------------------------------------------------------------------------
294 RewriteRule ^/conify/.*/global/(.*)$ /conify/global/$1
297 XMLEntEscapeScript "no"
298 XMLEntStripComments "yes"
299 XMLEntContentType "text/html; charset=utf-8"
300 AddOutputFilter INCLUDES .html
302 SetHandler perl-script
303 PerlSetVar OILSProxyTitle "Dojo Admin Login"
304 PerlSetVar OILSProxyDescription "Please log in to administer Evergreen"
305 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
306 PerlHandler OpenILS::WWW::Proxy
312 # ----------------------------------------------------------------------------------
313 # Vandelay importers / exporters (your Web interface to bibliographic travel)
314 # ----------------------------------------------------------------------------------
315 # capture the locale from the URL
316 AliasMatch ^/vandelay/.*/vandelay.xml(.*) /openils/var/web/vandelay/vandelay.xml$1
319 SetEnvIf Request_URI "/en-US/" locale=en-US
320 SetEnvIf Request_URI "/fr-CA/" locale=fr-CA
322 XMLEntEscapeScript "no"
323 XMLEntStripComments "yes"
324 XMLEntContentType "text/html; charset=utf-8"
325 XMLEntStripDoctype "yes"
326 AddOutputFilter INCLUDES;XMLENT .xml
327 SetHandler perl-script
328 PerlSetVar OILSProxyTitle "Vandelay Login"
329 PerlSetVar OILSProxyDescription "Please log in to import MARC records"
330 PerlSetVar OILSProxyPermissions "IMPORT_MARC"
331 PerlHandler OpenILS::WWW::Proxy
336 <Location /vandelay-upload>
337 SetHandler perl-script
338 PerlHandler OpenILS::WWW::Vandelay::spool_marc
345 # OpenURL 0.1 searching based on OpenSearch
347 RewriteMap openurl prg:/openils/bin/openurl_map.pl
348 RewriteCond %{QUERY_STRING} (^.*$)
349 RewriteRule ^/openurl$ ${openurl:%1} [NE,PT]