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

Fix, see #6

parent d7c95711
No related branches found
No related tags found
No related merge requests found
......@@ -64,10 +64,10 @@ declare function local:getMeasures($mei as node(), $mdivID as xs:string) as xs:s
let $resultMeasures :=
for $part in $parts
let $partMeasures := $part//mei:measure[not(parent::mei:del)][
if (contains(@label, '-'))
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
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
)
else (
functx:substring-before-if-contains(functx:substring-after-if-contains(@label, '('), ')') = $mentionedMeasureLabel
......
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