Skip to content

Commit

Permalink
OA-197 fix annual review year display
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuehlh authored and PaulBorchert committed Jun 12, 2024
1 parent 7854a5b commit 9c2f96f
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/main/resources/xsl/metadata/mir-metadata-box.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
</xsl:for-each>
<!-- START: OA specific changes -->
<xsl:apply-templates mode="present" select="mycoreobject/metadata/def.modsContainer/modsContainer/mods:mods/mods:classification[not(@generator) and
not(@authorityURI='https://www.openagrar.de/classifications/annual_review')]" />
not(@authorityURI='https://www.openagrar.de/classifications/annual_review')]" />
<!-- END: OA specific changes -->
<xsl:apply-templates mode="present" select="mycoreobject/metadata/def.modsContainer/modsContainer/mods:mods/mods:part/mods:extent" />
<xsl:apply-templates mode="present" select="mycoreobject/metadata/def.modsContainer/modsContainer/mods:mods/mods:location/mods:url" />
Expand Down Expand Up @@ -332,6 +332,7 @@
<xsl:apply-templates mode="oa" select="mycoreobject/metadata/def.modsContainer/modsContainer/mods:mods/mods:relatedItem/mods:extension[@type='metrics']" />
<xsl:apply-templates mode="oa" select="mycoreobject/metadata/def.modsContainer/modsContainer/mods:mods/mods:extension[@type='metrics']" />
<xsl:apply-templates mode="present" select="mycoreobject/metadata/def.modsContainer/modsContainer/mods:mods/mods:classification[@authorityURI='https://www.openagrar.de/classifications/annual_review']" />
<xsl:apply-templates mode="oa" select="mycoreobject/metadata/def.modsContainer/modsContainer/mods:mods/mods:classification[@authorityURI='https://www.openagrar.de/classifications/annual_review']/@edition" />
</xsl:if>

<xsl:apply-templates mode="oa" select="mycoreobject/metadata/def.modsContainer/modsContainer/mods:mods/mods:name[@type='corporate'][@ID or @authorityURI=$institutesURI]" />
Expand Down Expand Up @@ -567,4 +568,18 @@
</tr>
</xsl:template>

<xsl:template match="mods:classification[@authorityURI='https://www.openagrar.de/classifications/annual_review']/@edition" mode="oa">
<xsl:if test="not(mcrxsl:isCurrentUserGuestUser())">
<tr>
<td valign="top" class="metaname">
<xsl:value-of select="concat(i18n:translate('component.mods.metaData.dictionary.annual_review.edition'),':')" />
</td>
<td class="metavalue">
<xsl:value-of select="." />
</td>
</tr>
</xsl:if>
</xsl:template>

</xsl:stylesheet>

0 comments on commit 9c2f96f

Please sign in to comment.