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
50759daf
Commit
50759daf
authored
Aug 05, 2018
by
Mathias Goebel
Browse files
set conversion to work with empty sequence as well.
parent
b0c95966
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/misc.xqm
View file @
50759daf
...
...
@@ -19,9 +19,9 @@ function f-misc:get-title-by-baseUri($baseUri as xs:string) as xs: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)
declare function f-misc:nb-param-to-title($node as node(), $model as map(*), $nb
as xs:string?
)
as xs:string? {
if($nb = "")
if(
string(
$nb
)
= "")
then ""
else f-misc:get-title-by-baseUri( "textgrid:" || $nb )
};
...
...
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