add author to 'edition' fingerprint
authorGalen Charlton <gmc@esilibrary.com>
Wed, 15 Aug 2012 18:35:24 +0000 (14:35 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 15 Aug 2012 18:35:24 +0000 (14:35 -0400)
Title and edition alone aren't sufficient; for example,
Meg Cabot and Stephanie Meyer both published the first
edition of books called Twilight in 2005.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>

fingerprinter

index 03a67a1..a3af67a 100755 (executable)
@@ -373,11 +373,11 @@ sub dump_fingerprints {
         }
     }
 
-    if ($conf->{fingerprints}{edition} and $marc->{edition}) {
+    if ($conf->{fingerprints}{edition} and $marc->{edition} and $marc->{author}) {
         print OF join("\t", $marc->{score}, $marc->{id}, "edition",
                       $marc->{item_form}, $marc->{date1},
                       $marc->{record_type}, $marc->{bib_lvl},
-                      $marc->{title}, $marc->{edition}), "\n";
+                      $marc->{title}, $marc->{author}, $marc->{edition}), "\n";
     }
 
     if ($conf->{fingerprints}{issn} and $marc->{issn}) {