Skip to content

Commit

Permalink
Hide availability and metadata for pg.compliant output
Browse files Browse the repository at this point in the history
  • Loading branch information
jhellingman committed Dec 16, 2024
1 parent d6f42fa commit d08a85b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 9 additions & 4 deletions modules/colophon.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,22 @@

<xsl:template name="colophonBody">
<xsl:context-item as="element(divGen)" use="required"/>
<h3 class="main"><xsl:value-of select="f:message('msgAvailability')"/></h3>
<xsl:apply-templates select="/*[self::TEI.2 or self::TEI]/teiHeader/fileDesc/publicationStmt/availability"/>

<xsl:if test="not(f:is-set('pg.compliant')) and f:is-set('colophon.showAvailability')">
<h3 class="main"><xsl:value-of select="f:message('msgAvailability')"/></h3>
<xsl:apply-templates select="/*[self::TEI.2 or self::TEI]/teiHeader/fileDesc/publicationStmt/availability"/>
</xsl:if>

<xsl:if test="f:is-set('pg.compliant') and //figure[@id = 'cover-image'][f:rend-value(@rend, 'image') = 'images/new-cover.jpg']">
<p>
<xsl:value-of select="f:message('msgPGCoverArtDedication')"/>
</p>
</xsl:if>

<xsl:call-template name="colophonMetadata"/>
<!-- <xsl:call-template name="catalogEntries"/> -->
<xsl:if test="not(f:is-set('pg.compliant')) and f:is-set('colophon.showMetadata')">
<xsl:call-template name="colophonMetadata"/>
<!-- <xsl:call-template name="catalogEntries"/> -->
</xsl:if>

<xsl:if test="f:is-valid(/*[self::TEI.2 or self::TEI]/teiHeader/encodingDesc/p[1])">
<h3 class="main"><xsl:value-of select="f:message('msgEncoding')"/></h3>
Expand Down
2 changes: 2 additions & 0 deletions modules/configuration.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@
<colophon.showAbbreviations>true</colophon.showAbbreviations> <!-- Show a list of abbreviations in the colophon. -->
<colophon.showExternalReferences>true</colophon.showExternalReferences> <!-- Show a section on external references in the colophon. -->
<colophon.maxCorrectionCount>20</colophon.maxCorrectionCount> <!-- Maximum number of identical corrections that will be listed individually in the list of corrections. -->
<colophon.showAvailability>true</colophon.showAvailability> <!-- Show the availability section in the colophon (credits + copyright license). -->
<colophon.showMetadata>true</colophon.showMetadata> <!-- Show metadata in the colophon (details of author, etc.). -->

<math.decimalSeparator>.</math.decimalSeparator>
<math.thousandsSeparator>,</math.thousandsSeparator>
Expand Down

0 comments on commit d08a85b

Please sign in to comment.