You are here

public function csl_mapper::map_type in Bibliography Module 7

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

File

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

Class

csl_mapper

Code

public function map_type($types) {
  if (!isset($this->type_map)) {
    $this->type_map = biblio_get_map('type_map', 'csl');
  }
  $vars = explode(' ', $types);
  foreach ($vars as $key => $value) {
    $vars[$key] = !empty($this->type_map[$value]) ? $this->type_map[$value] : '';
  }
  return implode(' ', $vars);
}