From 950d8cbe086f2b36c889e7977202c3a63a4c5052 Mon Sep 17 00:00:00 2001
From: MRodz <rodzis@sub.uni-goettingen.de>
Date: Wed, 9 May 2018 10:24:48 +0200
Subject: [PATCH] add SADE specific paths

---
 modules/config.xqm | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/modules/config.xqm b/modules/config.xqm
index 5305293..3692eef 100644
--- a/modules/config.xqm
+++ b/modules/config.xqm
@@ -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
+};
-- 
GitLab