Skip to content

Commit

Permalink
Merge pull request #603 from elifesciences/pr-603
Browse files Browse the repository at this point in the history
Article title character limit is 255, not 256
  • Loading branch information
fred-atherden authored Mar 6, 2024
2 parents 21f71eb + abda07e commit bb83c04
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/final-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -3582,7 +3582,7 @@

<report test="($type = 'Scientific Correspondence') and matches(.,'”')" role="warning" id="sc-title-test-2">[sc-title-test-2] title of a '<value-of select="$type"/>' contains a right double quotation mark. Is this correct? The original article title must be surrounded by a single roman apostrophe - <value-of select="."/>.</report>

<report test="$count gt 256" role="error" id="absolute-title-length-restriction">[absolute-title-length-restriction] The article title contains <value-of select="$count"/> characters, when the current absolute limit for Continuum is 256.</report>
<report test="$count gt 255" role="error" id="absolute-title-length-restriction">[absolute-title-length-restriction] The article title contains <value-of select="$count"/> characters, when the current absolute limit for Continuum is 255.</report>
</rule></pattern><pattern id="sec-title-tests-pattern"><rule context="sec[@sec-type]/title" id="sec-title-tests">
<let name="title" value="e:sec-type2title(parent::sec/@sec-type)"/>

Expand Down
6 changes: 3 additions & 3 deletions src/final-JATS-schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -20230,16 +20230,16 @@
</xsl:if>

<!--REPORT error-->
<xsl:if test="$count gt 256">
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="$count gt 256">
<xsl:if test="$count gt 255">
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="$count gt 255">
<xsl:attribute name="id">absolute-title-length-restriction</xsl:attribute>
<xsl:attribute name="role">error</xsl:attribute>
<xsl:attribute name="location">
<xsl:apply-templates select="." mode="schematron-select-full-path"/>
</xsl:attribute>
<svrl:text>[absolute-title-length-restriction] The article title contains <xsl:text/>
<xsl:value-of select="$count"/>
<xsl:text/> characters, when the current absolute limit for Continuum is 256.</svrl:text>
<xsl:text/> characters, when the current absolute limit for Continuum is 255.</svrl:text>
</svrl:successful-report>
</xsl:if>
<xsl:apply-templates select="*" mode="M280"/>
Expand Down
2 changes: 1 addition & 1 deletion src/final-package-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -3588,7 +3588,7 @@

<report test="($type = 'Scientific Correspondence') and matches(.,'”')" role="warning" id="sc-title-test-2">title of a '<value-of select="$type"/>' contains a right double quotation mark. Is this correct? The original article title must be surrounded by a single roman apostrophe - <value-of select="."/>.</report>

<report test="$count gt 256" role="error" id="absolute-title-length-restriction">The article title contains <value-of select="$count"/> characters, when the current absolute limit for Continuum is 256.</report>
<report test="$count gt 255" role="error" id="absolute-title-length-restriction">The article title contains <value-of select="$count"/> characters, when the current absolute limit for Continuum is 255.</report>
</rule></pattern><pattern id="sec-title-tests-pattern"><rule context="sec[@sec-type]/title" id="sec-title-tests">
<let name="title" value="e:sec-type2title(parent::sec/@sec-type)"/>

Expand Down
2 changes: 1 addition & 1 deletion src/pre-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -3527,7 +3527,7 @@

<report test="($type = 'Scientific Correspondence') and matches(.,'”')" role="warning" id="sc-title-test-2">[sc-title-test-2] title of a '<value-of select="$type"/>' contains a right double quotation mark. Is this correct? The original article title must be surrounded by a single roman apostrophe - <value-of select="."/>.</report>

<report test="$count gt 256" role="error" id="absolute-title-length-restriction">[absolute-title-length-restriction] The article title contains <value-of select="$count"/> characters, when the current absolute limit for Continuum is 256.</report>
<report test="$count gt 255" role="error" id="absolute-title-length-restriction">[absolute-title-length-restriction] The article title contains <value-of select="$count"/> characters, when the current absolute limit for Continuum is 255.</report>
</rule></pattern><pattern id="sec-title-tests-pattern"><rule context="sec[@sec-type]/title" id="sec-title-tests">
<let name="title" value="e:sec-type2title(parent::sec/@sec-type)"/>

