You are here

function csl_bibliography::render in Bibliography Module 7.2

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

Overrides csl_rendering_element::render

File

modules/CiteProc/CSL.inc, line 1340

Class

csl_bibliography

Code

function render($data, $mode = NULL) {
  $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);
}