def METHOD_NAME(rec_pid, data):
    """Mint record identifiers."""
    oai_pid_value = data.get('_oai', {}).get('id')
    if oai_pid_value is None:
        oai_prefix = current_app.config.get('OAISERVER_ID_PREFIX', 'oai:')
        oai_pid_value = str(oai_prefix) + str(rec_pid.pid_value)
    provider = OAIIDProvider.create(
        object_type='rec',
        object_uuid=rec_pid.object_uuid,
        pid_value=oai_pid_value
    )
    data.setdefault('_oai', {})
    data['_oai'].update({
        'id': oai_pid_value,
        'sets': [data.get('community')], # community_id == setSpec
        'updated': datetime_to_datestamp(datetime.utcnow()),
    })
    return provider.pid