You are here

function biblio_get_orphan_authors in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 includes/biblio.contributors.inc \biblio_get_orphan_authors()
  2. 7 includes/biblio.contributors.inc \biblio_get_orphan_authors()
  3. 7.2 includes/biblio.contributors.inc \biblio_get_orphan_authors()

File

./biblio.contributors.inc, line 130

Code

function biblio_get_orphan_authors() {
  $authors = array();
  $result = db_query('SELECT distinct d.cid cid, name, affiliation
                         FROM {biblio_contributor_data} d
                         LEFT JOIN {biblio_contributor} c ON (d.cid=c.cid)
                         WHERE c.cid IS NULL');
  while ($author = db_fetch_array($result)) {
    $authors[] = $author;
  }
  return $authors;
}