You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A data package's "Full Metadata" page includes the "For more information:" section for some packages but not others. For example, see the rendered pages of knb-lter-knz.3.15 and knb-lter-knz.91.5, each of which contains the EML <distribution> elements used to populate this information.
This behavioral difference correlates with the presence/absence of the <distribution> element's id attribute. When present, the "For more information:" block is rendered, when absent it is not. The code point driving this behavior appears to be:
The difference in rendering is correctly analyzed by @clnsmth. The distribution element's lack of an @id attribute precludes its rendering.
The root cause of the difference, however, is another matter: apparently, the initial registration of the DOI for knb-lter-knz.91.5 did not occur synchronously with the update of the data package (as it did with knb-lter-knz.3.15); because the Level-1-EML.xml becomes immutable once published, the EML itself will not have an alternateIdentifier or the dataset-level distribution containing the data package DOI (the DOI was subsequently registered about 2 hours post update).
As noted, the lack of a dataset distribution element containing the DOI (and the corresponding id attribute) prevented the "For more information:" block from rendering. EDI policy must decide if any and all dataset-level distribution elements be displayed in the full metadata rendering or only those with an EDI-registered DOI. Regardless, this conditional
<!-- the dataset-level distribution tag. for LTER, it should be
function=information. the link to the data entity itself
will be in the entity's tree. -->
<xsl:if test="distribution/@id">
<tr>
<td colspan="2">
<table class="subGroup onehundred_percent">
<tr>
<td>
<table class="{$tabledefaultStyle}">
<th colspan="2">For more information:</th>
<xsl:for-each select="distribution">
<tr>
<td class="{$firstColStyle}"><xsl:text>Visit: </xsl:text></td>
<td class="{$secondColStyle}">
<a>
<xsl:attribute name="class">dataseteml</xsl:attribute>
<xsl:attribute name="href"><xsl:value-of select="online/url"/>
</xsl:attribute><xsl:value-of select="online/url"/>
</a>
</td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</table>
</td>
</tr>
</xsl:if>
A data package's "Full Metadata" page includes the "For more information:" section for some packages but not others. For example, see the rendered pages of knb-lter-knz.3.15 and knb-lter-knz.91.5, each of which contains the EML
<distribution>
elements used to populate this information.EML of knb-lter-knz.3.15:
and knb-lter-knz.91.5:
This behavioral difference correlates with the presence/absence of the
<distribution>
element'sid
attribute. When present, the "For more information:" block is rendered, when absent it is not. The code point driving this behavior appears to be:DataPortal/WebRoot/WEB-INF/xsl/eml-2.xsl
Line 1997 in c60aa7e
A potential solution might be to remove the test for the
id
attribute?The text was updated successfully, but these errors were encountered: