Bug 13170 Remove of prog theme broke the OPAC's "view plain" option for MARC details
authorFrédéric Demians <f.demians@tamil.fr>
Sun, 2 Nov 2014 07:59:30 +0000 (08:59 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 4 Nov 2014 21:52:53 +0000 (18:52 -0300)
commit3cbf7547023a36166a0dd51d2a778623fc4b6aa0
treee77142002d698d6a6ff4d270a1721e1494f93ee9
parentb3b6f5afd0290b45109ca5b036e9296ced6e5acb
Bug 13170 Remove of prog theme broke the OPAC's "view plain" option for MARC details

In the OPAC if you view the MARC details for a title (and have
OPACXSLTDetailsDisplay enabled) there is a "view plain" link which displays the
output of opac-showmarc.pl. This is broken in master: fixed by this patch.

Test plan:

(1) Set OPACXSLTDetailsDisplay to default
(2) Do a search on OPAC, then display a specific biblio record
(3) Click on MARC view tab. Then click on 'view plain' link. Nothing is
    displayed.
(4) Apply the patch. And refresh the MARC detail page.
(5) Click on 'view plain' link. Check that a plain text MARC record is
    displayed.

Signed-off-by: Chris <chris@bigballofwax.co.nz>

Note: This makes a small change to C4::Templates::themelanguage so that
it works with .xsl files too (They live in the xslt dir)

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>

Works as described, passes tests and QA script.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Templates.pm
opac/opac-showmarc.pl