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
248eb645
Commit
248eb645
authored
3 months ago
by
Peter Stadler
Committed by
Daniel Jettka
2 months ago
Browse files
Options
Downloads
Patches
Plain Diff
some minor refactoring
parent
d4bb2b65
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
add/data/xqm/source.xqm
+4
-4
4 additions, 4 deletions
add/data/xqm/source.xqm
with
4 additions
and
4 deletions
add/data/xqm/source.xqm
+
4
−
4
View file @
248eb645
...
...
@@ -70,7 +70,7 @@ declare function source:getLabels($sources as xs:string*, $edition as xs:string)
:)
declare
function
source:getLabel
(
$source
as
xs:string
,
$edition
as
xs:string
)
as
xs:string
{
let
$sourceDoc
:=
d
oc
(
$source
)
let
$sourceDoc
:=
eutil:getD
oc
(
$source
)
let
$language
:=
eutil:getLanguage
(
$edition
)
let
$label
:=
...
...
@@ -85,7 +85,7 @@ declare function source:getLabel($source as xs:string, $edition as xs:string) as
if
(
$label
)
then
(
$label
)
else
(
doc
(
$source
)
//
mei:meiHead
/
mei:fileDesc
/
mei:titleStmt
/
mei:title
[
not
(
@xml:lang
)
or
@xml:lang
=
$language
])
(
$source
Doc
//
mei:meiHead
/
mei:fileDesc
/
mei:titleStmt
/
mei:title
[
not
(
@xml:lang
)
or
@xml:lang
=
$language
])
let
$label
:=
if
(
$label
)
then
...
...
@@ -112,7 +112,7 @@ declare function source:getSigla($sources as xs:string*) as xs:string {
};
(:~
: Returns a
n array
of source sigla
: Returns a
sequence
of source sigla
:
: @param $sources The URIs of the Sources' documents to process
: @return The sigla
...
...
@@ -133,7 +133,7 @@ declare function source:getSiglaAsArray($sources as xs:string*) as xs:string* {
:)
declare
function
source:getSiglum
(
$source
as
xs:string
)
as
xs:string
?
{
let
$doc
:=
d
oc
(
$source
)
let
$doc
:=
eutil:getD
oc
(
$source
)
let
$elems
:=
$doc
//
mei
:
*
[
@type
eq
'siglum'
]
return
if
(
exists
(
$elems
))
...
...
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