# ----------------------------------------------------------------------------------
# This is the global Evergreen virtual host config. Anything you want published
# through all virtual hosts (port 80, port 443, etc.) should live in here.
# ----------------------------------------------------------------------------------
# ----------------------------------------------------------------------------------
# Point / to the opac
# ----------------------------------------------------------------------------------
RedirectMatch 301 ^/$ /opac/en-US/skin/default/xml/index.xml
# ----------------------------------------------------------------------------------
# Assign a default locale to the accessible OPAC
# ----------------------------------------------------------------------------------
RedirectMatch 301 ^/opac/extras/slimpac/start.html$ /opac/en-US/extras/slimpac/start.html
RedirectMatch 301 ^/opac/extras/slimpac/advanced.html$ /opac/en-US/extras/slimpac/advanced.html
# ----------------------------------------------------------------------------------
# Configure the gateway
# ----------------------------------------------------------------------------------
OSRFGatewayConfig /openils/conf/opensrf_core.xml
# ----------------------------------------------------------------------------------
# Added content plugin
# ----------------------------------------------------------------------------------
SetHandler perl-script
PerlHandler OpenILS::WWW::AddedContent
Options +ExecCGI
PerlSendHeader On
allow from all
# ----------------------------------------------------------------------------------
# Replace broken cover images with a transparent GIF by default
# ----------------------------------------------------------------------------------
RewriteEngine ON
RewriteRule ^/opac/extras/ac/jacket/(small|medium|large)/$ \
/opac/images/blank.png [P,L]
# ----------------------------------------------------------------------------------
# Configure the OPAC
# ----------------------------------------------------------------------------------
AddType application/xhtml+xml .xml
# - configure mod_xmlent
XMLEntStripPI "yes"
XMLEntEscapeScript "no"
XMLEntStripComments "yes"
XMLEntContentType "text/html; charset=utf-8"
# forces quirks mode which we want for now
XMLEntStripDoctype "yes"
# - set up the include handlers
Options +Includes
AddOutputFilter INCLUDES .xsl
AddOutputFilter INCLUDES;XMLENT .xml
# add languages as necessary
SetEnvIf Request_URI "/en-US/" locale=en-US
SetEnvIf Request_URI "/fr-CA/" locale=fr-CA
SetEnvIf Request_URI "/hy-AM/" locale=hy-AM
SetEnvIf Request_URI ".*" OILS_OPAC_BASE=/opac/
# This gives you the option to configure a different host to serve OPAC images from
# Specify the hostname (withouth protocol) and path to the images. Protocol will
# be determined at runtime
#SetEnvIf Request_URI ".*" OILS_OPAC_IMAGES_HOST=static.example.org/opac/
#SetEnvIf Request_URI ".*" OILS_OPAC_CSS_HOST=static.example.org/opac/
#SetEnvIf Request_URI ".*" OILS_OPAC_JS_HOST=static.example.org/opac/
# ----------------------------------------------------------------------------------
# Force SSL on the OPAC's "My Account" page
# ----------------------------------------------------------------------------------
SSLRequireSSL
AddType application/xhtml+xml .xml
AddOutputFilter INCLUDES;XMLENT .html
# ----------------------------------------------------------------------------------
# Run server-side XUL and XHTML through xmlent to load the correct XML entities
# ----------------------------------------------------------------------------------
SetEnvIfNoCase Accept-Language "en" locale=en-US
SetEnvIfNoCase Accept-Language "fr-CA" locale=fr-CA
SetEnvIfNoCase Accept-Language "hy-AM" locale=hy-AM
Options +Includes
XMLEntEscapeScript "no"
AddOutputFilter INCLUDES;XMLENT .xhtml
allow from all
Options +Includes
XMLEntContentType "application/vnd.mozilla.xul+xml"
AddOutputFilter INCLUDES;XMLENT .xul
allow from all
# ----------------------------------------------------------------------------------
# Supercat feeds
# ----------------------------------------------------------------------------------
SetHandler perl-script
PerlHandler OpenILS::WWW::SuperCat::oisbn
Options +ExecCGI
PerlSendHeader On
allow from all
SetHandler perl-script
PerlHandler OpenILS::WWW::SuperCat::supercat
Options +ExecCGI
PerlSendHeader On
allow from all
SetHandler perl-script
PerlHandler OpenILS::WWW::SuperCat::unapi
Options +ExecCGI
PerlSendHeader On
allow from all
SetHandler perl-script
PerlHandler OpenILS::WWW::SuperCat::bookbag_feed
Options +ExecCGI
PerlSendHeader On
allow from all
SetHandler perl-script
PerlHandler OpenILS::WWW::SuperCat::opensearch_feed
Options +ExecCGI
PerlSendHeader On
allow from all
SetHandler perl-script
PerlHandler OpenILS::WWW::SuperCat::sru_search
Options +ExecCGI
PerlSendHeader On
allow from all
SetHandler perl-script
PerlHandler OpenILS::WWW::SuperCat::changes_feed
Options +ExecCGI
PerlSendHeader On
allow from all
SetHandler perl-script
PerlHandler OpenILS::WWW::SuperCat::string_browse
Options +ExecCGI
PerlSendHeader On
allow from all
# ----------------------------------------------------------------------------------
# Module for processing staff-client offline scripts lives here
# ----------------------------------------------------------------------------------
AddHandler cgi-script .pl
AllowOverride None
Options +ExecCGI
allow from all
# ----------------------------------------------------------------------------------
# XXX Note, it's important to explicitly set the JSON encoding style
# (OSRFGatewayLegacyJSON), since the default encoding style will likely change
# with OpenSRF 1.0
# ----------------------------------------------------------------------------------
# OpenSRF JSON legacy gateway
# ----------------------------------------------------------------------------------
SetHandler osrf_json_gateway_module
OSRFGatewayLegacyJSON "true"
allow from all
# ----------------------------------------------------------------------------------
# New-style OpenSRF JSON gateway
# ----------------------------------------------------------------------------------
SetHandler osrf_json_gateway_module
OSRFGatewayLegacyJSON "false"
allow from all
# ----------------------------------------------------------------------------------
# OpenSRF-over-HTTP translator
# (http://open-ils.org/dokuwiki/doku.php?id=opensrf_over_http)
# ----------------------------------------------------------------------------------
SetHandler osrf_http_translator_module
allow from all
# ----------------------------------------------------------------------------------
# The exporter lives here
# ----------------------------------------------------------------------------------
SetHandler perl-script
PerlSetVar OILSProxyTitle "Exporter Login"
PerlSetVar OILSProxyDescription "Please log in to export records"
PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
PerlHandler OpenILS::WWW::Proxy OpenILS::WWW::Exporter
Options +ExecCGI
allow from all
# ----------------------------------------------------------------------------------
# Reporting output lives here
# ----------------------------------------------------------------------------------
SetHandler perl-script
PerlSetVar OILSProxyTitle "Report Login"
PerlSetVar OILSProxyDescription "Please log in to view this report"
PerlSetVar OILSProxyPermissions "VIEW_REPORT_OUTPUT"
PerlHandler OpenILS::WWW::Proxy
Options +ExecCGI
PerlSendHeader On
allow from all
# ----------------------------------------------------------------------------------
# Selfcheck interface
# ----------------------------------------------------------------------------------
SetHandler perl-script
PerlSetVar OILSProxyTitle "Selfcheck Login"
PerlSetVar OILSProxyDescription "Please log in to activate the selfcheck interface"
PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
PerlHandler OpenILS::WWW::Proxy
Options +ExecCGI
PerlSendHeader On
allow from all
# ----------------------------------------------------------------------------------
# Reports GUI
# ----------------------------------------------------------------------------------
Options +Includes
SetEnvIfNoCase Accept-Language "en" locale=en-US
SetEnvIfNoCase Accept-Language "fr-CA" locale=fr-CA
SetEnvIfNoCase Accept-Language "hy-AM" locale=hy-AM
XMLEntStripDoctype "yes"
XMLEntContentType "text/xml; charset=utf-8"
AddOutputFilter INCLUDES .xhtml
AddOutputFilter INCLUDES;XMLENT .xml
# ----------------------------------------------------------------------------------
# XML-RPC gateway
# ----------------------------------------------------------------------------------
SetHandler perl-script
PerlHandler OpenILS::WWW::XMLRPCGateway
Options +ExecCGI
PerlSendHeader On
allow from all
# ----------------------------------------------------------------------------------
# Conify - next-generation Evergreen administration interface
# ----------------------------------------------------------------------------------
RewriteEngine on
RewriteRule ^/conify/.*/global/(.*)$ /conify/global/$1
XMLEntStripPI "yes"
XMLEntEscapeScript "no"
XMLEntStripComments "yes"
XMLEntContentType "text/html; charset=utf-8"
AddOutputFilter INCLUDES .html
SetHandler perl-script
PerlSetVar OILSProxyTitle "Dojo Admin Login"
PerlSetVar OILSProxyDescription "Please log in to administer Evergreen"
PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
PerlHandler OpenILS::WWW::Proxy
Options +ExecCGI
PerlSendHeader On
allow from all
# ----------------------------------------------------------------------------------
# Vandelay importers / exporters (your Web interface to bibliographic travel)
# ----------------------------------------------------------------------------------
# capture the locale from the URL
AliasMatch ^/vandelay/.*/vandelay.xml(.*) /openils/var/web/vandelay/vandelay.xml$1
RewriteEngine on
SetEnvIf Request_URI "/en-US/" locale=en-US
SetEnvIf Request_URI "/fr-CA/" locale=fr-CA
XMLEntStripPI "yes"
XMLEntEscapeScript "no"
XMLEntStripComments "yes"
XMLEntContentType "text/html; charset=utf-8"
XMLEntStripDoctype "yes"
AddOutputFilter INCLUDES;XMLENT .xml
SetHandler perl-script
PerlSetVar OILSProxyTitle "Vandelay Login"
PerlSetVar OILSProxyDescription "Please log in to import MARC records"
PerlSetVar OILSProxyPermissions "IMPORT_MARC"
PerlHandler OpenILS::WWW::Proxy
Options +ExecCGI
PerlSendHeader On
allow from all
SetHandler perl-script
PerlHandler OpenILS::WWW::Vandelay::spool_marc
Options +ExecCGI
allow from all
# OpenURL 0.1 searching based on OpenSearch
RewriteEngine on
RewriteMap openurl prg:/openils/bin/openurl_map.pl
RewriteCond %{QUERY_STRING} (^.*$)
RewriteRule ^/openurl$ ${openurl:%1} [NE,PT]