def METHOD_NAME(pid, record, template=None, **kwargs):
    """Display the detail view..
    :param pid: PID object.
    :param record: Record object.
    :param template: Template to render.
    :param **kwargs: Additional view arguments based on URL rule.
    :return: The rendered template.
    """
    # We make a `dumps` to trigger the extension on the statistical record
    # that allows to filter the libraries.
    record = record.dumps()
    return render_template(
        template,
        record=record
    )