Skip to content

Commit

Permalink
eliminate uneccessary fn:translate,
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Riesenberg committed Apr 20, 2024
1 parent 222b7f9 commit d7aa5c8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions xsl/xml_map_properties_files_to_html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
<xsl:text>Metadata-creation guidance: </xsl:text>
<!-- for compound objects, add additional link to co-item guidance within section? -->
<a
href="{concat('#', translate(cdmm:genre_form, '\', ''), '-', cdmm:cdm_object_type, '-guidance')}"
href="{concat('#', cdmm:genre_form, '-', cdmm:cdm_object_type, '-guidance')}"
>
{cdmm:render_genre_form(cdmm:genre_form)}
</a>
Expand Down Expand Up @@ -171,14 +171,14 @@
test="cdmm:cdm_object_type = 'compound_object' and cdmm:exclude_for_co">
<xsl:if test="not(matches($uid, cdmm:exclude_for_co))">
<a
href="{concat('#', $uid, '-', translate(cdmm:genre_form, '\', ''),
href="{concat('#', $uid, '-', cdmm:genre_form,
'-', cdmm:cdm_object_type, '-guidance')}"
>{'Record values - CO'}</a>
<br/>
</xsl:if>
<xsl:if test="matches($uid, cdmm:include_for_co_items)">
<a
href="{concat('#', $uid, '-', translate(cdmm:genre_form, '\', ''), '-co_item-guidance')}"
href="{concat('#', $uid, '-', cdmm:genre_form, '-co_item-guidance')}"
>{'Record values - CO-item'}</a>
</xsl:if>
<xsl:if
Expand All @@ -188,12 +188,12 @@
<xsl:when
test="cdmm:cdm_object_type = 'compound_object' and not(cdmm:exclude_for_co)">
<a
href="{concat('#', $uid, '-', translate(cdmm:genre_form, '\', ''), '-', cdmm:cdm_object_type, '-guidance')}"
href="{concat('#', $uid, '-', cdmm:genre_form, '-', cdmm:cdm_object_type, '-guidance')}"
>{'Record values - CO'}</a>
<br/>
<xsl:if test="matches($uid, cdmm:include_for_co_items)">
<a
href="{concat('#', $uid, '-', translate(cdmm:genre_form, '\', ''), '-co_item-guidance')}"
href="{concat('#', $uid, '-', cdmm:genre_form, '-co_item-guidance')}"
>{'Record values - CO-item'}</a>
</xsl:if>
</xsl:when>
Expand All @@ -202,7 +202,7 @@
<xsl:if
test="not(matches($uid, cdmm:exclude_for_genre_form))">
<a
href="{concat('#', $uid, '-',translate(cdmm:genre_form, '\', ''), '-', cdmm:cdm_object_type, '-guidance')}"
href="{concat('#', $uid, '-',cdmm:genre_form, '-', cdmm:cdm_object_type, '-guidance')}"
>{'Record values'}</a>
<br/>
</xsl:if>
Expand All @@ -213,7 +213,7 @@
<xsl:when
test="cdmm:cdm_object_type = 'standalone_item' and not(cdmm:exclude_for_genre_form)">
<a
href="{concat('#', $uid, '-', translate(cdmm:genre_form, '\', ''), '-', cdmm:cdm_object_type, '-guidance')}"
href="{concat('#', $uid, '-', cdmm:genre_form, '-', cdmm:cdm_object_type, '-guidance')}"
>{'Record values'}</a>
<br/>
</xsl:when>
Expand Down

0 comments on commit d7aa5c8

Please sign in to comment.