Skip to content

Commit 1d28031

Browse files
added check for entries without abstract
1 parent c62841f commit 1d28031

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

interpro/interpro.php

+9-8
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,16 @@ function Parse($xml)
173173
}
174174
}
175175
}
176-
$abstract = (string) $o->abstract->p->asXML();
177-
if(isset($pubs)) {
178-
$abstract = str_replace($pubs['pid'],$pubs['pmid'],$abstract);
179-
}
180-
181-
parent::addRDF(
182-
parent::triplifyString($s,"dc:description",$abstract)
183-
);
184176

177+
if(isset($o->abstract)) {
178+
$abstract = (string) $o->abstract->p->asXML();
179+
if(isset($pubs)) {
180+
$abstract = str_replace($pubs['pid'],$pubs['pmid'],$abstract);
181+
}
182+
parent::addRDF(
183+
parent::triplifyString($s,"dc:description",$abstract)
184+
);
185+
}
185186
if(isset($o->example_list)) {
186187
foreach($o->example_list->example AS $example) {
187188
$db = (string) $example->db_xref->attributes()->db;

0 commit comments

Comments
 (0)