You are here

private function BiblioEntrezPubmedArticle::grants in Bibliography Module 7

1 call to BiblioEntrezPubmedArticle::grants()
BiblioEntrezPubmedArticle::getBiblio in modules/pubmed/EntrezPubmedArticle.php
Returns article elements as an associative array suitable for import into a biblio node.

File

modules/pubmed/EntrezPubmedArticle.php, line 187
Provides a class for handling PubMed articles retrieved with EFetch.

Class

BiblioEntrezPubmedArticle

Code

private function grants() {
  $grants = array();
  if (isset($this->article->Article->GrantList->Grant)) {
    foreach ($this->article->Article->GrantList->Grant as $grant) {
      $grants[] = array(
        'grantid' => (string) $grant->GrantID,
        'acronym' => (string) $grant->Acronym,
        'agency' => (string) $grant->Agency,
        'country' => (string) $grant->Country,
      );
    }
  }
  return $grants;
}