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)
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 ;
You can’t perform that action at this time.
0 commit comments