[Bug 4884] New: opac-showmarc.pl can't find compact.xsl
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4884 Summary: opac-showmarc.pl can't find compact.xsl Change sponsored?: --- Product: Koha Version: rel_3_2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: OPAC AssignedTo: oleonard@myacpl.org ReportedBy: fridolyn.somers@gmail.com QAContact: koha-bugs@lists.koha-community.org Estimated Hours: 0.0 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. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4884 --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 2238 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=2238 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. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4884 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 |PATCH-Sent Status|NEW |ASSIGNED -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4884 --- Comment #2 from Fridolyn SOMERS <fridolyn.somers@gmail.com> --- Yes, that's much better. (In reply to comment #1)
Created attachment 2238 [details] 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.
-- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4884 Galen Charlton <gmcharlt@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gmcharlt@gmail.com --- Comment #3 from Galen Charlton <gmcharlt@gmail.com> --- Patch pushed. Please test and close. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4884 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org