Skip to content

Commit d05ffec

Browse files
committed
Merge pull request #423 from UNC-Libraries/hide-mods-admin-note
Don't output MODS note elements with @type = 'admin'.
2 parents c0b27b7 + 4289470 commit d05ffec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

static/recordTransformations/modsToFullRecord.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@
897897

898898
<xsl:call-template name="modsGroupedFieldWithType">
899899
<xsl:with-param name="defaultLabel">Note</xsl:with-param>
900-
<xsl:with-param name="field" select="*[local-name() = 'note']"/>
900+
<xsl:with-param name="field" select="*[local-name() = 'note' and not(@type = 'admin')]"/>
901901
</xsl:call-template>
902902

903903
<xsl:call-template name="modsGroupedFieldWithType">
@@ -1010,7 +1010,7 @@
10101010
</table>
10111011
</xsl:if>
10121012

1013-
<xsl:variable name="note" select="*[local-name() = 'note']"/>
1013+
<xsl:variable name="note" select="*[local-name() = 'note' and not(@type = 'admin')]"/>
10141014
<xsl:variable name="accessCondition" select="*[local-name() = 'accessCondition' and not(child::*)]"/>
10151015
<xsl:variable name="rightsHolder" select="*[local-name() = 'accessCondition']/*[local-name() = 'rights.holder']/*[local-name() = 'name']"/>
10161016
<xsl:if test="boolean($note) or boolean($accessCondition) or boolean($rightsHolder)">

0 commit comments

Comments
 (0)