Commit f66b536d authored by Moritz Schepp's avatar Moritz Schepp
Browse files

see #294, #295, #296, #297

parent dd090918
xquery version "3.1";
import module namespace transformXML="https://sade.textgrid.de/ns/transform" at "../modules/architrave/transform.xqm";
import module namespace elastic="http://elastic.io" at "../modules/elastic.xqm";
let $r := elastic:setup()
return $r
let $c := transformXML:cacheAllEditions()
let $i := elastic:setup()
let $r := elastic:refresh()
return $r
\ No newline at end of file
......@@ -183,7 +183,9 @@ declare function elastic:build-ref-map($locale) {
let $targets :=
for $r in $refs
let $target := data($r/@target)
let $id := substring($target, 2)
let $clean-target := fn:replace($target, ' .+', '')
(: let $x := util:log-system-out($clean-target):)
let $id := substring($clean-target, 2)
return $id
for $target-id in $targets
......
......@@ -342,6 +342,10 @@ w.hover {
flex-grow: 1;
}
#edition-container {
display: inline-block;
}
body.hide-refs #edition-container .fa-external-link-square-alt,
body.hide-refs #translation-container .fa-external-link-square-alt {
display: none;
......
templates/images/ANR07-HD-300dpi.jpg

75.4 KB | W: | H:

templates/images/ANR07-HD-300dpi.jpg

23 KB | W: | H:

templates/images/ANR07-HD-300dpi.jpg
templates/images/ANR07-HD-300dpi.jpg
templates/images/ANR07-HD-300dpi.jpg
templates/images/ANR07-HD-300dpi.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -1015,7 +1015,25 @@ function dropTooltips() {
element.innerHTML = ''
}
function handleSpecial(containerSelector) {
const container = document.querySelector(containerSelector)
const url = AtUrl.current()
const edition = url.params()['edition']
const view = url.params()['page']
if (edition == '34zs7') { // sturm, this code is run for both containers
if (view == '101') {
// see #296
const ref = container.querySelector('ref')
ref.setAttribute('target', ref.getAttribute('target').split(' ')[0])
}
}
}
function augment(containerSelector) {
handleSpecial(containerSelector)
dropTooltips()
wrapOuterDiv(containerSelector)
......
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