Expand Down
6 changes: 3 additions & 3 deletions src/pre-JATS-schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -20051,16 +20051,16 @@
</xsl:if>

<!--REPORT error-->
<xsl:if test="$count gt 256">
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="$count gt 256">
<xsl:if test="$count gt 255">
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="$count gt 255">
<xsl:attribute name="id">absolute-title-length-restriction</xsl:attribute>
<xsl:attribute name="role">error</xsl:attribute>
<xsl:attribute name="location">
<xsl:apply-templates select="." mode="schematron-select-full-path"/>
</xsl:attribute>
<svrl:text>[absolute-title-length-restriction] The article title contains <xsl:text/>
<xsl:value-of select="$count"/>
<xsl:text/> characters, when the current absolute limit for Continuum is 256.</svrl:text>
<xsl:text/> characters, when the current absolute limit for Continuum is 255.</svrl:text>
</svrl:successful-report>
</xsl:if>
<xsl:apply-templates select="*" mode="M278"/>
Expand Down
4 changes: 2 additions & 2 deletions src/schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -6106,9 +6106,9 @@ else self::*/local-name() = $allowed-p-blocks"
role="warning"
id="sc-title-test-2">title of a '<value-of select="$type"/>' contains a right double quotation mark. Is this correct? The original article title must be surrounded by a single roman apostrophe - <value-of select="."/>.</report>

<report test="$count gt 256"
<report test="$count gt 255"
role="error"
id="absolute-title-length-restriction">The article title contains <value-of select="$count"/> characters, when the current absolute limit for Continuum is 256.</report>
id="absolute-title-length-restriction">The article title contains <value-of select="$count"/> characters, when the current absolute limit for Continuum is 255.</report>
</rule>

<rule context="sec[@sec-type]/title" id="sec-title-tests">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@
<let name="type" value="ancestor::article-meta//subj-group[@subj-group-type='display-channel']/subject[1]"/>
<let name="specifics" value="('Replication Study','Registered Report',$notice-display-types)"/>
<let name="count" value="string-length(.)"/>
<report test="$count gt 256" role="error" id="absolute-title-length-restriction">The article title contains <value-of select="$count"/> characters, when the current absolute limit for Continuum is 256.</report>
<report test="$count gt 255" role="error" id="absolute-title-length-restriction">The article title contains <value-of select="$count"/> characters, when the current absolute limit for Continuum is 255.</report>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?oxygen SCHSchema="absolute-title-length-restriction.sch"?>
<!--Context: article-meta//article-title
Test: report $count gt 256
Message: The article title contains characters, when the current absolute limit for Continuum is 256. -->
Test: report $count gt 255
Message: The article title contains characters, when the current absolute limit for Continuum is 255. -->
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0/">
<article>
<article-meta>
<article-title>x01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789</article-title>
<article-title>x012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234</article-title>
</article-meta>
</article>
</root>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?oxygen SCHSchema="absolute-title-length-restriction.sch"?>
<!--Context: article-meta//article-title
Test: report $count gt 256
Message: The article title contains characters, when the current absolute limit for Continuum is 256. -->
Test: report $count gt 255
Message: The article title contains characters, when the current absolute limit for Continuum is 255. -->
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0/">
<article>
<article-meta>
Expand Down
2 changes: 1 addition & 1 deletion test/xspec/schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -4466,7 +4466,7 @@

<report test="($type = 'Scientific Correspondence') and matches(.,'”')" role="warning" id="sc-title-test-2">title of a '<value-of select="$type"/>' contains a right double quotation mark. Is this correct? The original article title must be surrounded by a single roman apostrophe - <value-of select="."/>.</report>

<report test="$count gt 256" role="error" id="absolute-title-length-restriction">The article title contains <value-of select="$count"/> characters, when the current absolute limit for Continuum is 256.</report>
<report test="$count gt 255" role="error" id="absolute-title-length-restriction">The article title contains <value-of select="$count"/> characters, when the current absolute limit for Continuum is 255.</report>
</rule>
</pattern>
<pattern id="sec-title-tests-pattern">
Expand Down

0 comments on commit bb83c04

Please sign in to comment.