Skip to content
Snippets Groups Projects
Commit 99915923 authored by Christian Schaper's avatar Christian Schaper
Browse files

kein Leerzeichen bei Namensumkehrung, wenn am Ende ' d’'

parent 825181d8
No related branches found
No related tags found
No related merge requests found
......@@ -44,8 +44,9 @@ declare function str:join-path-elements($segs as xs:string*) as xs:string {
declare function str:printFornameSurname($name as xs:string?) as xs:string? {
let $clearName := str:normalize-space($name)
return
if(functx:number-of-matches($clearName, ',') eq 1)
then normalize-space(string-join(reverse(tokenize($clearName, ',')), ' '))
if(functx:number-of-matches($clearName, ',') eq 1) then
if(ends-with($clearName, ' d’')) then normalize-space(string-join(reverse(tokenize($clearName, ','))))
else normalize-space(string-join(reverse(tokenize($clearName, ',')), ' '))
else $clearName
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment