We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c62841f commit 1d28031Copy full SHA for 1d28031
interpro/interpro.php
@@ -173,15 +173,16 @@ function Parse($xml)
173
}
174
175
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
- );
184
+ if(isset($o->abstract)) {
+ $abstract = (string) $o->abstract->p->asXML();
+ if(isset($pubs)) {
+ $abstract = str_replace($pubs['pid'],$pubs['pmid'],$abstract);
+ }
+ parent::addRDF(
+ parent::triplifyString($s,"dc:description",$abstract)
+ );
185
186
if(isset($o->example_list)) {
187
foreach($o->example_list->example AS $example) {
188
$db = (string) $example->db_xref->attributes()->db;
0 commit comments