Authtypecode return an warning even if subfield is ignored
authorNahuel ANGELINETTI <nahuel.angelinetti@biblibre.com>
Thu, 22 Jan 2009 10:51:39 +0000 (11:51 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Thu, 31 Dec 2009 09:54:26 +0000 (10:54 +0100)
this patch just add a condition to the sql request to return a warning
only if authtypecode is not in an ignored subfield.

admin/checkmarc.pl

index c14f07f..432078d 100755 (executable)
@@ -231,6 +231,7 @@ $sth = $dbh->prepare("SELECT frameworkcode, frameworktext, tagfield, tagsubfield
                       LEFT JOIN biblio_framework USING (frameworkcode)
                       WHERE authtypecode IS NOT NULL
                       AND authtypecode <> ''
+                      AND tab > '-1'
                       AND authtypecode NOT IN (SELECT authtypecode FROM auth_types)
                       ORDER BY frameworkcode, tagfield, tagsubfield");
 $sth->execute;