{%- set compact = doc.flags.compact_item_print -%} {%- set compact_fields = doc.flags.compact_item_fields -%} {%- set display_columns = visible_columns|map(attribute="fieldname")| list -%} {%- set columns = doc.flags.format_columns(display_columns, compact_fields) -%} {% if doc.in_format_data("image") and doc.get("image") and "image" in display_columns -%}
{{ doc.get_formatted("description", translated=True) }}
{%- endif %} {% if compact -%} {%- for fieldname in columns -%} {% if doc.get(fieldname) and doc.in_format_data(fieldname) -%}{{ _(doc.meta.get_label(fieldname)) }}: {{ doc.get_formatted(fieldname, translated=True) }}
{% endif %} {%- endfor -%} {%- endif %}