[Koha] Re: How to change HTML / TMPL path prefix?
Jack Bates
ms419 at freezone.co.uk
Thu Jul 12 03:49:03 UTC 2007
Thanks for your support! This is an important feature for our
installation here at the SFU student libraries, so I started working on
it.
It seems clear I need to add four new config parameters for opac and
intranet, cgi and html URL prefixes. In my experience with other
projects (Gallery, PHP WebDAV and MediaWiki), this parameter is usually
named 'baseUrl' or something, however each of these projects has only
one URL prefix parameter, they don't separate opac and intranet,
cgi and html.
As far as distinguishing URL path prefixes from file system path
prefixes, I like the Apache Location vs. Directory vocabulary.
But for consistency with current 'intrahtdocs' and 'opachtdocs' config
parameters, and with the 'intranet-cgi', 'opac-html', etc. path
components, I've currently used:
* 'intracgi': Should default to '/cgi-bin/koha'
* 'opaccgi': Should default to '/cgi-bin/koha'
* 'intrahtml': Should default to ''
* 'opachtml': Should default to ''
Adding the html URL prefixes was easy because html already uses the
'themelang' and 'interface' template variables. I only needed to edit
Output.pm:gettemplate
Adding the cgi URL prefix seems like it will be more tedious because
it's used both in template and Perl code files. Also, before I go
editing template files for various translations, I assume each
translation is built from one source file?
I browsed the developer wiki a bit, but haven't yet found instructions
to build a Koha distribution archive from the source repository
(presumably this involves compiling localized versions of templates).
Please find attached the small patch I created so far and my SSH key.
Can I please have access to clone the 2.2 git repository?
If anyone can offer feedback or point me at relevant documentation,
that'd be much appreciated!
Thanks, Jack
> ----- "MJ Ray" <mjr at ...> wrote:
> > Jack Bates <ms419 at ...> asked:
> > > How do I change the path prefix where Koha looks for HTML / TMPL?
> > Koha has used two VirtualHosts for as long as I've been here, so I'm
> > not sure that's supported yet. It needs a hunt-and-kill on the
> > hard-coded locations. It would be a good thing to do if you have
> > time.
> Not only would it be a good thing, you'd be rewarded with thanks and
> praise :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: koha.patch
Type: text/x-diff
Size: 1934 bytes
Desc: not available
URL: <https://lists.katipo.co.nz/pipermail/koha/attachments/20070711/bdaf9b26/attachment.patch>
-------------- next part --------------
ssh-dss AAAAB3NzaC1kc3MAAACBAPVaQ7myxnzsg1orTvqCsrx57nEntnSaohrq3HjckOIClNcj9QqCgXPNy3WRwOft+tnsN6pXaTNWX5ODsZJ9B2HCY3BIFHKJl31ccBD6RnKMDZMyjIRARuGIjC3o/TWr6lfELv7AfItyndAxHo/R/Fj6KOB5Kb/Jd5H+jmDgSMZBAAAAFQD+RC9KSD76PSzYTvkBC8GzB8tE6wAAAIBgONyOISFWdQZS7aK+UzmL+6YBecJ9J3OaTiDjbmzlOw1sGCf1HTJYzQgRzYYAP99FsyQk9huc2JHEeLhB+diSqR96QhAJ5hTVTEj8P7qrZi8j3WQ1GBKp0hikADab6b04g25MIqVu3mpwWAptTvOtnwohTGGk73ojEps5ysp5KwAAAIBA1QPSuM74LBimP6meJOkH0j02E+tTHnwBnoK81IEpeHqRJ39pvP7+8Z0h+oIk5QERJVXvwDbURJkAR+yWsk13OiXLExBQHX4mVyCVdC7Mgl+JJXThEQ9l9X4h7SLBHrLEjL2l87ymqj/LkMOih613IPwOVA9oZtZn72jsG5Ht0g== jablko at tor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 242 bytes
Desc: Digital signature
URL: <https://lists.katipo.co.nz/pipermail/koha/attachments/20070711/bdaf9b26/attachment.sig>
More information about the Koha
mailing list