We generate the popup overlay from e.g. <placeName ref="...">Foobar</placeName> instances in the TEI. If there are multiple of these with the same ref but different text, the last one in the document will "win".
It'd be better if there was a way to choose.
EHRI-TS-19480000-A_EN.xml.txt