]> git.koha-community.org Git - koha.git/commit
Bug 11769 - Use validation plugin when creating new MARC framework
authorOwen Leonard <oleonard@myacpl.org>
Fri, 14 Feb 2014 20:17:44 +0000 (15:17 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Sun, 27 Apr 2014 21:38:07 +0000 (21:38 +0000)
commit050a9c97fd60489da20c8fa67f45034e4c81c1ba
treedace6c87174a0d78f9fb7e90d3cea75ed101e6a8
parente64c52866be5f148874798de7c6fb050f3f0b454
Bug 11769 - Use validation plugin when creating new MARC framework

The page for adding a new MARC framework includes some custom form
validation JavaScript which can be removed in favor of HTML5 validation
attributes and Koha's built-in validation plugin. This patch does so.

To test, apply the patch and go to Administration -> MARC bibliographic
framework -> New framework. Try submitting the form without entering a
tag number. This should trigger a validation warning.

Submission of the form with valid data should work correctly. Editing an
existing framework should also work correctly.

Patch behaves as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt