Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ARCHITRAVE
SADE
Commits
f66b536d
Commit
f66b536d
authored
Oct 27, 2021
by
Moritz Schepp
Browse files
see
#294
,
#295
,
#296
,
#297
parent
dd090918
Changes
5
Hide whitespace changes
Inline
Side-by-side
helpers/reindex.xq
View file @
f66b536d
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
modules/elastic.xqm
View file @
f66b536d
...
...
@@ -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
...
...
templates/css/architrave.css
View file @
f66b536d
...
...
@@ -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
View replaced file @
dd090918
View file @
f66b536d
75.4 KB
|
W:
|
H:
23 KB
|
W:
|
H:
2-up
Swipe
Onion skin
templates/js/edition.js
View file @
f66b536d
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment