Bug 8163: Click to populate XSLT preferences with "default" or empty values
authorOwen Leonard <oleonard@myacpl.org>
Tue, 29 May 2012 19:07:32 +0000 (15:07 -0400)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 23 Nov 2012 17:28:02 +0000 (12:28 -0500)
commitc5e91b8060b21e497a1bf4455fe4559278d534d8
tree5b9fe79d8632d3cdbd03773af6ff4ca903d701f6
parent48ce46e8fbcc2a249930bb8ee84b1aabc9667050
Bug 8163: Click to populate XSLT preferences with "default" or empty values

This patch adds markup and JavaScript to the system preferences
interface so that the user can click "default" or "empty" to populate
an XSLT-related pref with those vaules.

To test, open system preferences for the OPAC or staff client. In
the description for an XSLT-related preference click the "default"
link to populate the field with "default." Click the "leave empty"
link to empty the field.

Revised according to Julian Maurice's suggestion for a more
generic, flexible way to implement it.

Signed-off-by: Melia Meggs <melia@test.bywatersolutions.com>
Passed-QA-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref