From: Nahuel ANGELINETTI Date: Thu, 22 Jan 2009 10:51:39 +0000 (+0100) Subject: Authtypecode return an warning even if subfield is ignored X-Git-Tag: v3.02.00-alpha~45^2~65 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=5aad8d759105bcc04cdc65e714699ce3733cd17d;p=koha.git Authtypecode return an warning even if subfield is ignored this patch just add a condition to the sql request to return a warning only if authtypecode is not in an ignored subfield. --- diff --git a/admin/checkmarc.pl b/admin/checkmarc.pl index c14f07fced..432078d4ab 100755 --- a/admin/checkmarc.pl +++ b/admin/checkmarc.pl @@ -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;