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)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 26 Nov 2012 07:36:39 +0000 (20:36 +1300)
commita44f6d47b60fdf28896b13d234f549c2559641d7
tree415a80fdc0d65e18c316030268e904993ffc3877
parent3d0b417cb0bcbfd39f7f63ab19b7a4acbb013b41
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>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
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