Skip to content
Snippets Groups Projects
Commit 950d8cbe authored by MRodz's avatar MRodz
Browse files

add SADE specific paths

parent af2f58a5
No related branches found
No related tags found
No related merge requests found
......@@ -11,10 +11,10 @@ declare namespace templates="http://exist-db.org/xquery/templates";
declare namespace repo="http://exist-db.org/xquery/repo";
declare namespace expath="http://expath.org/ns/pkg";
(:
(:
Determine the application root collection from the current module load path.
:)
declare variable $config:app-root :=
declare variable $config:app-root :=
let $rawPath := system:get-module-load-path()
let $modulePath :=
(: strip the xmldb: part :)
......@@ -35,6 +35,10 @@ declare variable $config:repo-descriptor := doc(concat($config:app-root, "/repo.
declare variable $config:expath-descriptor := doc(concat($config:app-root, "/expath-pkg.xml"))/expath:package;
declare variable $config:sade := "/db/sade-projects/textgrid/data/xml/";
declare variable $config:sade-data := $config:sade || "data/";
declare variable $config:sade-meta := $config:sade || "meta/";
(:~
: Resolve the given path using the current application context.
: If the app resides in the file system,
......@@ -97,4 +101,4 @@ declare function config:app-info($node as node(), $model as map(*)) {
<td>{ request:get-attribute("$exist:controller") }</td>
</tr>
</table>
};
\ No newline at end of file
};
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