You are here

function theme_biblio_entry in Bibliography Module 6.2

Same name and namespace in other branches
  1. 6 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:

1 theme call to theme_biblio_entry()
biblio_show_results in includes/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

includes/biblio_theme.inc, line 869

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>';
  }
  $openurl_base = variable_get('biblio_baseopenurl', '');
  if ($openurl_base) {
    $output .= theme('biblio_openurl', biblio_openurl($node));
  }
  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;
}