[Koha-patches] [PATCH] Authtypecode return an warning even if subfield is ignored

Nahuel ANGELINETTI nahuel.angelinetti at biblibre.com
Thu Jan 22 11:51:39 CET 2009


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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/admin/checkmarc.pl b/admin/checkmarc.pl
index c14f07f..432078d 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;
-- 
1.5.6.3




More information about the Koha-patches mailing list