|
514 | 514 | <xsl:apply-templates select="xalan:nodeset($docidentifier__)/node()"/>
|
515 | 515 | </xsl:variable>
|
516 | 516 |
|
517 |
| - <xsl:variable name="copyrightText"> |
518 |
| - <xsl:call-template name="getLocalizedString"> |
519 |
| - <xsl:with-param name="key">permission_footer</xsl:with-param> |
520 |
| - <xsl:with-param name="formatted" select="$vertical_layout"/> <!-- $vertical_layout = 'true' --> |
521 |
| - <xsl:with-param name="bibdata_updated" select="/*/jis:bibdata"/> <!-- $vertical_layout = 'true' --> |
522 |
| - </xsl:call-template> |
| 517 | + <xsl:variable name="copyrightText_"> |
| 518 | + <xsl:variable name="backpage_boilerplate_text" select="normalize-space(/*/jis:metanorma-extension/jis:presentation-metadata/jis:backpage-boilerplate-text)"/> |
| 519 | + <xsl:value-of select="$backpage_boilerplate_text"/> |
| 520 | + <xsl:if test="$backpage_boilerplate_text = ''"> |
| 521 | + <xsl:call-template name="getLocalizedString"> |
| 522 | + <xsl:with-param name="key">permission_footer</xsl:with-param> |
| 523 | + <xsl:with-param name="formatted" select="$vertical_layout"/> <!-- $vertical_layout = 'true' --> |
| 524 | + <xsl:with-param name="bibdata_updated" select="/*/jis:bibdata"/> <!-- $vertical_layout = 'true' --> |
| 525 | + </xsl:call-template> |
| 526 | + </xsl:if> |
523 | 527 | </xsl:variable>
|
| 528 | + <xsl:variable name="copyrightText" select="normalize-space($copyrightText_)"/> |
524 | 529 |
|
525 | 530 | <xsl:variable name="doctype" select="/*/jis:bibdata/jis:ext/jis:doctype"/>
|
526 | 531 |
|
|
1308 | 1313 | </fo:page-sequence>
|
1309 | 1314 | </xsl:template> <!-- insertCoverPageJSA -->
|
1310 | 1315 |
|
1311 |
| - <xsl:variable name="i18n_JIS"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">JIS</xsl:with-param></xsl:call-template></xsl:variable> |
| 1316 | + <xsl:variable name="i18n_JIS_"> |
| 1317 | + <xsl:variable name="coverpage_header" select="normalize-space(/*/jis:metanorma-extension/jis:presentation-metadata/jis:coverpage-header)"/> |
| 1318 | + <xsl:value-of select="$coverpage_header"/> |
| 1319 | + <xsl:if test="$coverpage_header = ''"> |
| 1320 | + <xsl:call-template name="getLocalizedString"><xsl:with-param name="key">JIS</xsl:with-param></xsl:call-template> |
| 1321 | + </xsl:if> |
| 1322 | + </xsl:variable> |
| 1323 | + <xsl:variable name="i18n_JIS" select="normalize-space($i18n_JIS_)"/> |
| 1324 | + |
1312 | 1325 | <xsl:template name="insertCoverPage2024">
|
1313 | 1326 | <xsl:param name="num"/>
|
1314 | 1327 | <xsl:param name="docidentifier_jis"/>
|
|
1425 | 1438 | <fo:flow flow-name="xsl-region-body" font-family="Noto Serif JP">
|
1426 | 1439 |
|
1427 | 1440 | <fo:block font-weight="900" font-size="14pt" color="white" letter-spacing="2.5mm">
|
1428 |
| - <xsl:variable name="coverpage_header" select="normalize-space(/*/jis:metanorma-extension/jis:presentation-metadata/jis:coverpage-header)"/> |
1429 |
| - <xsl:value-of select="$coverpage_header"/> |
1430 |
| - <xsl:if test="$coverpage_header = ''"> |
1431 |
| - <xsl:value-of select="$i18n_JIS"/> |
1432 |
| - </xsl:if> |
| 1441 | + <xsl:value-of select="$i18n_JIS"/> |
1433 | 1442 | </fo:block>
|
1434 | 1443 |
|
1435 |
| - |
1436 | 1444 | <fo:block margin-top="75mm" font-size="14pt" font-weight="500">
|
1437 | 1445 |
|
1438 | 1446 | <fo:inline-container writing-mode="lr-tb" text-align="center"
|
|
1526 | 1534 | <fo:flow flow-name="xsl-region-body">
|
1527 | 1535 | <!-- publication date -->
|
1528 | 1536 | <fo:block font-size="8pt" margin-left="90mm" text-align-last="justify" letter-spacing="0.5mm">
|
1529 |
| - <xsl:apply-templates select="/*/jis:bibdata/jis:date[@type = 'published']/text()"/> |
1530 |
| - <fo:inline keep-together.within-line="always"> |
1531 |
| - <fo:leader leader-pattern="space"/> |
1532 |
| - <xsl:text>発行</xsl:text> |
1533 |
| - </fo:inline> |
| 1537 | + <xsl:variable name="date_published"><xsl:apply-templates select="/*/jis:bibdata/jis:date[@type = 'published']/text()"/></xsl:variable> |
| 1538 | + <xsl:copy-of select="$date_published"/> |
| 1539 | + <xsl:choose> |
| 1540 | + <xsl:when test="normalize-space($date_published) != ''"> |
| 1541 | + <fo:inline keep-together.within-line="always"> |
| 1542 | + <fo:leader leader-pattern="space"/> |
| 1543 | + <xsl:text>発行</xsl:text> |
| 1544 | + </fo:inline> |
| 1545 | + </xsl:when> |
| 1546 | + <xsl:otherwise> </xsl:otherwise> |
| 1547 | + </xsl:choose> |
1534 | 1548 | </fo:block>
|
1535 | 1549 | <!-- revision date -->
|
1536 | 1550 | <fo:block font-size="8pt" margin-left="90mm" text-align-last="justify" letter-spacing="0.5mm">
|
1537 |
| - <xsl:apply-templates select="/*/jis:bibdata/jis:date[@type = 'revised']/text()"/> |
1538 |
| - <fo:inline keep-together.within-line="always"> |
1539 |
| - <fo:leader leader-pattern="space"/> |
1540 |
| - <xsl:text>改正</xsl:text> |
1541 |
| - </fo:inline> |
| 1551 | + <xsl:variable name="date_revised"><xsl:apply-templates select="/*/jis:bibdata/jis:date[@type = 'revised']/text()"/></xsl:variable> |
| 1552 | + <xsl:copy-of select="$date_revised"/> |
| 1553 | + <xsl:choose> |
| 1554 | + <xsl:when test="normalize-space($date_revised) != ''"> |
| 1555 | + <fo:inline keep-together.within-line="always"> |
| 1556 | + <fo:leader leader-pattern="space"/> |
| 1557 | + <xsl:text>改正</xsl:text> |
| 1558 | + </fo:inline> |
| 1559 | + </xsl:when> |
| 1560 | + <xsl:otherwise> </xsl:otherwise> |
| 1561 | + </xsl:choose> |
1542 | 1562 | </fo:block>
|
1543 | 1563 | <fo:block font-size="12pt" margin-top="7mm" text-align="right">
|
1544 | 1564 | <!-- <xsl:value-of select="$copyrightText"/> -->
|
|
0 commit comments