Skip to content

Commit

Permalink
added information for revealed letters to summary, closes #102
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Apr 19, 2016
1 parent eb7c804 commit c2031aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/app.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ declare
if($doc//tei:correspDesc[@n = 'revealed']) then lang:get-language-string('correspondenceTextNotAvailable', $lang)
else lang:get-language-string('correspondenceTextNotYetAvailable', $lang)
return
element span {
element p {
attribute class {'notAvailable'},
$text
}
Expand Down Expand Up @@ -1098,7 +1098,9 @@ declare
declare
%templates:default("lang", "en")
function app:print-summary($node as node(), $model as map(*), $lang as xs:string) as element(p)* {
let $summary := wega-util:transform($model('doc')//tei:note[@type='summary'], doc(concat($config:xsl-collection-path, '/editorial.xsl')), config:get-xsl-params(()))
let $summary :=
if($model('doc')//tei:correspDesc[@n = 'revealed']) then lang:get-language-string('correspondenceTextNotAvailable', $lang)
else wega-util:transform($model('doc')//tei:note[@type='summary'], doc(concat($config:xsl-collection-path, '/editorial.xsl')), config:get-xsl-params(()))
return
if(exists($summary) and (every $i in $summary satisfies $i instance of element())) then $summary
else element p {
Expand Down

0 comments on commit c2031aa

Please sign in to comment.