With this new value you can control how elements in the tooltip are rendered.
If the entity is part of the list (for example list of glosses),
<list type="glossary">
<item xml:id="kalendy">
<label type="main">Kalendy</label>
<gloss xml:lang="cs">název prvního dne v měsíci v římském kalendáři. <hi rendition="italic">Jani Calendae </hi>jsou tedy lednové Kalendy, začátek roku.</gloss>
<gloss xml:lang="en">the name of the first day of the month in the Roman calendar. <hi rendition="italic">Jani Calendae</hi> is thus the January Calendae, the beginning of the year.</gloss>
<note />
</item>
</list>
the <item> element can be rendered as the block element:
I suggest to introduce new mode value (within
$parameters
variable) to control HTML generated (in the tooltip, for example) for annotated elements.Suggested parameter's value, for instance
register-entry
should be used inreapi:register-entry()
function in theregisters.xql
module.On the line 435 change
to
With this new value you can control how elements in the tooltip are rendered.
If the entity is part of the list (for example list of glosses),
the
<item>
element can be rendered as the block element:Another example: if the
<hi>
element is part of the anotation, it can be rendered with desired rendition but not as an annotation: