Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
5bad0580
Commit
5bad0580
authored
Nov 29, 2018
by
mrodzis
💪
Browse files
Add info about cross references (cf. print#8)
parent
75b794bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/fontane/teisimpleprint/index-info.xqm
View file @
5bad0580
...
...
@@ -51,7 +51,7 @@ declare variable $index-info:place-map :=
));
declare variable $index-info:psn-map :=
map:merge(for $entry in doc("/db/sade-projects/textgrid/data/xml/data/
253sx
.xml")//*[self::tei:person or self::tei:personGrp]
map:merge(for $entry in doc("/db/sade-projects/textgrid/data/xml/data/
test-psn
.xml")//*[self::tei:person or self::tei:personGrp]
return
map:entry(string($entry/@xml:id),
map {
...
...
@@ -60,7 +60,8 @@ declare variable $index-info:psn-map :=
"death" : string($entry/tei:death),
"occupation" : string($entry/tei:occupation),
"occs-in-nbs" : "",
"relation-to-fontane" : string($entry/tei:state/tei:desc)
"relation-to-fontane" : string($entry/tei:state/tei:desc),
"same-as" : string($entry/ancestor::tei:listPerson//tei:person[not(@xml:id)][descendant::tei:ptr[contains(@target, $entry/@xml:id)]]/tei:persName)
}
));
...
...
modules/fontane/teisimpleprint/tei2teisimple.xqm
View file @
5bad0580
...
...
@@ -930,6 +930,12 @@ $index-type as xs:string) as element()* {
let $relation := index-info:get-info-about($index-type, $ref, "relation-to-fontane")
return
fontaneSimple:make-term("relation-to-fontane", $relation)
else
(),
if(index-info:get-info-about($index-type, $ref, "same-as")) then
let $same-as := index-info:get-info-about($index-type, $ref, "same-as")
return
fontaneSimple:make-term("same-as", $same-as)
else
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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