[Koha-bugs] [Bug 14071] New: Preserve changes on XSLT files over upgrades
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Apr 28 16:45:38 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14071
Bug ID: 14071
Summary: Preserve changes on XSLT files over upgrades
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Web services
Assignee: koha-bugs at lists.koha-community.org
Reporter: pablo.bianchi at gmail.com
QA Contact: testopia at bugs.koha-community.org
We have made some customizations to
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2OAIDC.xsl
They are silently overwritten on every upgrade, which I avoid with dpkg-divert.
Since there is more than 30 XSLTs on that folder a syspref solution might be
hard. An easy solution maybe is, instead of overwriting ask the user what to do
(stop the upgrade and wait the answer):
Configuration file
`/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2OAIDC.xsl'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
[...]
*** MARC21slim2OAIDC.xsl (Y/I/N/O/D/Z) [default=N] ?
Marking them as conffiles as the others (dpkg --status koha-common).
Or even always preserve conffiles. User can always overwrite with
dpkg-reconfigure or sudo apt-get -o Dpkg::Options::="--force-confmiss" install
--reinstall koha-common
BTW, I don't know why this XSLT is on a LANG folder, since always use «en»
(bugs 4403 and 10292).
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list