Skip to content

Commit

Permalink
fix display of breadcrumb for orgs
Browse files Browse the repository at this point in the history
got screwed by 7d01823
  • Loading branch information
peterstadler committed Jul 6, 2018
1 parent bb0c7b9 commit b0a505c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/app.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,9 @@ declare
declare
%templates:wrap
function app:person-forename-surname($node as node(), $model as map(*)) as xs:string {
str:printFornameSurnameFromTEIpersName($model?doc//tei:persName[@type='reg'])
switch($model?docType)
case 'persons' return str:printFornameSurnameFromTEIpersName($model?doc//tei:persName[@type='reg'])
default return str:printFornameSurname(query:title($model('docID')))
};

declare
Expand Down

0 comments on commit b0a505c

Please sign in to comment.