When using opac-showmarc with viewas=card, page fails : ie : "/cgi-bin/koha/opac-showmarc.pl?id=1&viewas=card" : Could not create file parser context for file "/usr/share/koha/intranet/cgi-bin/koha-tmpl/intranet-tmpl/prog/en/xslt/compact.xsl": No such file or directory at /usr/share/koha/opac/cgi-bin/opac/opac-showmarc.pl line 71 Bug is at L67 : my $xslfile = C4::Context->config('intranetdir')."/koha-tmpl/intranet-tmpl/prog/en/xslt/compact.xsl"; This path is right for development installation but wrong for standard installation where "intranetdir" is "/usr/share/koha/intranet/cgi-bin". I propose this correction : my $xslfile = C4::Context->config('intrahtdocs')."/prog/en/xslt/compact.xsl"; NB : actually, no link to opac-showmarc.pl contains "viewas=card", is it obsolete ? Tested on Koha 3.2 alpha 2 UNIMARC.
Created attachment 2238 [details] [review] Proposed fix This patch implements Fridolyn SOMERS' suggested change to the .xsl file path but copies compact.xsl from the intranet template dir and points to that instead.
Yes, that's much better. (In reply to comment #1) > Created attachment 2238 [details] [review] > Proposed fix > > This patch implements Fridolyn SOMERS' suggested change to the .xsl file path > but copies compact.xsl from the intranet template dir and points to that > instead.
Patch pushed. Please test and close.