You are here

public function csl_bibliography::render in Bibliography Module 7

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

Overrides csl_rendering_element::render

File

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

Class

csl_bibliography

Code

public function render($data, $mode = NULL) {
  $this->citeproc->quash = array();
  $text = $this->layout
    ->render($data, 'bibliography');
  if ($this->{'hanging-indent'} == 'true') {
    $text = '<div style="  text-indent: -25px; padding-left: 25px;">' . $text . '</div>';
  }
  $text = str_replace('?.', '?', str_replace('..', '.', $text));
  return $this
    ->format($text);
}