Edirom / Edirom-Online

Edirom Online is a tool for presenting historical-critical music editions in digital form.
GNU General Public License v3.0
19 stars 18 forks source link

MEI support: annotation title and eutil:getLocalizedTitle #311

Open bwbohl opened 1 year ago

bwbohl commented 1 year ago

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.