Skip to content

Commit

Permalink
Merge pull request #372 from Edirom/fix-getPreferencesURI
Browse files Browse the repository at this point in the history
add fallback for missing user-prefs
  • Loading branch information
bwbohl authored Apr 15, 2024
2 parents f613eb7 + 5b7a340 commit 28d5e8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion add/data/xqm/edition.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ declare function edition:getLanguageCodesSorted($uri as xs:string) as xs:string
:)
declare function edition:getPreferencesURI($uri as xs:string) as xs:string {

doc($uri)//edirom:preferences/@xlink:href => string()
if(doc($uri)//edirom:preferences/@xlink:href => string()) then(
doc($uri)//edirom:preferences/@xlink:href => string()
) else ('../prefs/edirom-prefs.xml')
};

(:~
Expand Down

0 comments on commit 28d5e8b

Please sign in to comment.