You are here

public function csl_number::long_ordinal in Bibliography Module 7

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

File

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

Class

csl_number

Code

public function long_ordinal($num) {
  $num = sprintf("%02d", $num);
  $ret = $this->citeproc
    ->get_locale('term', 'long-ordinal-' . $num);
  if (!$ret) {
    return $this
      ->ordinal($num);
  }
  return $ret;
}