-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SourceView: go to measure… function returns wrong measure #432
Comments
Is there any idea on how to fix this? |
Maybe something like? (($mei/id($movementId)//mei:measure[@label eq $measureIdName], $mei/id($movementId)//mei:measure[@n eq $measureIdName])[1]) |
The above could provide a quick fix, but… On a second thought, maybe thiw would not be ideal in cases of measures breaking across systems (and maybe even pages) because then it would only return the first part of the measure (the first measure with a matching This needs a more detailed look and a proper refactoring would be the ideal, i.e.:
All in all I think a bigger refactoring would be good in this context but for now a small fix should be tested. |
This also touches the context of #102 |
If the edition uses
@n
for a technical enumeration ofmei:measure
and@label
for a semantical naming of the measures, which is, e.g., needed if a measure breaks across systems, using the "go to measure…" function in sourceView returns the wrong measure, because the function for finding the correct measure-ID relies on@n
.Edirom-Online/add/data/xql/getMeasurePage.xql
Line 27 in 95a76e8
The text was updated successfully, but these errors were encountered: