Revision f7fc12e8
Added by Andreas Kohlbecker about 12 years ago
5.x/modules/cdm_dataportal/cdm_dataportal.module | ||
---|---|---|
1555 | 1555 |
$pattern = '/(^[a-zA-Z])([a-zA-Z]+)(\s+[^(\x2E]+\s+.+$)/'; |
1556 | 1556 |
if (preg_match($pattern, $nameStr, $matches, PREG_OFFSET_CAPTURE)){ |
1557 | 1557 |
return $matches[1][0] . "." . $matches[3][0]; |
1558 |
} else { |
|
1559 |
return $nameStr; |
|
1558 | 1560 |
} |
1559 | 1561 |
} else { |
1560 | 1562 |
return $name->titleCache; |
Also available in: Unified diff
fixing taxon short name function