Closed RayPlante closed 2 years ago
Where was class "describedin" defined? I couldn't find it...
Nowhere; I just added it so that it would be easier to access that div element in the unit test.
I see :)
Test failed. Should I go ahead merge?
there's something funny going on with the tests. Let me see if I can get it fixed. If I do, I'll go ahead and merge it.
Ok.
This PR fixes a bug in rendering at the top of the landing page a reference to a key article that describes the data. When a references is marked with the either
refType
ofDocumentedBy
orIsSupplementTo
, the reference will appear as a link at the top of landing page underneath the identifier. With this bug, the link text is often blank. This is because, the code looks for alabel
property for the reference to use as the text, and this value is not getting set by default in the publishing workflow. This PR fixes this by setting a backup label for the reference: the values of (in order of preference)title
,citation
, orlocation
.This has been deployed to oardev. Compare https://data.nist.gov/od/id/mds2-2409 with https://oardev.nist.gov/od/id/mds2-2409.