Ticket #1031 (closed clarification: fixed)
Support for NLM DTD 2.3 in entity resolver cache
| Reported by: | rcave | Owned by: | rcave |
|---|---|---|---|
| Priority: | critical | Milestone: | 0.9.2 |
| Component: | ambra | Version: | 0.9-rc1 |
| Keywords: | DTD | Cc: |
Description
We need to add NLM DTD 2.3 for the entity resolver cache: ambralibsentity-resolversrcmain esourcesorg opazprojectxml ransformcache
pmc2obj.xslt tests against journalpublishing.dtd in entity-resolver:
<conformsTo>&nlmpub;<xsl:value-of select="$article/@dtd-version"/>/journalpublishing.dtd</conformsTo>
viewnlm-v2.xsl already has support for 2.3 in regards to copyright statement
<!-- Output the copyright statement differently with v2.3 of the dtd -->
<p>
<xsl:choose>
<xsl:when test="$dtd-version < 2.3">
<xsl:choose>
<!-- Modified to output the word "copyright" for the header if the expression
"Open-Access License" appears anywhere in the copyright-statement. -->
<xsl:when test="copyright-statement[contains(., 'Attribution')
or contains(.,'Open-Access License')]">
<strong>Copyright:</strong><xsl:text> © </xsl:text>
<xsl:apply-templates select="copyright-year" /><xsl:text> </xsl:text>
<xsl:apply-templates select="copyright-statement" />
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="copyright-statement" />
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="permissions/license/@license-type='open-access'">
<xsl:apply-templates select="permissions/copyright-statement"/><xsl:text> </xsl:text>
</xsl:when>
</xsl:choose>
<xsl:apply-templates select="permissions/license/p/node()"/>
</xsl:otherwise>
</xsl:choose>
</p>
The latest version of the Journal Publishing tag set: http://dtd.nlm.nih.gov/publishing/2.3/index.html
Change History
Note: See
TracTickets for help on using
tickets.
