Skip to content

Commit

Permalink
fix function call
Browse files Browse the repository at this point in the history
since there might be multiple authors
  • Loading branch information
peterstadler committed Oct 28, 2024
1 parent 5279c2b commit 58236de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/wdt.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ declare function wdt:biblio($item as item()*) as map(*) {
let $date := query:get-normalized-date($node)
return
(if(exists($date)) then $date else '0000') ||
tokenize($node//tei:author, '\s+')[last()]
tokenize(($node//tei:author)[1], '\s+')[last()]
}, ())
},
'title' : function($serialization as xs:string) as item()? {
Expand Down

0 comments on commit 58236de

Please sign in to comment.