-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18f8c1e
commit 3992b4b
Showing
6 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
xquery version "3.1"; | ||
|
||
module namespace config="http://e-editiones.org/tei-publisher/odd-global"; | ||
|
||
(: | ||
Determine the application root collection from the current module load path. | ||
:) | ||
declare variable $config:app-root := | ||
let $rawPath := system:get-module-load-path() | ||
let $modulePath := | ||
(: strip the xmldb: part :) | ||
if (starts-with($rawPath, "xmldb:exist://")) then | ||
if (starts-with($rawPath, "xmldb:exist://embedded-eXist-server")) then | ||
substring($rawPath, 36) | ||
else | ||
substring($rawPath, 15) | ||
else | ||
$rawPath | ||
return | ||
substring-before($modulePath, "/modules") | ||
; | ||
|
||
(:~ | ||
: The root of the collection hierarchy containing data. | ||
:) | ||
declare variable $config:data-root := $config:app-root || "/data"; | ||
|
||
(:~ | ||
: The root of the collection hierarchy containing registers data. | ||
:) | ||
declare variable $config:register-root := $config:data-root || "/registers"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters