This function takes multiple records and replaces them with a single record containing all of their subrecords. It does not remove duplicate subrecords.
merge_records(tg, xrefs)
A tidyged object.
The xrefs of the records to merge.
A new tidyged object where all specified records have been merged.