Commit 473bbaca authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

set code-viewer to default in transcription view

parent 4b2b6da1
......@@ -11,6 +11,7 @@ declare namespace svg="http://www.w3.org/2000/svg";
declare namespace xlink="http://www.w3.org/1999/xlink";
declare namespace tgmd="http://textgrid.info/namespaces/metadata/core/2010";
import module namespace code="http://bdn-edition.de/ns/code-view";
import module namespace console="http://exist-db.org/xquery/console";
import module namespace config="http://textgrid.de/ns/SADE/config" at "../config/config.xqm";
......@@ -439,15 +440,12 @@ declare function fontaneTransfo:surfaceDiv($node as node(), $inital as xs:string
<xhtml:a target="_blank" href="rest/data/{$node/preceding::tei:teiHeader//tei:idno[@type="TextGrid"]/substring-after(., 'textgrid:')}.xml">(via REST)</xhtml:a>
</xhtml:div>
},
element xhtml:code {
attribute class {'html'},
if( config:get("sade.develop") = "true" )
then serialize($node)
else (serialize($node) => replace("<!--.*?-->", "") => replace("\n+", "&#10;")),
for $n in $node/following-sibling::tei:note
where $n >> $node and $n << ($node/following-sibling::tei:surface)[1]
return serialize($n)
}
if( config:get("sade.develop") = "true" )
then code:main($node)
else code:main($node, false(), "hljs-"),
for $n in $node/following-sibling::tei:note
where $n >> $node and $n << ($node/following-sibling::tei:surface)[1]
return code:main($n)
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment