Skip to content

Commit

Permalink
fix for display of related items
Browse files Browse the repository at this point in the history
especially writings frequently lack the wrapper element tei:listBibl, hence we need to take care of this case as well
  • Loading branch information
peterstadler committed Jan 17, 2019
1 parent be68a13 commit 1a77556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/app.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ declare
function app:additionalSources($node as node(), $model as map(*)) as map(*) {
(: tei:msDesc, tei:bibl, tei:biblStruct als mögliche Kindelemente von tei:additional/tei:listBibl :)
map {
'additionalSources' := $model('textSource')//tei:additional/tei:listBibl/tei:* | $model('textSource')/tei:relatedItem/tei:*
'additionalSources' := $model('textSource')//tei:additional/tei:listBibl/tei:* | $model('textSource')/tei:relatedItem/tei:*[not(./self::tei:listBibl)] | $model('textSource')/tei:relatedItem/tei:listBibl/tei:*
}
};

Expand Down

0 comments on commit 1a77556

Please sign in to comment.