From f6d2a02740ab28b608d40227773b1cb238cccbcd Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 14 Feb 2014 13:11:04 -0500 Subject: [PATCH] Bug 11766 - Use validation plugin when creating new authority type The new authority type entry form uses custom form validation JavaScript. This patch removes it in favor of using HTML5 validation attributes and Koha's built-in validation plugin. To test, go to Administration -> Authority types and click "New authority type." Try submitting the form without entering any data. You should see a warning about required fields. Upon entering text in those fields the warning should disappear. Signed-off-by: Chris Cormack Signed-off-by: Jonathan Druart --- .../prog/en/modules/admin/authtypes.tt | 43 ++++---------------- 1 file changed, 7 insertions(+), 36 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt index 7823108..dcc606d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt @@ -7,38 +7,8 @@ [% END %] [% INCLUDE 'doc-head-close.inc' %] - + [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %] @@ -61,7 +31,7 @@ function Check(f) { [% IF ( add_form ) %] -
+
[% IF ( authtypecode ) %] @@ -78,11 +48,11 @@ function Check(f) { [% authtypecode %] [% ELSE %] - - + + [% END %] -
  • +
  • Note: for 'Authority field to copy', enter the authority field that should be copied from the authority record to the bibliographic record. E.g., in MARC21, field 100 in the authority record should be copied to field 100 in the bibliographic record

    @@ -94,7 +64,8 @@ function Check(f) {
  • -
    +
    + Cancel
    -- 1.7.10.4