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 01:10:26 +0000 (14:10 +1300)
commit79eafcd16a4f0c031fa45f87a799f7a2619a8df1
tree89cc453442bf61dbd4bd40d27a7110324eb34e3a
parent3b3048d1fa90968360a9a44753dfd1fbf92b9166
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