Skip to content

Commit

Permalink
Update image/copyright holder check
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-atherden committed Feb 26, 2024
1 parent 1630a3a commit b797ac7
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/final-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -3508,7 +3508,7 @@

</rule></pattern><pattern id="biorender-permissions-tests-pattern"><rule context="permissions[matches(lower-case(license[1]/license-p[1]),'biorend[eo]r')]/copyright-holder" id="biorender-permissions-tests">

<assert test=".='BioRender'" role="error" id="biorender-permissions-tes-1">[biorender-permissions-tes-1] permissions element mentions bioRender, but the copyright holder is not 'BioRender' which is incorrect. The current copyright holder is: <value-of select="."/>. The license text is: <value-of select="parent::permissions/license[1]/license-p[1]"/>.</assert>
<assert test=".='BioRender Inc'" role="error" id="biorender-permissions-tes-1">[biorender-permissions-tes-1] permissions element mentions bioRender, but the copyright holder is not 'BioRender' which is incorrect. The current copyright holder is: <value-of select="."/>. The license text is: <value-of select="parent::permissions/license[1]/license-p[1]"/>.</assert>

</rule></pattern><pattern id="fig-panel-tests-pattern"><rule context="fig/caption/p/bold" id="fig-panel-tests">
<let name="first-character" value="substring(.,1, 1)"/>
Expand Down
4 changes: 2 additions & 2 deletions src/final-JATS-schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -19793,9 +19793,9 @@

<!--ASSERT error-->
<xsl:choose>
<xsl:when test=".='BioRender'"/>
<xsl:when test=".='BioRender Inc'"/>
<xsl:otherwise>
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test=".='BioRender'">
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test=".='BioRender Inc'">
<xsl:attribute name="id">biorender-permissions-tes-1</xsl:attribute>
<xsl:attribute name="role">error</xsl:attribute>
<xsl:attribute name="location">
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 @@ -3514,7 +3514,7 @@

</rule></pattern><pattern id="biorender-permissions-tests-pattern"><rule context="permissions[matches(lower-case(license[1]/license-p[1]),'biorend[eo]r')]/copyright-holder" id="biorender-permissions-tests">

<assert test=".='BioRender'" role="error" id="biorender-permissions-tes-1">permissions element mentions bioRender, but the copyright holder is not 'BioRender' which is incorrect. The current copyright holder is: <value-of select="."/>. The license text is: <value-of select="parent::permissions/license[1]/license-p[1]"/>.</assert>
<assert test=".='BioRender Inc'" role="error" id="biorender-permissions-tes-1">permissions element mentions bioRender, but the copyright holder is not 'BioRender' which is incorrect. The current copyright holder is: <value-of select="."/>. The license text is: <value-of select="parent::permissions/license[1]/license-p[1]"/>.</assert>

</rule></pattern><pattern id="fig-panel-tests-pattern"><rule context="fig/caption/p/bold" id="fig-panel-tests">
<let name="first-character" value="substring(.,1, 1)"/>
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 @@ -3453,7 +3453,7 @@

</rule></pattern><pattern id="biorender-permissions-tests-pattern"><rule context="permissions[matches(lower-case(license[1]/license-p[1]),'biorend[eo]r')]/copyright-holder" id="biorender-permissions-tests">

<assert test=".='BioRender'" role="error" id="biorender-permissions-tes-1">[biorender-permissions-tes-1] permissions element mentions bioRender, but the copyright holder is not 'BioRender' which is incorrect. The current copyright holder is: <value-of select="."/>. The license text is: <value-of select="parent::permissions/license[1]/license-p[1]"/>.</assert>
<assert test=".='BioRender Inc'" role="error" id="biorender-permissions-tes-1">[biorender-permissions-tes-1] permissions element mentions bioRender, but the copyright holder is not 'BioRender' which is incorrect. The current copyright holder is: <value-of select="."/>. The license text is: <value-of select="parent::permissions/license[1]/license-p[1]"/>.</assert>

</rule></pattern><pattern id="fig-panel-tests-pattern"><rule context="fig/caption/p/bold" id="fig-panel-tests">
<let name="first-character" value="substring(.,1, 1)"/>
Expand Down
4 changes: 2 additions & 2 deletions src/pre-JATS-schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -19661,9 +19661,9 @@

