wellcomecollection / identity

Identity services for Wellcome Collection users
MIT License
0 stars 2 forks source link

Add a helper for creating the varField for a name #364

Closed alexwlchan closed 2 years ago

alexwlchan commented 2 years ago

For https://github.com/wellcomecollection/wellcomecollection.org/issues/8207; follows #363

Previously we had two slightly divergent implementations for creating a name varfield:

I think the omission of MARC tag 100 is causing us issues – e.g. in the Sierra GUI, a name without it is treated as opaque text rather than a structured MARC field.

This patch introduces a single implementation createNameVarField() which is used in both places, and gives us consistent behaviour.