Edirom-Online icon indicating copy to clipboard operation
Edirom-Online copied to clipboard

MEI support: annotation title and eutil:getLocalizedTitle

Open bwbohl opened this issue 2 years ago • 0 comments

When converting an annotation to JSON the annotation module call the generic eutil:getLocalizedTitle function:

https://github.com/Edirom/Edirom-Online/blob/ab873e092af1aea89c68d2b1135b856448476f5b/add/data/xqm/annotation.xqm#L82

The function is quite generic and returns the text of a title element:

https://github.com/Edirom/Edirom-Online/blob/ab873e092af1aea89c68d2b1135b856448476f5b/add/data/xqm/util.xqm#L107-L126

Concerning mei:annot the presence of mei:title already was a workaround in Edirom Online based on MEI 2.1.1 (2013( due to the unavailability of mei:head in mei:annot, as by definition mei:title is (and was) defined as: “Title of a bibliographic entity.”

If applicable, we should look for mei:head in this context.

bwbohl avatar May 09 '23 08:05 bwbohl