You are here

function _build_biblio_link in Bibliography Module 6

Creates a link to export a node (or view) in EndNote Tagged format

Parameters

$base this is the base url (defaults to /biblio):

$nid the node id, if NULL then the current view is exported:

Return value

a link (<a href=...>Tagged</a>)

1 call to _build_biblio_link()
theme_biblio_export_links in ./biblio_theme.inc
Creates a group of links for the various export functions

File

./biblio_theme.inc, line 915

Code

function _build_biblio_link($base, $node = NULL, $type = NULL) {
  $nid = $node ? $node->nid : NULL;
  switch ($type) {
    case 'bibtex':
      $link = _build_biblio_bibtex_link($base, $nid);
      break;
    case 'tagged':
      $link = _build_biblio_tagged_link($base, $nid);
      break;
    case 'xml':
      $link = _build_biblio_xml_link($base, $nid);
      break;
    case 'google':
      $link = _build_google_scholar_link($node);
      break;
    case 'rtf':
      $link = _build_biblio_rtf_link($base, $nid);
      break;
    case 'pubmed':
      $link = biblio_pm_biblio_lookup_link($node);
      $link = $link['biblio_pubmed'];
      break;
  }
  if (!empty($link)) {
    return l($link['title'], $link['href'], $link);
  }
}