| 1 |
<?php |
<?php |
| 2 |
|
|
| 3 |
|
|
| 4 |
// $Id: biblio_style_apa.inc,v 1.16 2009/02/18 03:03:10 rjerome Exp $ |
// $Id: biblio_style_apa.inc,v 1.18 2009/02/20 02:40:30 rjerome Exp $ |
| 5 |
/** |
/** |
| 6 |
* Get the style information |
* Get the style information |
| 7 |
* |
* |
| 51 |
$authors = theme('biblio_format_authors', $node->biblio_contributors[1], $author_options, $inline); |
$authors = theme('biblio_format_authors', $node->biblio_contributors[1], $author_options, $inline); |
| 52 |
if (empty($authors)) $authors = theme('biblio_format_authors', $node->biblio_contributors[5], $author_options, $inline); // if no authors substitute corp author if available |
if (empty($authors)) $authors = theme('biblio_format_authors', $node->biblio_contributors[5], $author_options, $inline); // if no authors substitute corp author if available |
| 53 |
if (empty($authors)) $authors = '[' . t('Anonymous') . ']'; // use anonymous if we still have nothing. |
if (empty($authors)) $authors = '[' . t('Anonymous') . ']'; // use anonymous if we still have nothing. |
| 54 |
|
if (!empty ($node->biblio_citekey)&&(variable_get('biblio_display_citation_key',0))) { |
| 55 |
|
$output .= '[' . check_plain($node->biblio_citekey) . '] '; |
| 56 |
|
} |
| 57 |
$output .= '<span class="biblio-authors">' . $authors . "</span> \n"; |
$output .= '<span class="biblio-authors">' . $authors . "</span> \n"; |
| 58 |
$output .= (strrpos($authors, '.') == strlen($authors)) ? ". " : " "; |
$output .= (strrpos($authors, '.') == strlen($authors)) ? ". " : " "; |
| 59 |
switch ($node->biblio_type) { |
switch ($node->biblio_type) { |