additional_fields['nid'] = array('table' => 'node', 'field' => 'nid'); } function query() { $this->add_additional_fields(); } function option_definition() { $options = parent::option_definition(); $options['style_name'] = array('default' => biblio_get_style()); return $options; } function options_form(&$form, &$form_state) { parent::options_form($form, $form_state); module_load_include('inc', 'biblio', 'biblio.admin'); $form['style_name'] = array( '#type' => 'radios', '#title' => t('Style'), '#default_value' => $this->options['style_name'], '#options' => biblio_get_styles(), '#description' => t('Define the layout of author lists.') ); } function render($values) { if (module_exists('biblio_citeproc')) { } else { module_load_include('inc', 'biblio', 'styles/biblio_style_' . $this->options['style_name']); if (empty($this->author_options)) { $author_options_func = 'biblio_style_' . $this->options['style_name'] . '_author_options'; $this->author_options = $author_options_func(); } } if (empty($this->biblio_base)) { $this->biblio_base = variable_get('biblio_base', 'biblio'); } $item = node_load($values->{$this->aliases['nid']}); if ($item->type != 'biblio') return; if (isset($item->biblio_year)) $item->biblio_year = _biblio_text_year($item->biblio_year); if (variable_get('biblio_hide_bibtex_braces', 0)) { $item->title = biblio_remove_brace($item->title); } return theme('biblio_entry', array('node' => $item, 'base' => $this->biblio_base, 'style_name' => $this->options['style_name'], 'inline' => $inline)); } }