Bug 12973: Allow passing code to XSLT_Handler instead of filename
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 19 Sep 2014 20:36:46 +0000 (22:36 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sun, 18 Jan 2015 13:29:10 +0000 (10:29 -0300)
commit64aeb864561418ba1937f8933e8def6b008c5bf9
tree17345bd24bf15dfe1534733d6ebb5dc12779f1d6
parent9db34fe8758e6303246a3347d19f05edc2653a42
Bug 12973: Allow passing code to XSLT_Handler instead of filename

This patch adds the option to pass a code string to the XSLT handler object
instead of passing a filename.
This is achieved by a change to parameter hashref. The old style parameters
are also allowed.
Note that this patch should not change behavior but will be used in future
development: see bug 12758 or bug 12754.

Test plan:
Verify that behavior did not change in the following steps.
[1] Edit OPACXSLTResultsDisplay in order to use XSLT.
[2] Check search results page in OPAC.
[3] Edit OPACXSLTDetailsDisplay in order to use XSLT.
[4] Check detail page in OPAC.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Koha/XSLT_Handler.pm