File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -173,15 +173,16 @@ function Parse($xml)
173
173
}
174
174
}
175
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
176
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
+ }
185
186
if (isset ($ o ->example_list )) {
186
187
foreach ($ o ->example_list ->example AS $ example ) {
187
188
$ db = (string ) $ example ->db_xref ->attributes ()->db ;
You can’t perform that action at this time.
0 commit comments