srophe / bethqatraye-data

Data repository for bethqatraye
0 stars 0 forks source link

Script for Updating Author/Title of Sources Each TEI record #50

Open davidamichelson opened 4 years ago

davidamichelson commented 4 years ago

@wsalesky As a data maintenance script, could you please write a script that:

Evaluates each TEI file in the BQG. For each /TEI/text/body/listPlace/place/bibl the script finds it retrieves the URI for that TEI:bibl and uses the URI to look up all TEI:title and TEI: author or TE:editor information in the Syriaca.org Bibl Module. It then updates TEI:title and TEI: author or TE:editor i in the /TEI/text/body/listPlace/place/bibl in the BQG file.

For example in record https://bqgazetteer.bethmardutho.org/place/62 the record would be transformed in this way:

current:

<bibl xml:id="bib62-4">
                        <title xml:lang="en" level="m">The Scattered Pearls: A History of Syriac
                            Literature and Sciences</title>
                        <ptr target="http://syriaca.org/bibl/4"/>
                        <citedRange unit="pp">557</citedRange>
</bibl>

New (via http://syriaca.org/bibl/4)

<bibl xml:id="bib62-4">
<author ref="http://syriaca.org/person/372">
<persName xml:lang="en">
<forename>Ignatius</forename>
<forename>Afram</forename>
<surname>Barsoum</surname>
</persName>
</author>
<editor role="translator">
<persName xml:lang="en">
<forename>Matti</forename>
<surname>Moosa</surname>
</persName>
</editor>
<title xml:lang="en" level="m">
The Scattered Pearls: A History of Syriac Literature and Sciences
</title>
<ptr target="http://syriaca.org/bibl/4"/>
<citedRange unit="pp">557</citedRange>
</bibl>

Then a related question would be will this level of detail (from a biblStruct) break how our footnotes render in the HTML? Is there something I am not thinking of with this request?

wsalesky commented 4 years ago

@davidamichelson working on this today, will let you know if I have any questions.

davidamichelson commented 4 years ago

@wsalesky Just checking in, let us know if you think you might have any of these today. Thanks!

wsalesky commented 4 years ago

Here is the data: https://github.com/srophe/bethqatraye-data/tree/issue50

Please check and let me know if this is what you expected to get.

davidamichelson commented 4 years ago

Okay, sorry but it looks like our data in the bibl module needs clean up. So don't merge this branch. We will come back to this in January after we have cleaned up data.

wsalesky commented 4 years ago

@davidamichelson Just checking in, is there anything I need to do here?

wsalesky commented 4 years ago

@davidamichelson Checking in on this one as well. Close if complete.