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 AddOutputFilter INCLUDES;XMLENT .xhtml
106 <LocationMatch /xul/.*\.xul$>
108 XMLEntContentType "application/vnd.mozilla.xul+xml"
109 AddOutputFilter INCLUDES;XMLENT .xul
114 # ----------------------------------------------------------------------------------
116 # ----------------------------------------------------------------------------------
117 <Location /opac/extras/oisbn>
118 SetHandler perl-script
119 PerlHandler OpenILS::WWW::SuperCat::oisbn
124 <Location /opac/extras/supercat>
125 SetHandler perl-script
126 PerlHandler OpenILS::WWW::SuperCat::supercat
131 <Location /opac/extras/unapi>
132 SetHandler perl-script
133 PerlHandler OpenILS::WWW::SuperCat::unapi
138 <Location /opac/extras/feed/bookbag>
139 SetHandler perl-script
140 PerlHandler OpenILS::WWW::SuperCat::bookbag_feed
145 <Location /opac/extras/opensearch>
146 SetHandler perl-script
147 PerlHandler OpenILS::WWW::SuperCat::opensearch_feed
152 <Location /opac/extras/sru>
153 SetHandler perl-script
154 PerlHandler OpenILS::WWW::SuperCat::sru_search
159 <Location /opac/extras/feed/freshmeat>
160 SetHandler perl-script
161 PerlHandler OpenILS::WWW::SuperCat::changes_feed
166 <Location /opac/extras/browse>
167 SetHandler perl-script
168 PerlHandler OpenILS::WWW::SuperCat::string_browse
174 # ----------------------------------------------------------------------------------
175 # Module for processing staff-client offline scripts lives here
176 # ----------------------------------------------------------------------------------
177 <Directory "/openils/var/cgi-bin/offline">
178 AddHandler cgi-script .pl
185 # ----------------------------------------------------------------------------------
186 # XXX Note, it's important to explicitly set the JSON encoding style
187 # (OSRFGatewayLegacyJSON), since the default encoding style will likely change
189 # ----------------------------------------------------------------------------------
190 # OpenSRF JSON legacy gateway
191 # ----------------------------------------------------------------------------------
193 SetHandler osrf_json_gateway_module
194 OSRFGatewayLegacyJSON "true"
197 # ----------------------------------------------------------------------------------
198 # New-style OpenSRF JSON gateway
199 # ----------------------------------------------------------------------------------
200 <Location /osrf-gateway-v1>
201 SetHandler osrf_json_gateway_module
202 OSRFGatewayLegacyJSON "false"
206 # ----------------------------------------------------------------------------------
207 # OpenSRF-over-HTTP translator
208 # (http://open-ils.org/dokuwiki/doku.php?id=opensrf_over_http)
209 # ----------------------------------------------------------------------------------
210 <Location /osrf-http-translator>
211 SetHandler osrf_http_translator_module
215 # ----------------------------------------------------------------------------------
216 # The exporter lives here
217 # ----------------------------------------------------------------------------------
219 SetHandler perl-script
220 PerlSetVar OILSProxyTitle "Exporter Login"
221 PerlSetVar OILSProxyDescription "Please log in to export records"
222 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
223 PerlHandler OpenILS::WWW::Proxy OpenILS::WWW::Exporter
228 # ----------------------------------------------------------------------------------
229 # Reporting output lives here
230 # ----------------------------------------------------------------------------------
231 <Location /reporter/>
232 SetHandler perl-script
233 PerlSetVar OILSProxyTitle "Report Login"
234 PerlSetVar OILSProxyDescription "Please log in to view this report"
235 PerlSetVar OILSProxyPermissions "VIEW_REPORT_OUTPUT"
236 PerlHandler OpenILS::WWW::Proxy
242 # ----------------------------------------------------------------------------------
243 # Selfcheck interface
244 # ----------------------------------------------------------------------------------
245 <LocationMatch .*/selfcheck.xml>
246 SetHandler perl-script
247 PerlSetVar OILSProxyTitle "Selfcheck Login"
248 PerlSetVar OILSProxyDescription "Please log in to activate the selfcheck interface"
249 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
250 PerlHandler OpenILS::WWW::Proxy
257 # ----------------------------------------------------------------------------------
259 # ----------------------------------------------------------------------------------
260 <LocationMatch /reports/>
262 SetEnvIfNoCase Accept-Language "en" locale=en-US
263 SetEnvIfNoCase Accept-Language "fr-CA" locale=fr-CA
264 SetEnvIfNoCase Accept-Language "hy-AM" locale=hy-AM
265 AddOutputFilter INCLUDES .xhtml
266 AddOutputFilter INCLUDES;XMLENT .xml
269 # ----------------------------------------------------------------------------------
271 # ----------------------------------------------------------------------------------
273 SetHandler perl-script
274 PerlHandler OpenILS::WWW::XMLRPCGateway
280 # ----------------------------------------------------------------------------------
281 # Conify - next-generation Evergreen administration interface
282 # ----------------------------------------------------------------------------------
284 RewriteRule ^/conify/.*/global/(.*)$ /conify/global/$1
287 XMLEntEscapeScript "no"
288 XMLEntStripComments "yes"
289 XMLEntContentType "text/html; charset=utf-8"
290 AddOutputFilter INCLUDES .html
292 SetHandler perl-script
293 PerlSetVar OILSProxyTitle "Dojo Admin Login"
294 PerlSetVar OILSProxyDescription "Please log in to administer Evergreen"
295 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
296 PerlHandler OpenILS::WWW::Proxy
302 # ----------------------------------------------------------------------------------
303 # Vandelay importers / exporters (your Web interface to bibliographic travel)
304 # ----------------------------------------------------------------------------------
305 <Location /vandelay-upload>
306 SetHandler perl-script
307 PerlHandler OpenILS::WWW::Vandelay::spool_marc
312 # OpenURL 0.1 searching based on OpenSearch
314 RewriteMap openurl prg:/openils/bin/openurl_map.pl
315 RewriteCond %{QUERY_STRING} (^.*$)
316 RewriteRule ^/openurl$ ${openurl:%1} [NE,PT]