From 72534adebffc35906cc549b5c99bba4cb6bc1aa5 Mon Sep 17 00:00:00 2001
From: Andreas Romeyke <andreas.romeyke@slub-dresden.de>
Date: Wed, 19 Jul 2023 18:46:59 +0200
Subject: [PATCH] - init

---
 .../invalid/mets/mets_dnx_minimal.invalid.xml | 24 ++++++++++++++++++
 .../test/valid/mets/mets_dnx_minimal.xml      | 25 +++++++++++++++++++
 2 files changed, 49 insertions(+)
 create mode 100644 resources/test/invalid/mets/mets_dnx_minimal.invalid.xml
 create mode 100644 resources/test/valid/mets/mets_dnx_minimal.xml

diff --git a/resources/test/invalid/mets/mets_dnx_minimal.invalid.xml b/resources/test/invalid/mets/mets_dnx_minimal.invalid.xml
new file mode 100644
index 0000000..a0a41a0
--- /dev/null
+++ b/resources/test/invalid/mets/mets_dnx_minimal.invalid.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mets:mets xmlns:mets="http://www.loc.gov/METS/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://www.loc.gov/METS/ https://www.loc.gov/standards/mets/version1121/mets.xsd">
+  <mets:dmdSec ID="ie-dmd"/>
+  <mets:amdSec ID="FL-amd">
+    <mets:techMD ID="FL-amd-tech">
+      <mets:mdWrap MDTYPE="OTHER" OTHERMDTYPE="dnx">
+        <mets:xmlData>
+          <dnx version="5.0" xmlns="http://www.exlibrisgroup.com/dps/dnx"
+            xsi:schemaLocation="http://www.exlibrisgroup.com/dps/dnx https://developers.exlibrisgroup.com/wp-content/uploads/2023/01/dnx_aip.xsd">
+            <section id="fileFormat">
+              <record>
+                <key id="NOT_ALLOWED">INVALID</key>
+              </record>
+            </section>
+          </dnx>
+        </mets:xmlData>
+      </mets:mdWrap>
+    </mets:techMD>
+  </mets:amdSec>
+  <mets:structMap>
+    <mets:div/>
+  </mets:structMap>
+</mets:mets>
diff --git a/resources/test/valid/mets/mets_dnx_minimal.xml b/resources/test/valid/mets/mets_dnx_minimal.xml
new file mode 100644
index 0000000..9e3c805
--- /dev/null
+++ b/resources/test/valid/mets/mets_dnx_minimal.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mets:mets xmlns:mets="http://www.loc.gov/METS/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://www.loc.gov/METS/ https://www.loc.gov/standards/mets/version1121/mets.xsd">
+  <mets:dmdSec ID="ie-dmd"/>
+  <mets:amdSec ID="FL-amd">
+    <mets:techMD ID="FL-amd-tech">
+      <mets:mdWrap MDTYPE="OTHER" OTHERMDTYPE="dnx">
+        <mets:xmlData>
+          <dnx version="5.0" xmlns="http://www.exlibrisgroup.com/dps/dnx"
+            xsi:schemaLocation="http://www.exlibrisgroup.com/dps/dnx https://developers.exlibrisgroup.com/wp-content/uploads/2023/01/dnx_aip.xsd">
+            <section id="fileFormat">
+              <record>
+                <key id="formatName">fmt/353</key>
+                <key id="formatStatus">PASSED</key>
+              </record>
+            </section>
+          </dnx>
+        </mets:xmlData>
+      </mets:mdWrap>
+    </mets:techMD>
+  </mets:amdSec>
+  <mets:structMap>
+    <mets:div/>
+  </mets:structMap>
+</mets:mets>
-- 
GitLab