Ticket #1031 (closed clarification: fixed)

Opened 2 years ago

Last modified 18 months ago

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 &lt; 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>  &#169; </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

Changed 19 months ago by rcave

  • milestone set to 0.9.2

Changed 19 months ago by rcave

  • priority changed from unassigned to critical

Changed 18 months ago by dragisak

(In [7299]) Add NLM DTD 2.3 to entity resolver cache. Addresses #1031

Changed 18 months ago by dragisak

(In [7309]) Revert small change in r7299. Reference to oasis-tablesetup.ent has to point to old file. See #1031

Changed 18 months ago by dragisak

  • owner changed from dragisak to rich

Changed 18 months ago by rcave

  • type changed from task to clarification

Changed 18 months ago by rcave

  • status changed from new to closed
  • resolution set to fixed

Verified that NLM DTD 2.3 has been added to the entity resolver cache.

Note: See TracTickets for help on using tickets.