[Koha-bugs] [Bug 24852] XSLT paths not adjusted for dev installs

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 11 17:55:01 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24852

--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 100589
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100589&action=edit
Bug 24852: Adjust XSLT paths for dev installs

We are building the XSLT paths with intrahtdocs, it should be intranetdir
(and assume that have the usual git structure).

For instance, on a dev box, the XSLT base path was outside of the git
repo:
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/

Now it will be:
/kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/xslt/

Test plan:
0. Do not apply the patch, set dev_install to 1 in $KOHA_CONF
1. Modify a xslt in the git repo, and in the "htdocs" path, in a
different way:
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
/kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
2. Restart all the things and refresh a bibliographic record detail
page
Notice that you see the change from the "htdocs", outside of the git
repo
3. Apply the patch
4. Repeat 2.
Notice that you now see the change you made on the file from the git
repo
5. Set dev_install to 0 in $KOHA_CONF
6. Repeat 2.
Notice that you now see the change from htdocs

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list