def METHOD_NAME(pid, record, template=None, **kwargs):
    """Display default view.
    Sends record_viewed signal and renders template.
    :param pid: PID object.
    :param record: the `Entity` record,
    :param template: the template to use to render the entity
    """
    record_viewed.send(
        current_app._get_current_object(), pid=pid, record=record)
    # Get contribution persons documents
    search = DocumentsSearch()\
        .filter('term', contribution__entity__pid=pid.pid_value)
    viewcode = kwargs['viewcode']
    if viewcode != current_app.config.get('RERO_ILS_SEARCH_GLOBAL_VIEW_CODE'):
        org_pid = Organisation.get_record_by_viewcode(viewcode)['pid']
        search = search \
            .filter('term', holdings__organisation__organisation_pid=org_pid)
    search = search \
        .params(preserve_order=True)\
        .sort({'sort_title': {'order': 'asc'}})
    record['documents'] = list(search.scan())
    return render_template(template, record=record, viewcode=viewcode)