]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 19 May 2014 14:49:21 +0000 (16:49 +0200)
commit8fed0f89d59cc8a7c32bcec6a3b8b8c7b8313c60
tree302eba85d41db52b9b338df4f0399b6a280a46c0
parentf0d2331759cc2a868e9ce114b6051081b0ce47a5
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>
(cherry picked from commit 5ee8268a8df6ac193aa0500f4b801a3d359c1838)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
admin/auth_tag_structure.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt