From 050a9c97fd60489da20c8fa67f45034e4c81c1ba Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 14 Feb 2014 15:17:44 -0500 Subject: [PATCH] Bug 11769 - Use validation plugin when creating new MARC framework MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Katrin Fischer Signed-off-by: Galen Charlton --- .../prog/en/modules/admin/biblio_framework.tt | 40 ++----------------- 1 file changed, 3 insertions(+), 37 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt index 382c366e84..1bcd4ab95a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt @@ -8,40 +8,6 @@ [% INCLUDE 'doc-head-close.inc' %] -