function theme_biblio_list in Bibliography Module 5
1 theme call to theme_biblio_list()
File
- ./
biblio.module, line 2067
Code
function theme_biblio_list($node, $base = 'biblio', $style = 'classic', $inline = false) {
$output .= theme('biblio_short', $node, $base, $style, $inline);
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 .= filter_xss($node->{$annotation_field});
$output .= '</div>';
}
$openurl_base = check_plain(variable_get('biblio_baseopenurl', ''));
if ($openurl_base) {
$output .= theme('biblio_openurl', biblio_openurl($node));
}
if (biblio_access('export', $node)) {
$base = variable_get('biblio_base', 'biblio');
$output .= '<br/> ' . t('Export') . ': ';
$output .= '<span class="biblio_export_links">';
$output .= l("Tagged", "{$base}/export/tagged/{$node->nid}") . ' ';
$output .= l("XML", "{$base}/export/xml/{$node->nid}") . ' ';
$output .= l("BibTex", "{$base}/export/bib/{$node->nid}");
$output .= '</span>';
}
if (biblio_access('download', $node)) {
// add links to attached files (if any)
if (!empty($node->files) && count($node->files) > 0 && user_access('view uploaded files')) {
$output .= ' ' . t('Download') . ': ';
$output .= '<span class="biblio_export_links">';
foreach ($node->files as $file) {
$output .= ' ' . l($file->filename, $file->filepath) . ' ';
}
$output .= '</span>';
}
}
return $output;
}