Skip to content

Commit

Permalink
fix: attach backend collection
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-goebel committed Jan 19, 2021
1 parent 8288751 commit 4b22d2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/config.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ xquery version "3.0";
:)
module namespace config="http://annotation.de.dariah.eu/eXanore-viewer/config";

declare namespace templates="http://exist-db.org/xquery/templates";
import module namespace backend="http://www.edirom.de/tools/eXanore/config" at "../../eXanore/modules/config.xqm";


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";

Expand All @@ -29,7 +31,7 @@ declare variable $config:app-root :=
replace( substring-before($modulePath, "/modules"), "null", "" )
;

declare variable $config:data-root := "/" || string-join(tokenize($config:app-root, '/')[position() lt last()][position() gt 1], '/') || "/eXanore/annotations";
declare variable $config:data-root := $backend:data-root;

declare variable $config:grpHome := $config:app-root || "/groups/";

Expand Down

0 comments on commit 4b22d2b

Please sign in to comment.