I have a branch that has some of the basics we use:
http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/tsbere/apache_lib_urls
For our production system I added another file to be loaded for
novelist codes:
RewriteMap libnovelu txt:/openils/conf/libnovelu.txt
A lookup in it:
RewriteRule . - [E=libnovelu:${libnovelu:%{ENV:libcode}|NONE}]
And a rule to activate it:
RewriteCond %{ENV:libnovelu} !^NONE$
RewriteRule . -
[E=OILS_NOVELIST_URL:http://imageserver.ebscohost.com/eit/eitinit.js?auth=profile&profile=%{ENV:libnovelu}&pwd=COMMONPASSWORD&cfg=Y]
Obviously you would need to adjust as needed, possibly including the
entire URL instead of just the profile code if each library has
different passwords and such.
Thomas Berezansky
Merrimack Valley Library Consortium
Quoting Michael Schell <msch...@forterie.library.on.ca>:
Thanks for the Reply Thomas,
We are using different subdomains (ie. forterie.niagaraevergreen.ca
and lincoln.niagaraevergreen.ca) so rewrite maps could possibly
work. Could you tell me about using rewrite maps in this context
like I'm 5 years old? I just checked the apache docs page and
followed the concept but not how to
implement. currently my eg_vhost.conf file has and entry of:
# Novelist
SetEnv OILS_NOVELIST_URL
http://imageserver.ebscohost.com/novelistselect/ns2init.js
SetEnv OILS_NOVELIST_PROFILE s******8.main.novsel2
SetEnv OILS_NOVELIST_PASSWORD d******Y8UiwprAA
Thanks,
Michael Schell
Systems Administrator
Fort Erie Public Library
905-871-2546 x301
msch...@fepl.ca
www.fepl.ca
-----open-ils-general-boun...@list.georgialibraries.org wrote: -----
To: Evergreen Discussion Group <open-ils-general@list.georgialibraries.org>
From: Thomas Berezansky
Sent by: open-ils-general-boun...@list.georgialibraries.org
Date: 03/21/2013 02:08PM
Subject: Re: [OPEN-ILS-GENERAL] Novelist Added Content
I use apache rewrite maps to do per-hostname definitions of that
particular ENV variable for MVLC. Obviously that won't work as well if
you aren't using different hostnames (subdomains or otherwise) per
library, though.
Thomas Berezansky
Merrimack Valley Library Consortium
Quoting Michael Schell <msch...@forterie.library.on.ca>:
Hi All,
I've noticed that the URL and login info for the Novelist added
content has been moved to an environment variable in eg_vhost.conf.
Our consortium does not have a shared catalogue so each Library has
their own Novelist URL/login that points to our holdings. In the
past we were able to use our own Novelist subscriptions because it
was based on the rdetail_ files in our own separate skin directory.
What would be the best way to either move this back to the new TPAC
templates or declare multiple variables in eg_vhost.conf.
Thanks,
Michael
Schell
Systems Administrator
Fort Erie Public Library
905-871-2546 x301
msch...@fepl.ca
www.fepl.ca