diff --git a/src/main/java/io/bdrc/xmltoldmigration/xml2files/CommonMigration.java b/src/main/java/io/bdrc/xmltoldmigration/xml2files/CommonMigration.java index 40106759..b88d4ead 100644 --- a/src/main/java/io/bdrc/xmltoldmigration/xml2files/CommonMigration.java +++ b/src/main/java/io/bdrc/xmltoldmigration/xml2files/CommonMigration.java @@ -1340,10 +1340,13 @@ public static Map addDescriptions(Model m, Element e, Resource rez } continue; } - if (propUri.equals(BDO+"catalogInfo") && mainA != null) { - mainA.addProperty(mainA.getModel().getProperty(propUri), lit); + if (propUri.equals(BDO+"catalogInfo")) { + if (mainA != null) { + mainA.addProperty(mainA.getModel().getProperty(propUri), lit); + } + // TODO: add the catalogInfo in the work in case it an otherAbstract case } else { - rez.addProperty(m.getProperty(propUri), lit); + rez.addProperty(m.getProperty(propUri), lit); } } diff --git a/src/test/xml/OutlineTest.xml b/src/test/xml/OutlineTest.xml index 04257888..4e46121a 100644 --- a/src/test/xml/OutlineTest.xml +++ b/src/test/xml/OutlineTest.xml @@ -10,6 +10,9 @@ gsung 'bum lhun grub steng srib dgon (sde dge) + + collection of rituals for the performance of fire offerings (homavidhi) in the worship of various deities + gleng gzhi/ Another scribe