You are here

public function csl_name::author_link in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/CiteProc/CSL.inc \csl_name::author_link()
  2. 7.2 modules/CiteProc/CSL.inc \csl_name::author_link()

File

modules/CiteProc/CSL.inc, line 702
CiteProc-PHP.

Class

csl_name

Code

public function author_link($author) {
  $base = variable_get('biblio_base', 'biblio');
  $options = array();
  if (isset($_GET['sort'])) {
    $options['query']['sort'] = $_GET['sort'];
  }
  if (isset($_GET['order'])) {
    $options['query']['order'] = $_GET['order'];
  }
  $html = l(trim($author['name']), "{$base}/author/" . $author['cid'], $options);
  return $html;
}