' . "\n";
// first add the styled entry...
$output .= theme('biblio_style', $node, $base, $style, $inline);
// now add the various links
if ($node->biblio_abst_e) {
$output .= '
';
$output .= l(" Abstract", "node/$node->nid") ."\n";
$output .= '';
}
$annotation_field = variable_get('biblio-annotations', 'none');
if ($annotation_field != 'none' && $node-> $annotation_field) {
$output .= '
';
$output .= check_markup($node-> $annotation_field, FILTER_HTML_ESCAPE, FALSE);
$output .= '
';
}
$openurl_base = 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 .= theme('biblio_export_links',$node->nid);
}
if (biblio_access('download', $node)) {
// add links to attached files (if any)
$output .= theme('biblio_download_links',$node);
}
$output .= "
\n";
return $output;
}
/**
* @param $form
* @return unknown_type
*/
function theme_biblio_filters(& $form) {
if (sizeof($form['current'])) {
$output .= ''. drupal_render($form['buttons']) .'
';
$output .= '';
for ($i = 65; $i <= 90; $i++) {
if ($i == ord($current)){
$output .= '['.chr($i).'] ';
}
else{
$output .= l(chr($i), $path. chr($i), $options) .' ';
}
}
if($current) $output .= ' '.$all;
$output .= '
';
return $output;
}
/**
* Themes the author editing form
*
* @param $form
* @return rendered form
*/
function theme_biblio_admin_author_edit_form($form){
$rows = array();
$header = array();
$rows[] = array(
array('data' => drupal_render($form['prefix'])),
array('data' => drupal_render($form['firstname'])),
array('data' => drupal_render($form['initials'])),
array('data' => drupal_render($form['lastname'])),
array('data' => drupal_render($form['suffix'])));
$rows[] = array(array('data' => drupal_render($form['name']), 'colspan' => 5));
$rows[] = array(array('data' => drupal_render($form['affiliation']), 'colspan' => 5));
$rows[] = array(array('data' => drupal_render($form['drupal_uid']), 'colspan' => 5));
$output = theme('table', $header, $rows);
$output .= drupal_render($form['merge']);
$output .= drupal_render($form);
return $output;
}
function theme_biblio_admin_orphans_form($form) {
// If there are any orphans, then $form['name'] contains a list of the author names
$has_items = isset($form['name']) && is_array($form['name']);
$select_header = $has_items ? theme('table_select_header_cell') : '';
$header = array($select_header, t('Author Name'), t('Affiliation'));
$output = '';
$output .= drupal_render($form['submit']);
if ($has_items) {
foreach (element_children($form['name']) as $key) {
$row = array();
$row[] = drupal_render($form['authors'][$key]);
$row[] = drupal_render($form['name'][$key]);
$row[] = drupal_render($form['affiliation'][$key]);
$rows[] = $row;
}
}
else {
$rows[] = array(array('data' => t('There are no orphaned authors in the database.'), 'colspan' => '3'));
}
$output .= theme('table', $header, $rows);
if ($form['pager']['#value']) {
$output .= drupal_render($form['pager']);
}
$output .= drupal_render($form);
return $output;
}
function theme_biblio_admin_keyword_orphans_form($form) {
// If there are any orphans, then $form['name'] contains a list of the author names
$has_items = isset($form['keyword']) && is_array($form['keyword']);
$select_header = $has_items ? theme('table_select_header_cell') : '';
$header = array($select_header, t('Keyword'));
$output = '';
$output .= drupal_render($form['submit']);
if ($has_items) {
foreach (element_children($form['keyword']) as $key) {
$row = array();
$row[] = drupal_render($form['keywords'][$key]);
$row[] = drupal_render($form['keyword'][$key]);
$rows[] = $row;
}
}
else {
$rows[] = array(array('data' => t('There are no orphaned keywords in the database.'), 'colspan' => '2'));
}
$output .= theme('table', $header, $rows);
if ($form['pager']['#value']) {
$output .= drupal_render($form['pager']);
}
$output .= drupal_render($form);
return $output;
}