You are here

function biblio_citeproc_example_citation in Bibliography Module 6.2

Same name and namespace in other branches
  1. 7 modules/CiteProc/biblio_citeproc.admin.inc \biblio_citeproc_example_citation()
  2. 7.2 modules/CiteProc/biblio_citeproc.admin.inc \biblio_citeproc_example_citation()
1 call to biblio_citeproc_example_citation()
theme_biblio_citeproc_style_manager_form in modules/CiteProc/biblio_citeproc.admin.inc

File

modules/CiteProc/biblio_citeproc.admin.inc, line 447

Code

function biblio_citeproc_example_citation() {
  global $language;
  $contributors = array(
    0 => array(
      'lastname' => 'Oneauth',
      'firstname' => 'Joe',
      'initials' => 'A',
      'auth_category' => 1,
      'cid' => -1,
    ),
    1 => array(
      'lastname' => 'Twoauth',
      'firstname' => 'John',
      'initials' => 'B',
      'auth_category' => 1,
      'cid' => -2,
    ),
  );
  $node = new stdClass();
  $node->nid = -1;
  $node->title = 'This is a fantastic title.';
  $node->biblio_contributors[1] = $contributors;
  $node->biblio_type = 102;
  $node->biblio_year = 2010;
  $node->biblio_volume = 1;
  $node->biblio_issue = 2;
  $node->biblio_secondary_title = 'Journal of Fantastic Articles';
  $node->biblio_pages = '	424-31';
  $node->biblio_coins = '';
  return theme_biblio_citeproc_style($node);
}