public function csl_name::author_link in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/CiteProc/CSL.inc \csl_name::author_link()
- 7.2 modules/CiteProc/CSL.inc \csl_name::author_link()
File
- modules/
CiteProc/ CSL.inc, line 702 - CiteProc-PHP.
Class
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;
}