From 77d92d3bfdc3190f65400a6786b3793eb95b8220 Mon Sep 17 00:00:00 2001 From: Jason Skomorowski Date: Mon, 26 Oct 2009 22:40:49 -0400 Subject: [PATCH] marcmap mergekey missed author. --- src/marcmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/marcmap.c b/src/marcmap.c index 850cc76..9cf0b03 100644 --- a/src/marcmap.c +++ b/src/marcmap.c @@ -209,7 +209,7 @@ xmlDoc *marcmap_apply(struct marcmap *marcmap, xmlDoc *xml_in) if ((field = marchash_get_field(marchash, "245", NULL)) && (subfield = marchash_get_subfield('a', field, NULL))) strncat(mergekey, subfield->val, 1023 - strlen(mergekey)); strncat(mergekey, " author ", 1023 - strlen(mergekey)); - if ((field = marchash_get_field(marchash, "245", NULL)) && (subfield = marchash_get_subfield('a', field, NULL))) + if ((field = marchash_get_field(marchash, "100", NULL)) && (subfield = marchash_get_subfield('a', field, NULL))) strncat(mergekey, subfield->val, 1023 - strlen(mergekey)); strncat(mergekey, " medium ", 1023 - strlen(mergekey)); strncat(mergekey, medium, 1023 - strlen(mergekey)); -- 1.7.10.4