Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Edirom-Online
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Edirom
Edirom-Online
Commits
a068e65a
Verified
Commit
a068e65a
authored
2 months ago
by
Peter Stadler
Browse files
Options
Downloads
Patches
Plain Diff
create proper array of objects
parent
a8a5c8f9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
add/data/xql/getAnnotationsInText.xql
+4
-5
4 additions, 5 deletions
add/data/xql/getAnnotationsInText.xql
with
4 additions
and
5 deletions
add/data/xql/getAnnotationsInText.xql
+
4
−
5
View file @
a068e65a
...
...
@@ -49,13 +49,12 @@ declare function local:getAnnotations($uriSharp as xs:string, $annotations as el
let $plist as array(*) :=
array {
for $p in tokenize($annotation/@plist, '\s+')
where starts-with($p, $uriSharp)
return
if (starts-with($p, $uriSharp)) then
(concat('{id:"', $id, '__', substring-after($p, $uriSharp), '"}'))
else
()
map {
'id': concat( $id, '__', substring-after($p, $uriSharp))
}
}
let $plist := string-join($plist, ',')
return
map {
'id': $id,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment