[Koha-patches] (BUG #4903) oai.pl: OAI doesn't work out of the box - XSL path

Galen Charlton gmcharlt at gmail.com
Fri Jun 25 03:40:04 CEST 2010


Hi,

On Thu, Jun 24, 2010 at 9:32 PM, Tomas Cohen Arazi <tomascohen at gmail.com> wrote:
> On Thu, Jun 24, 2010 at 9:49 PM, Galen Charlton <gmcharlt at gmail.com> wrote:
>>
>> This won't work across all installation modes.  dev-mode installation,
>> for example, does not define a directory called htdocs.  Instead, try
>> using C4::Context->config('intrahtdocs') . '/prog/en/xslt' and see if
>> that resolves the problem.  If so, please submit a revised patch.
>
> This one works fine in 'standard' install, using the context variable
> you proposed. Is there a reference for such variables?

They are defined in the config element in koha-conf.xml.  Here's the
current list:

 <db_scheme>__DB_TYPE__</db_scheme>
 <database>__DB_NAME__</database>
 <hostname>__DB_HOST__</hostname>
 <port>__DB_PORT__</port>
 <user>__DB_USER__</user>
 <pass>__DB_PASS__</pass>
 <biblioserver>biblios</biblioserver>
 <biblioservershadow>1</biblioservershadow>
 <authorityserver>authorities</authorityserver>
 <authorityservershadow>1</authorityservershadow>
 <intranetdir>__INTRANET_CGI_DIR__</intranetdir>
 <opacdir>__OPAC_CGI_DIR__/opac</opacdir>
 <opachtdocs>__OPAC_TMPL_DIR__</opachtdocs>
 <intrahtdocs>__INTRANET_TMPL_DIR__</intrahtdocs>
 <includes>__INTRANET_TMPL_DIR__/prog/en/includes/</includes>
 <logdir>__LOG_DIR__</logdir>
 <pazpar2url>http://__PAZPAR2_HOST__:__PAZPAR2_PORT__/search.pz2</pazpar2url>
 <install_log>__MISC_DIR__/koha-install-log</install_log>
 <useldapserver>0</useldapserver><!-- see C4::Auth_with_ldap for extra
configs you must add if you want to turn this on -->
 <memcached_servers>__MEMCACHED_SERVERS__</memcached_servers>
 <memcached_namespace>__MEMCACHED_NAMESPACE__</memcached_namespace>

During the installation process, the substitution tokens get replaced
with the appropriate paths based on the installation mode and the
specified base directories for the installation.

Regards,

Galen
-- 
Galen Charlton
gmcharlt at gmail.com


More information about the Koha-patches mailing list