]> git.koha-community.org Git - koha.git/commit
Bug 11767 - Use validation plugin when creating new authority framework tag
authorOwen Leonard <oleonard@myacpl.org>
Fri, 14 Feb 2014 19:29:47 +0000 (14:29 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 19 Feb 2014 15:51:12 +0000 (15:51 +0000)
commit5ee8268a8df6ac193aa0500f4b801a3d359c1838
treec468a18908689cd5e74403fbac047b14ca33adce
parentac9d872fefc867d4f068d425bcfcb929435809bd
Bug 11767 - Use validation plugin when creating new authority framework tag

The page for adding a new tag to an authority 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.

The patch also moves some tag markup out of the script and into the
template where it belongs.

To test, apply the patch and go to Administration -> Authority types ->
MARC structure -> New tag. 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 tag should also work correctly.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
admin/auth_tag_structure.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt