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
5e1b64da
Commit
5e1b64da
authored
Nov 05, 2019
by
Mathias Goebel
Browse files
sort work items in index on personal entities
parent
9aa11ba8
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/index-processor.xqm
View file @
5e1b64da
...
...
@@ -5,7 +5,7 @@ xquery version "3.1";
: the index for a single notebook.
: The corresponding viewer module is `index-viewer.xqm`.
: @author Mathias Göbel
: @version 1.0.
1
: @version 1.0.
2
: @see https://fontane-nb.dariah.eu/register.html
:)
module namespace ixp="http://fontane-nb.dariah.eu/index-processor";
...
...
@@ -385,6 +385,7 @@ element xhtml:li {
let $target := $creator/@target => substring-before(" ")
let $targetId := $target => substring-after(":")
let $targetNode := $ixp:dataCollection/id($targetId)
let $title := string($targetNode/*[1])
let $htmlResource :=
(: TODO remove condition_s_ for final production release :)
if($targetNode)
...
...
@@ -393,6 +394,7 @@ element xhtml:li {
then "two entities with same ID: " || $targetId
else ixp:get-list-by-entity( $targetNode )
else "target-not-available"
order by $title
return
element xhtml:li {
attribute class {"item"},
...
...
@@ -400,7 +402,7 @@ element xhtml:li {
attribute href { "register.html?e=" || string-join($targetId) },
if($targetNode[2])
then "two entities with same ID: " || $targetId
else
string($targetNode/*[1])
else
$title
},
text{ " " },
element xhtml:span {
...
...
@@ -1481,3 +1483,4 @@ else
}
}
};
Mathias Goebel
@mgoebel
mentioned in commit
9a778ced
·
Nov 05, 2019
mentioned in commit
9a778ced
mentioned in commit 9a778ceda0759e4b7d1b9d0ccd062acaee196cc3
Toggle commit list
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