icaruseu / mom-ca

Monasterium.net (http://www.monasterium.net/mom) - repository and collaborative archive
https://github.com/icaruseu/mom-ca/wiki
GNU General Public License v3.0
17 stars 11 forks source link

index of persons only works with plain text in persName #1120

Closed NTsch closed 1 year ago

NTsch commented 1 year ago

The list of names for a given lemma in the person index is currently created from the plain text nodes in tei:persName:

let $name := $person/tei:persName
let $inhalt := concat($name/text(), ' ',$aufbereitung)

I suggest changing this to let $inhalt := concat(string-join($name//text()), ' ',$aufbereitung) in order to support indices with further modeling beyond persName, such as in the Fontenay index:

<tei:persName>
    <tei:name>Hugo II</tei:name>
    <tei:roleName role="dux">dux
        <tei:placeName>Burgundiae</tei:placeName>
    </tei:roleName>
    <tei:date from="1103" to="1143"/>
</tei:persName>