Skip to content

Commit b79451e

Browse files
authored
Merge pull request #23 from PathVisio/pubref-issue
fix for publication reference issue
2 parents 2de1696 + 927c57f commit b79451e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

org.pathvisio.lib/src/main/java/org/pathvisio/libgpml/model/GPML2013aReader.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,12 @@ protected void readPublicationXrefs(PathwayElement pathwayElement, Element e,
365365
// reads PublicationXref/citation
366366
String biopaxId = readPublicationXrefInfo(pubxf.getChildren("ID", BIOPAX_NAMESPACE));
367367
String biopaxDb = readPublicationXrefInfo(pubxf.getChildren("DB", BIOPAX_NAMESPACE));
368+
if(biopaxId == null || biopaxId.equals("")) {
369+
biopaxId = "NA";
370+
}
371+
if(biopaxDb == null || biopaxDb.equals("")) {
372+
biopaxDb = "PubMed";
373+
}
368374
Xref xref = XrefUtils.createXref(biopaxId, biopaxDb);
369375
String source = readPublicationXrefInfo(pubxf.getChildren("SOURCE", BIOPAX_NAMESPACE));
370376
// if source is an url, also set as citation urlLink

0 commit comments

Comments
 (0)