<!--ASSERT error-->
<xsl:choose>
<xsl:when test=".='BioRender'"/>
<xsl:when test=".='BioRender Inc'"/>
<xsl:otherwise>
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test=".='BioRender'">
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test=".='BioRender Inc'">
<xsl:attribute name="id">biorender-permissions-tes-1</xsl:attribute>
<xsl:attribute name="role">error</xsl:attribute>
<xsl:attribute name="location">
Expand Down
2 changes: 1 addition & 1 deletion src/schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -5961,7 +5961,7 @@ else self::*/local-name() = $allowed-p-blocks"

<rule context="permissions[matches(lower-case(license[1]/license-p[1]),'biorend[eo]r')]/copyright-holder" id="biorender-permissions-tests">

<assert test=".='BioRender'"
<assert test=".='BioRender Inc'"
role="error"
id="biorender-permissions-tes-1">permissions element mentions bioRender, but the copyright holder is not 'BioRender' which is incorrect. The current copyright holder is: <value-of select="."/>. The license text is: <value-of select="parent::permissions/license[1]/license-p[1]"/>.</assert>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@
</xsl:function>
<pattern id="further-fig-tests">
<rule context="permissions[matches(lower-case(license[1]/license-p[1]),'biorend[eo]r')]/copyright-holder" id="biorender-permissions-tests">
<assert test=".='BioRender'" role="error" id="biorender-permissions-tes-1">permissions element mentions bioRender, but the copyright holder is not 'BioRender' which is incorrect. The current copyright holder is: <value-of select="."/>. The license text is: <value-of select="parent::permissions/license[1]/license-p[1]"/>.</assert>
<assert test=".='BioRender Inc'" role="error" id="biorender-permissions-tes-1">permissions element mentions bioRender, but the copyright holder is not 'BioRender' which is incorrect. The current copyright holder is: <value-of select="."/>. The license text is: <value-of select="parent::permissions/license[1]/license-p[1]"/>.</assert>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?oxygen SCHSchema="biorender-permissions-tes-1.sch"?>
<!--Context: permissions[matches(lower-case(license[1]/license-p[1]),'biorend[eo]r')]/copyright-holder
Test: assert .='BioRender'
Test: assert .='BioRender Inc'
Message: permissions element mentions bioRender, but the copyright holder is not 'BioRender' which is incorrect. The current copyright holder is: . The license text is: . -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<article>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?oxygen SCHSchema="biorender-permissions-tes-1.sch"?>
<!--Context: permissions[matches(lower-case(license[1]/license-p[1]),'biorend[eo]r')]/copyright-holder
Test: assert .='BioRender'
Test: assert .='BioRender Inc'
Message: permissions element mentions bioRender, but the copyright holder is not 'BioRender' which is incorrect. The current copyright holder is: . The license text is: . -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<article>
<permissions>
<copyright-statement>© 2023, BioRender</copyright-statement>
<copyright-statement>© 2023, BioRender Inc</copyright-statement>
<copyright-year>2023</copyright-year>
<copyright-holder>BioRender</copyright-holder>
<copyright-holder>BioRender Inc</copyright-holder>
<license>
<ali:license_ref>https://creativecommons.org/licenses/by-nc-nd/4.0/</ali:license_ref>
<license-p>Panel A was created using <ext-link ext-link-type="uri" xlink:href="https://www.biorender.com/">BioRender</ext-link>, and is published under a <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by-nc-nd/4.0/">CC BY-NC-ND 4.0</ext-link> license. Further reproductions must adhere to the terms of this license.</license-p>
Expand Down
2 changes: 1 addition & 1 deletion test/xspec/schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -4370,7 +4370,7 @@
<pattern id="biorender-permissions-tests-pattern">
<rule context="permissions[matches(lower-case(license[1]/license-p[1]),'biorend[eo]r')]/copyright-holder" id="biorender-permissions-tests">

<assert test=".='BioRender'" role="error" id="biorender-permissions-tes-1">permissions element mentions bioRender, but the copyright holder is not 'BioRender' which is incorrect. The current copyright holder is: <value-of select="."/>. The license text is: <value-of select="parent::permissions/license[1]/license-p[1]"/>.</assert>
<assert test=".='BioRender Inc'" role="error" id="biorender-permissions-tes-1">permissions element mentions bioRender, but the copyright holder is not 'BioRender' which is incorrect. The current copyright holder is: <value-of select="."/>. The license text is: <value-of select="parent::permissions/license[1]/license-p[1]"/>.</assert>

</rule>
</pattern>
Expand Down

0 comments on commit b797ac7

Please sign in to comment.