From c7293762079f7a9a6e6c4a621ce73a0bbb72967d Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 14 Feb 2014 15:17:44 -0500 Subject: [PATCH] [Signed-off] Bug 11769 - Use validation plugin when creating new MARC framework MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 --- .../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 ec458b3..4ef8103 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' %] -