Skip to content

Commit

Permalink
JIS xslt updated for copyright text, metanorma/laozi#5
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Jan 16, 2025
1 parent 1c1466c commit 90a03e6
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions xslt_src/jis.international-standard.core.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -514,13 +514,18 @@
<xsl:apply-templates select="xalan:nodeset($docidentifier__)/node()"/>
</xsl:variable>

<xsl:variable name="copyrightText">
<xsl:call-template name="getLocalizedString">
<xsl:with-param name="key">permission_footer</xsl:with-param>
<xsl:with-param name="formatted" select="$vertical_layout"/> <!-- $vertical_layout = 'true' -->
<xsl:with-param name="bibdata_updated" select="/*/jis:bibdata"/> <!-- $vertical_layout = 'true' -->
</xsl:call-template>
<xsl:variable name="copyrightText_">
<xsl:variable name="backpage_boilerplate_text" select="normalize-space(/*/jis:metanorma-extension/jis:presentation-metadata/jis:backpage-boilerplate-text)"/>
<xsl:value-of select="$backpage_boilerplate_text"/>
<xsl:if test="$backpage_boilerplate_text = ''">
<xsl:call-template name="getLocalizedString">
<xsl:with-param name="key">permission_footer</xsl:with-param>
<xsl:with-param name="formatted" select="$vertical_layout"/> <!-- $vertical_layout = 'true' -->
<xsl:with-param name="bibdata_updated" select="/*/jis:bibdata"/> <!-- $vertical_layout = 'true' -->
</xsl:call-template>
</xsl:if>
</xsl:variable>
<xsl:variable name="copyrightText" select="normalize-space($copyrightText_)"/>

<xsl:variable name="doctype" select="/*/jis:bibdata/jis:ext/jis:doctype"/>

Expand Down Expand Up @@ -1557,11 +1562,7 @@
</fo:block>
<fo:block font-size="12pt" margin-top="7mm" text-align="right">
<!-- <xsl:value-of select="$copyrightText"/> -->
<xsl:variable name="backpage_boilerplate_text" select="normalize-space(/*/jis:metanorma-extension/jis:presentation-metadata/jis:backpage-boilerplate-text)"/>
<xsl:value-of select="$backpage_boilerplate_text"/>
<xsl:if test="$backpage_boilerplate_text = ''">
<xsl:copy-of select="$copyrightText"/>
</xsl:if>
<xsl:copy-of select="$copyrightText"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
Expand Down

0 comments on commit 90a03e6

Please sign in to comment.