From: Jason Skomorowski Date: Tue, 27 Oct 2009 02:40:49 +0000 (-0400) Subject: marcmap mergekey missed author. X-Git-Tag: v1.2.3~5 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=77d92d3bfdc3190f65400a6786b3793eb95b8220;p=pazpar2-moved-to-github.git marcmap mergekey missed author. --- 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));