getAnnotationPreviews fails on text source
Created by: bwbohl
<exception>
<path>/db/apps/EdiromOnline/data/xql/getAnnotationPreviews.xql</path>
<message>err:XPST0017 Function teitext:getLabel() is not defined in namespace 'http://www.edirom.de/xquery/teitext' [at line 80, column 52]</message>
</exception>
This is due to a wrong function call to teitext:getLabel($doc)
instead of teitext:getLabel($doc, $edition)
. Which makes me wonder why this call submits the edition id in the first place as teitext:getLabel
only uses this to get the edition language. There should be a more elegant way for getting language in place.