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

Add a flag for including a change log note indicating that the CSV is the canonical data form #49

Open wlpotter opened 1 year ago

wlpotter commented 1 year ago

For data that is in-progress and could be transformed multiple times, it can be useful to have an indication in the transformed TEI record stating that the CSV remains canonical.

An example might even be the subjects taxonomy, though this was initially raised in talks with the John of Ephesus project.

To implement:

<change type="warning" subtype="non-canonical-data-format" when="{$DATE}" who="{$config:creator-uri}">WARNING: This TEI XML file was generated from a CSV data sheet and is still in-progress. The CSV record remains the canonical form of this data, please do not edit this XML file by hand. All changes should be made in the CSV</change>

Only one change[@subtype="non-canonical-data-format"] elements should exist. The script should remove all but one, if the boolean flag is true. If the flag is false, none of these change log elements should be left in the final output.

Potentially also mark in the //revisionDesc/@status?

wlpotter commented 1 year ago

Worth clarifying with J of E that this is still a desired feature

wlpotter commented 1 year ago

@dlschwartz I have a vague memory of this being a request from J of E, or something we suggested to them? Do you know if this is an important feature to have for the transform?

dlschwartz commented 1 year ago

We should discuss. I don't have a clear recollection of any decision made.

wlpotter commented 1 year ago

Will go ahead and implement this