Commit 1f9eebe7 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

proceedings

parent 3996e80d
......@@ -582,7 +582,7 @@ if(request:get-parameter-names() = 'page')
let $page := if($page = '') then 'outer_front_cover' else $page
let $indexFile := doc('/db/sade-projects/textgrid/data/xml/xhtml/' || $uri || "/toc.xml" )
let $pageList2 := $indexFile//@data-page/string()
let $index2 := index-of($pageList2, $page)
let $index2 := (index-of($pageList2, $page))[1]
let $return :=
(
(
......
......@@ -1127,7 +1127,7 @@ as element(xhtml:span)? {
element xhtml:span {
$ref/@xml:id ! attribute id { string(.) },
attribute class { 'ref' },
attribute data-ref { substring-after($ref/@target, '#') },
attribute data-ref { replace($ref/@target, '#', '') },
transfo:magic($ref/node()),
(: link :)
if( starts-with($ref/@target, '#xpath(//surface')
......@@ -1265,7 +1265,7 @@ declare function transfo:stamp($node as element(tei:stamp))
as element(xhtml:div) {
element xhtml:div {
attribute class {'stamp'},
switch ($node/string(.))
switch (string($node))
case 'FONTANE.'
return
<svg xmlns="http://www.w3.org/2000/svg" width="23mm" height="4mm" data-info="Stempel: FONTANE.">
......@@ -1317,6 +1317,10 @@ as element(xhtml:div) {
return
<img src="/public/img/stempel-berlin-w.png" width="100%" height="100%"/>
case ""
return
<img class="polizei-berlin" src="public/img/stamp-polizeipraesidium-berlin.svg" width="100%" height="100%"/>
default return
<svg xmlns="http://www.w3.org/2000/svg" width="23mm" height="3.5mm">
<g alignment-baseline="baseline">
......
Markdown is supported
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