With “advancedattachment” rendering repository administrator is able to select which metadata of attachments must be displayed, by mean of angular application configuration property advancedAttachmentRendering
Available subproperties are
pagination (applies to “attachment” rendering as well). Enables progressive loading of attachments
enabled:
true|falseelementsPerPage:
number of elements per page
metadata (drives which metadata or attachment attributes must be displayed) . It is an array
name:
identifier of metadata or attribute nametype:
metadata|attributetruncatable:
true|falseapplies on metadata only and show metadata value as truncated expandable textlabel: reference to
i18ntranslations for label to be displayed together with metadata or attribute value
This rendering type allows to hide DSpace-CRIS items attachment by setting the bitstream.hide metadata of the bitstream representing the attachment to yes or true
Following yml example configures advancedattachment with a step 2 pagination, dc.title and dc.type metadata values, and size and checksum attributes
advancedAttachmentRendering:
pagination:
enabled: true
elementsPerPage: 2
metadata:
- name: dc.title
rendering: text
type: metadata
label: cris-layout.advanced-attachment.dc.title
- name: dc.type
rendering: text
type: metadata
label: cris-layout.advanced-attachment.dc.type
- name: size
type: attribute
label: cris-layout.advanced-attachment.size
- name: checksum
type: attribute
label: cris-layout.advanced-attachment.checksum