v2.2.4 - Bugfix for dd metadata (TD-1264)
This release fixes bug TD-1264, in which TRLN Argon began rendering unwanted and invalid/inaccessible <dd>
elements in all the various places where metadata values are displayed, due to upstream changes in Blacklight and ViewComponent. See PR with screenshots.
This change leans into the <dd>
elements by rendering the accompanying <dl>
& <dt>
to ensure the markup is valid and accessible.
Explanation
Blacklight 7.32.0
, began requiring ViewComponent 2.66+
at which time it became impossible to short-circuit a metadata viewcomponent with arbitrary markup in a value
slot when there is already a values
slot. Note in Blacklight 8 the definition list markup can be changed when instantiating a metadata component, but it's not currently customizable in 7.x.
Upgrade Notes
You may need to revise some CSS if you have rules targeting the metadata values. E.g., if you have styles for:
.index-document-metadata ul li.index-metadata.creator_main_a { }
#show-sub-header ul li.index-metadata.creator_main_a { }
...the equivalents would be:
.index-document-metadata dl dd.creator_main_a { }
#show-sub-header dl dd.creator_main_a { }