src/Record.php
protected function parseAuthority($authority, &$out)
    {
        if (!empty($authority)) {
            $out['id'] = $authority;
            if (preg_match('/\((.*?)\)(.*)/', $authority, $matches)) {
                // As used by at least OCLC and Bibsys
                $out['vocabulary'] = $matches[1];
                $out['id'] = $matches[2];
            }
        }
    }
protected function parseAuthority($authority, &$out)
    {
        if (!empty($authority)) {
            $out['id'] = $authority;
            if (preg_match('/\((.*?)\)(.*)/', $authority, $matches)) {
                // As used by at least OCLC and Bibsys
                $out['vocabulary'] = $matches[1];
                $out['id'] = $matches[2];
            }
        }
    }
protected function parseAuthority ( $ authority , & $ out ) { if ( ! empty ( $ authority ) ) { $ out [ 'id' ] = $ authority ; if ( preg_match ( '/\((.*?)\)(.*)/' , $ authority , $ matches ) ) { // As used by at least OCLC and Bibsys $ out [ 'vocabulary' ] = $ matches [ 1 ] ; $ out [ 'id' ] = $ matches [ 2 ] ; } } }
Parse a "name node", personal or corporate, main or added, that
might have authority information encapsulated.

@param string $authority
@param array  &$out
Parse a name node personal or corporate main or added that might have authority information encapsulated .