srophe / syriaca-data

Repository for Syriaca.org TEI data, used by srophe-eXist-app.
4 stars 16 forks source link

Please replace names in persons abstracts with the new "en" headword #357

Open davidamichelson opened 8 years ago

davidamichelson commented 8 years ago

This may be able to reuse xquery from the script for #356

For all saints records (only) which have an abstract in a tei:note of @subtype="auto-formatted"

If the tei:note text node begins with [NAME] (all tei:note of @subtype="auto-formatted" should begin this way I hope)

Please replace that first persName (but not any others) with whatever the same person record has for its @xml:lang="en" @syriaca-tags="#syriaca-headword" form of the name.

As an example in http://syriaca.org/person/1533, this:

<note type="abstract" xml:id="abstract-en-1533" source="#bib1533-1" subtype="auto-formatted">
<persName ref="http://syriaca.org/person/1533">Ahrūn</persName> is commemorated in <title ref="http://syriaca.org/work/829">Aaron (text)</title>, a work surviving in at least 3 manuscripts including <bibl type="MSS" xml:id="witness1">ms London, British Library, Add. 14647, f. 101v-102v</bibl>.</note>

Should become this:

<note type="abstract" xml:id="abstract-en-1533" source="#bib1533-1" subtype="auto-formatted">
<persName ref="http://syriaca.org/person/1533">Aaron</persName> is commemorated in <title ref="http://syriaca.org/work/829">Aaron (text)</title>, a work surviving in at least 3 manuscripts including <bibl type="MSS" xml:id="witness1">ms London, British Library, Add. 14647, f. 101v-102v</bibl>.</note>
davidamichelson commented 8 years ago

@wsalesky I'd like to check in on this today and also on #356 if you have time please.