From ea33a547dd1c8228dc17d3d543d56700a0b19d19 Mon Sep 17 00:00:00 2001
From: Stefan Hynek <stefan.hynek@uni-goettingen.de>
Date: Mon, 18 Jan 2021 09:32:56 +0100
Subject: [PATCH] fix(ifweb): register library modules

allow to depend on namespace resolution of the packages modules

closes #5
---
 expath-pkg.xml.tmpl                   | 4 ++--
 modules/intermediate_format/ifweb.xql | 6 +++---
 repo.xml                              | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/expath-pkg.xml.tmpl b/expath-pkg.xml.tmpl
index d157135..da2c912 100644
--- a/expath-pkg.xml.tmpl
+++ b/expath-pkg.xml.tmpl
@@ -8,7 +8,7 @@
     <dependency processor="http://exist-db.org" semver-min="@project.processorversion@"/>
     <dependency package="http://exist-db.org/apps/shared"/>
     <xquery>
-        <namespace>http://bdn-edition.de/intermediate_format</namespace>
-        <file>ifweb.xqm</file>
+        <namespace>http://bdn-edition.de/intermediate_format/ifweb</namespace>
+        <file>ifweb.xql</file>
     </xquery>
 </package>
diff --git a/modules/intermediate_format/ifweb.xql b/modules/intermediate_format/ifweb.xql
index 45b89a9..a2cbc18 100644
--- a/modules/intermediate_format/ifweb.xql
+++ b/modules/intermediate_format/ifweb.xql
@@ -35,9 +35,9 @@ module namespace ifweb="http://bdn-edition.de/intermediate_format/ifweb";
 declare namespace tei = "http://www.tei-c.org/ns/1.0";
 
 import module namespace console="http://exist-db.org/xquery/console";
-import module namespace pre="http://bdn-edition.de/intermediate_format/preprocessing" at "xmldb:exist:///db/apps/interformat/modules/intermediate_format/preprocessing.xqm";
-import module namespace ident = "http://bdn-edition.de/intermediate_format/identification" at "xmldb:exist:///db/apps/interformat/modules/intermediate_format/identification.xqm";
-import module namespace config = "http://bdn-edition.de/intermediate_format/config" at "xmldb:exist:///db/apps/interformat/modules/config.xqm";
+import module namespace pre="http://bdn-edition.de/intermediate_format/preprocessing" at "preprocessing.xqm";
+import module namespace ident = "http://bdn-edition.de/intermediate_format/identification" at "identification.xqm";
+import module namespace config = "http://bdn-edition.de/intermediate_format/config" at "../config.xqm";
 
 declare option exist:serialize "method=xml media-type=text/xml omit-xml-declaration=no indent=no";
 
diff --git a/repo.xml b/repo.xml
index 68920d9..c15163a 100644
--- a/repo.xml
+++ b/repo.xml
@@ -10,5 +10,5 @@
     <target>interformat</target>
     <prepare>pre-install.xql</prepare>
     <finish/>
-<deployed>2018-03-26T10:38:10.685+02:00</deployed>
+<deployed />
 </meta>
\ No newline at end of file
-- 
GitLab