[Koha-bugs] [Bug 29678] Can't use external URL for XSLT stylesheet

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 23 20:36:10 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29678

--- Comment #14 from Fred King <fred.king at medstar.net> ---
If Christopher's setup is similar to mine, I'm pretty sure the files he's using
are 
MARC21slim2OPACDetail.xsl
MARC21slim2OPACResults.xsl
MARCslimUtils.xsl
MARC21Languages.xsl

OPACDetail and OPACResults both point to Utils, and Utils points to Languages.

I can't verify it right now, but I think you might be able to fix this by
adding the full external address (i.e. <xsl:include
href="cheerfulvalleypl.online/somedirectory/MARC21Languages.xsl"/> at the top
of the Utils file.

The default location of the xsl stylesheets is
   /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/en/xslt
If you can get SFTP root access to that directory, you can make changes. Give
the original a different name first. In any case when you're editing xsl files,
I highly recommend saving each incremental change with a new name before you
try it. That way if you break the file (very easy to do) you revert to the
latest stable version. I'm not sure what gets saved in the browser cache, but
I've had more luck seeing changes if Koha uses a new xsl filename when it
reloads a page.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list