]> git.koha-community.org Git - koha.git/commit
Bug 9570 - view plain not working in ccsr
authorOwen Leonard <oleonard@myacpl.org>
Tue, 12 Feb 2013 16:05:07 +0000 (11:05 -0500)
committerChris Cormack <chris@bigballofwax.co.nz>
Mon, 11 Mar 2013 09:39:23 +0000 (22:39 +1300)
commit76ae9d23f9d1c721f41443b1906ccce157d82986
treee5dae57971351e4732b5ca18b617f4d22afba7f0
parente2662c7b04e54b320d62ccfeb0142c8a97764e23
Bug 9570 - view plain not working in ccsr

The code in opac-showmarc.pl isn't smart enough to find the xsl files in
the "default" (prog) theme if the ccsr theme is enabled, so the "view
plain" option on opac-MARCdetail.pl fails ever time.

This patch copies some path-handling code from XSLT.pm to improve xsl
file path handling when dealing with a "sub-theme."

To test, view the MARC view in the OPAC and click the "view plain" link.
This should work correctly in prog and ccsr themes and with different
languages enabled (keeping in mind the ccsr theme will fail in general
for languages other than en).

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Checked plain view works in both prog and ccsr themes now.
All tests and QA script pass.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
opac/opac-showmarc.pl