Commit 994e5c76 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

fix an issue with page link list

parent 993ed5f5
......@@ -543,6 +543,7 @@ return
element xhtml:ul {
(: main list :)
for $uri in $base-uris
let $pageList := $mentions[base-uri() = $uri] ! ./ancestor::tei:surface[last()]/string(@n)
let $tguri := ($uri => tokenize("/"))[last()]
let $resolve := ixp:resolve-name(substring-before($tguri, ".xml"))
let $name := $resolve => replace("([A-E])0(\d)", "$1$2")
......@@ -552,11 +553,9 @@ return
$name || ": ",
element xhtml:ul {
attribute class {"link-list-horizontal"},
for $mention in $mentions
let $surface := $mention/ancestor::tei:surface[last()]
let $page := string($surface/@n)
let $count := $surface//tei:rs[contains(@ref, ":" || $id)][not(@prev)] => count()
where $mention/base-uri() = $uri
for $page in distinct-values($pageList)
let $surface := doc($uri)//tei:surface[@n = $page]
let $count := index-of($pageList, $page) => count()
return
element xhtml:li {
element xhtml:a {
......
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