You are here

function theme_biblio_entry in Bibliography Module 6

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

Parameters

$node:

$base:

$style:

$inline:

Return value

unknown_type

2 theme calls to theme_biblio_entry()
biblio_handler_citation::render in views/biblio_handler_citation.inc
biblio_show_results in ./biblio.pages.inc
biblio_show_results takes the query results from biblio_db_search and adds some controls to the page then loops through the results applying the selected style to each entry

File

./biblio_theme.inc, line 698

Code

function theme_biblio_entry($node, $base = 'biblio', $style = 'classic', $inline = false) {
  $output = "\n" . '<div class="biblio-entry">' . "\n";
  $output .= '<div class="biblio-style-' . $style . '">' . "\n";
  if (!$node->status) {
    $output .= '<div id="node-' . $node->nid . '" class="node node-unpublished">';
  }

  // first add the styled entry...
  $output .= theme('biblio_style', $node, $base, $style, $inline);

  // now add the various links
  if ($node->biblio_abst_e) {
    $output .= '<span class="biblio-abstract-link">';
    $output .= l(" Abstract", "node/{$node->nid}") . "\n";
    $output .= '</span>';
  }
  $annotation_field = variable_get('biblio_annotations', 'none');
  if ($annotation_field != 'none' && $node->{$annotation_field}) {
    $output .= '<div class="biblio-annotation">';
    $output .= check_markup($node->{$annotation_field}, $node->format, FALSE);
    $output .= '</div>';
  }
  if (biblio_access('export', $node)) {
    $output .= theme('biblio_export_links', $node);
  }
  if (biblio_access('download', $node)) {

    // add links to attached files (if any)
    $output .= theme('biblio_download_links', $node);
  }
  if (!$node->status) {
    $output .= '</div>';
  }
  $output .= "\n</div></div>";
  return $output;
}