- if (subf->which == DATA1N_tag &&
- !strcmp(subf->u.tag.tag, "subfield"))
- {
- data1_xattr *xa;
- for (xa = subf->u.tag.attributes; xa; xa = xa->next)
- if (!strcmp(xa->name, "code"))
- identifier = xa->value;
- }
+ data1_xattr *xa;
+ if (subf->which != DATA1N_tag)
+ continue;
+ if (strcmp(subf->u.tag.tag, "subfield"))
+ yaz_log(YLOG_WARN, "Unhandled tag %s",
+ subf->u.tag.tag);
+
+ for (xa = subf->u.tag.attributes; xa; xa = xa->next)
+ if (!strcmp(xa->name, "code"))
+ identifier = xa->value;