Skip to content
Snippets Groups Projects
Commit 81f45837 authored by Nikolaos Beer's avatar Nikolaos Beer
Browse files

Fix: if your want to calculate numbers, you need numbers, see #6

parent c72acd05
No related branches found
No related tags found
No related merge requests found
......@@ -66,11 +66,11 @@ declare function local:getMeasures($mei as node(), $mdivID as xs:string) as xs:s
let $partMeasures := $part//mei:measure[not(parent::mei:del)][
if (contains(@label, '–'))
then (
substring-before(functx:substring-before-if-contains(functx:substring-after-if-contains(@label, '('), ')'), '–') <= $mentionedMeasureLabel and
substring-after(functx:substring-before-if-contains(functx:substring-after-if-contains(@label, '('), ')'), '–') >= $mentionedMeasureLabel
number(substring-before(functx:substring-before-if-contains(functx:substring-after-if-contains(@label, '('), ')'), '–')) <= number($mentionedMeasureLabel) and
number(substring-after(functx:substring-before-if-contains(functx:substring-after-if-contains(@label, '('), ')'), '–')) >= number($mentionedMeasureLabel)
)
else (
functx:substring-before-if-contains(functx:substring-after-if-contains(@label, '('), ')') = $mentionedMeasureLabel
number(functx:substring-before-if-contains(functx:substring-after-if-contains(@label, '('), ')')) = number($mentionedMeasureLabel)
)
]
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment