Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
8c85f4b7
Commit
8c85f4b7
authored
Aug 03, 2018
by
Mathias Goebel
🎠
Browse files
get notebook title by GET param "nb"
parent
8dfa5142
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/misc.xqm
View file @
8c85f4b7
...
...
@@ -16,7 +16,12 @@ declare
%test:arg("baseUri","") %test:assertEquals("")
function f-misc:get-title-by-baseUri($baseUri as xs:string) as xs:string? {
if($baseUri = "") then () else
$f-misc:metadata-collection//tgmd:object[tgmd:generic/tgmd:generated/tgmd:textgridUri[starts-with(., $baseUri)]]//tgmd:title/string()
$f-misc:metadata-collection//tgmd:textgridUri[starts-with(string(.), $baseUri)]/ancestor::tgmd:object//tgmd:title/string()
};
declare function f-misc:nb-param-to-title($node as node(), $model as map(*), $nb)
as xs:string? {
f-misc:get-title-by-baseUri( "textgrid:" || $nb )
};
declare function f-misc:cite($node as node(), $model as map(*)) {
...
...
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