If metadata cannot be retrieved via SRU API fallback to static metatada ISBN search
Fixes ERROR: No metadata found for IDNO: 9783701183081
Die zweite ID ist bereits in der Metadaten-CSV enthalten (dort unter ID
8000000009).
diff --git a/test/test-xml.sh b/test/test-xml.sh
index 904ab24..aee9b40 100755
--- a/test/test-xml.sh
+++ b/test/test-xml.sh
@@ -65,6 +65,12 @@
xmllint -noout xslt/static_metadata.xml
assert_eq "$?" "0" "static_metadata.xml is well-formed"
+observed=$(xmlstarlet sel --net -t -v "count(/idsCorpus/idsDoc/idsText/idsHeader/fileDesc[publicationStmt/idno[@type='IDN' and .='8000000009']]/sourceDesc//h.title[.='Ein Hund kam in die Küche'])" target/dnb23.i5.xml)
+assert_eq "$observed" "1" "static metadata is also used as fallback by ISBN and via symbolic link"
+
+observed=$(xmlstarlet sel --net -t -v "count(/idsCorpus/idsDoc/idsText/idsHeader/fileDesc/sourceDesc/biblStruct/note[@type='award'][@subtype='Buchpreis deutscher_buchpreis'])" target/dnb23.i5.xml)
+assert_eq "$observed" "1" "award is also correctly identified for static metadata epubs"
+
exit_with_test_summary