You are here

private function BiblioEntrezPubmedArticle::keywords in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/pubmed/EntrezPubmedArticle.php \BiblioEntrezPubmedArticle::keywords()
  2. 6 pubmed/EntrezPubmedArticle.php \BiblioEntrezPubmedArticle::keywords()
  3. 7.2 modules/pubmed/EntrezPubmedArticle.php \BiblioEntrezPubmedArticle::keywords()
1 call to BiblioEntrezPubmedArticle::keywords()
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 227
Provides a class for handling PubMed articles retrieved with EFetch.

Class

BiblioEntrezPubmedArticle

Code

private function keywords() {
  $keywords = array();
  if (isset($this->article->MeshHeadingList->MeshHeading)) {
    foreach ($this->article->MeshHeadingList->MeshHeading as $heading) {
      $keywords[] = (string) $heading->DescriptorName;
    }
  }
  return $keywords;
}