From: Galen Charlton Date: Wed, 15 Aug 2012 18:35:24 +0000 (-0400) Subject: add author to 'edition' fingerprint X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=94b89a418c3615a8c9e687b38b056a7596c73391 add author to 'edition' fingerprint 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 --- diff --git a/fingerprinter b/fingerprinter index 03a67a1..a3af67a 100755 --- a/fingerprinter +++ b/fingerprinter @@ -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}) {