PersonStringNlm30NameSchemaFilter::process PHP Method

process() public method

Transform a person string to an (array of) NLM name description(s).
See also: Filter::process()
public process ( &$input ) : mixed
$input string
return mixed Either a MetadataDescription or an array of MetadataDescriptions plus optionally a single 'et-al' string.
    function &process(&$input)
    {
        switch ($this->getFilterMode()) {
            case PERSON_STRING_FILTER_MULTIPLE:
                return $this->_parsePersonsString($input, $this->_filterTitle, $this->_filterDegrees);
            case PERSON_STRING_FILTER_SINGLE:
                return $this->_parsePersonString($input, $this->_filterTitle, $this->_filterDegrees);
            default:
                assert(false);
        }
    }