You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: repo/backend/db_switch_build.xqm
+31-14Lines changed: 31 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
xqueryversion"3.1";
1
+
xqueryversion"4.0";
2
2
3
3
(:~
4
4
: Ce module permet d'initialiser la base de données "dots" et y ajoute les deux documents XML: "dots_db_switcher.xml" et "dots_default_metadata_mapping.xml".
@@ -15,33 +15,42 @@ xquery version "3.1";
15
15
: @since 2023-06-14
16
16
: @version 1.0
17
17
:)
18
+
(:~
19
+
: Module to initialize the "dots" database with two XML documents:
20
+
: "dots_db_switcher.xml": lists available resources and specifies:
21
+
: - the resource type ("project", "collection", or "document"),
22
+
: - its unique identifier (@dtsResourceId),
23
+
: - and the corresponding BaseX database (@dbName).
24
+
: Initially empty, this file is later populated with resource entries.
25
+
: It is used by the DTS router to locate metadata for each resource.
26
+
:
27
+
: "dots_default_metadata_mapping.xml": default metadata mapping applied when no custom mapping is available. It extracts key metadata (title, creator, publisher) using XPath expressions.
0 commit comments