Skip to content

Commit

Permalink
add date treatment
Browse files Browse the repository at this point in the history
  • Loading branch information
emchateau committed Jul 9, 2020
1 parent 0cca332 commit f3cfa99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mappings/tei2html.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function dispatch($node as node()*, $options as map(*)) as item()* {
case element(tei:lb) return lb($node, $options)
case element(tei:pb) return pb($node, $options)
case element(tei:hi) return hi($node, $options)
(: case element(tei:date) return getDate($node, $options) :)
case element(tei:date) return getDate($node, $options)
case element(tei:p) return p($node, $options)
case element(tei:item) return synopsx.mappings.tei2html:item($node, $options)
case element(tei:label) return label($node, $options)
Expand Down Expand Up @@ -246,6 +246,10 @@ declare function emph($node as element(tei:emph), $options as map(*)) {
<em class="emph">{ passthru($node, $options) }</em>
};

declare function getDate($node, $options as map(*)) {
<span class='date'>{ passthru($node, $options)}</span>
};

(:~
: ~:~:~:~:~:~:~:~:~
: tei biblio
Expand Down

0 comments on commit f3cfa99

Please sign in to comment.