wlpotter / csv-to-srophe

A set of XQuery modules for converting CSV data to Srophe-compliant TEI XML records. Developed for Syriaca.org
GNU General Public License v3.0
1 stars 1 forks source link

Refactoring csv2srophe and csv2places modules #8

Open wlpotter opened 3 years ago

wlpotter commented 3 years ago
wlpotter commented 2 years ago

need a refactor to create a generic "create-index" that receives a string as well as the header map and makes a sequence of elements named after that string. Note that this creates the header indices (i.e., sheet-wide) while something like source-index-for-row creates row-specific indices of data, which is different.

Sources may be the only odd one as they both are used to create elements (bibls) and to source elements with attributes.

[EDIT: These are complete]

wlpotter commented 2 years ago

It would also be useful to have in csv2srophe a generic function that looks through an index or the header map for specific row data (there is a lot of repetition in the persName, placeName, abstract, etc. creation where the for loop is virtually the same). I need to think more about how this will look, and it will likely get its own issue.

[EDIT: These are complete]

wlpotter commented 1 year ago

Note to self: none of these may be necessary, and some may no longer be relevant with changes to how, e.g., nested locations are encoded in the new schema