public function ContributorObject::mapSuffix in Bibliography Module 7.2
Map a suffix
Parameters
string $suffix A common suffix (Jr., Sr. etc):
Return value
string A normalized version of that suffix
File
- lib/
msrc-authortool/ src/ Analyzer/ ContributorObject.php, line 88
Class
- ContributorObject
- Contributor Match Object
Namespace
AnalyzerCode
public function mapSuffix($suffix) {
//get the letters and numbers only
preg_match("/[a-z0-9]/i", $suffix, $matches);
$suffix = implode('', array_slice($matches, 1));
$suffixMap = $this
->getSuffixMap();
return isset($suffixMap[$suffix]) ? $suffixMap[$suffix] : false;
}