Skip to content

Commit

Permalink
handle #156
Browse files Browse the repository at this point in the history
  • Loading branch information
eroux committed Dec 7, 2020
1 parent 988b514 commit 0f734f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1340,10 +1340,13 @@ public static Map<String,Model> 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);
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/test/xml/OutlineTest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<!-- from O2DB94811 --><outline:subject class="T208" type="isInstanceOfGenre">gsung 'bum </outline:subject>
<!-- from O4CTX297 --><outline:browser class="WritingsClassBrowser" funct="ctc" module="global-search" params="PR01DOR0,250"/>
<!-- from O4328 --><outline:site place="G4449" type="written" circa="1235">lhun grub steng srib dgon (sde dge) </outline:site>
<outline:description encoding="native" lang="english" type="contents">
collection of rituals for the performance of fire offerings (homavidhi) in the worship of various deities
</outline:description>
<outline:node RID="O2DB875722DB87573" type="text">
<outline:title encoding="extendedWylie" lang="tibetan" type="bibliographicalTitle">gleng gzhi/</outline:title>
<outline:creator type="hasScribe">Another scribe</outline:creator>
Expand Down

0 comments on commit 0f734f8

Please sign in to comment.