Skip to content

Commit

Permalink
pitchtool navigation ignore db-files
Browse files Browse the repository at this point in the history
  • Loading branch information
bwbohl committed Nov 6, 2014
1 parent 7df1861 commit 302ab67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pitchtool/getNavigation.xql
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ declare function local:getPages($source as xs:string, $mdiv as xs:string) as xs:
};

declare function local:getStaves($source as xs:string, $mdiv as xs:string) as xs:string* {
let $mdivByID := collection('/db/apps/pitchtool-data/' || $source || '/' || $mdiv)//id($mdiv)
let $staves := ($mdivByID//mei:scoreDef)[1]//mei:staffDef
let $pages := collection('/db/apps/pitchtool-data/' || $source || '/' || $mdiv||'?select='||$source||'*.xml')
let $staves := ($pages//mei:scoreDef)[1]//mei:staffDef
return
for $staff in $staves
let $label := if($staff/@label)then($staff/@label)else($staff/../@label || ' (' || count($staff/preceding-sibling::mei:staffDef) + 1 || ')')
Expand Down

0 comments on commit 302ab67

Please sign in to comment.