Commit 2ad1a2b1 authored by Moritz Schepp's avatar Moritz Schepp
Browse files

see #295

parent f66b536d
......@@ -31,6 +31,10 @@ function doFinalBrowserTest() {
}
doFinalBrowserTest();
function isProd() {
return !!document.location.href.match(/architrave\.eu(?!\/dev\/)/)
}
function isStaging() {
return !!document.location.href.match(/architrave\.eu\/dev\//)
}
......@@ -1021,6 +1025,7 @@ function handleSpecial(containerSelector) {
const url = AtUrl.current()
const edition = url.params()['edition']
const view = url.params()['page']
const locale = url.params()['lang']
if (edition == '34zs7') { // sturm, this code is run for both containers
if (view == '101') {
......@@ -1028,6 +1033,24 @@ function handleSpecial(containerSelector) {
const ref = container.querySelector('ref')
ref.setAttribute('target', ref.getAttribute('target').split(' ')[0])
}
// see #295
if (locale == 'de') {
if (view == '73') {
const hi = container.
querySelector("rs[ref='wrk:textgrid:3q7d5 wrk:textgrid:3qkv8']").
nextElementSibling
const br = document.createElement('br')
hi.before(br)
}
if (view == '84') {
const placename = container.
querySelector("placename[ref='plc:textgrid:3pg0p']")
const br = document.createElement('br')
placename.after(br)
}
}
}
}
......
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