Skip to content

Commit

Permalink
fix xpath for forename
Browse files Browse the repository at this point in the history
to include child elements of surname (such as name[@type='used'])
  • Loading branch information
lauml authored May 25, 2021
1 parent 804c6d0 commit 1178281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/config.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ declare function config:get-ediarum-index-with-params($project-name as xs:string
for $x in $entries//tei:person
let $name :=
if ($x/tei:persName[@type='reg'][1]/tei:forename)
then (normalize-space(concat(string-join($x/tei:persName[@type='reg'][1]//tei:surname/text()), ', ', string-join($x/tei:persName[@type='reg'][1]//tei:forename/text()))))
then (normalize-space(concat(string-join($x/tei:persName[@type='reg'][1]/tei:surname/text()), ', ', string-join($x/tei:persName[@type='reg'][1]/tei:forename//text()))))
else ($x/tei:persName[@type='reg'][1]/tei:name[1]/normalize-space())
let $lifedate :=
if ($x/tei:floruit)
Expand Down

0 comments on commit 1178281

Please sign in to comment.