Use static metadata for epubs starting with 8
diff --git a/test/test-xml.sh b/test/test-xml.sh
index 8a0b1e4..61e4acf 100755
--- a/test/test-xml.sh
+++ b/test/test-xml.sh
@@ -5,7 +5,7 @@
. ${ASSERTSH}
ERRORS=0
PASSED=0
-TEXTS=6
+TEXTS=7
I5_FILE=target/dnb18.i5.xml
if [ ! -f "$I5_FILE" ]; then
log_failure "File $I5_FILE does not exist"
@@ -56,6 +56,12 @@
observed=$(xmlstarlet sel --net -t -v "count(/idsCorpus/idsDoc/idsText/idsHeader/fileDesc/sourceDesc/biblStruct/note[@type='award'])" target/dnb18.i5.xml)
assert_eq "$observed" "0" "no falsely identified awards'"
+observed=$(xmlstarlet sel --net -t -v "count(/idsCorpus/idsDoc/idsText/idsHeader/fileDesc/publicationStmt/idno[@type='IDN' and .='8999999999'])" target/dnb18.i5.xml)
+assert_eq "$observed" "1" "epub 8... id and without API metadata is transformed"
+
+observed=$(xmlstarlet sel --net -t -v "count(/idsCorpus/idsDoc/idsText/idsHeader/fileDesc[publicationStmt/idno[@type='IDN' and .='8999999999']]/sourceDesc//h.title[.='Herzblut'])" target/dnb18.i5.xml)
+assert_eq "$observed" "1" "static metadata for epub with 8... id is correctly retrieved"
+
exit_with_test_summary