Skip to content

Commit

Permalink
Update config.xqm
Browse files Browse the repository at this point in the history
fix xpath to include children of surnames and forenames for issue ediarum#12
  • Loading branch information
lauml authored Mar 2, 2021
1 parent 067f36a commit 804c6d0
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 804c6d0

Please sign in to comment.