Skip to content

Commit

Permalink
Merge pull request #28 from JATS4R/author-changes
Browse files Browse the repository at this point in the history
Downgrade country attribute check to warning
  • Loading branch information
fred-atherden authored Jan 19, 2024
2 parents 768cb66 + 853c5fb commit 1a1f0d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
11 changes: 1 addition & 10 deletions schematrons/1.0/auths-affs-errors.sch
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

<rule context="institution-id">
<assert test="@institution-id-type" role="error">
&lt;institution-id> must have an @institutiion-id-type.
&lt;institution-id> must have an @institution-id-type.
</assert>
</rule>

Expand All @@ -56,15 +56,6 @@
&lt;contrib-id> must have a @contrib-id-type.
</assert>
</rule>

<rule context="aff//country">
<let name="countries" value="document('countries.xml')"/>
<let name="country" value="@country"/>

<assert test="@country and (some $code in $countries//*:country satisfies $code/@country = $country)" role="error">
&lt;country> must have a @country that includes the ISO 3166-1 2-letter country code.
</assert>
</rule>

</pattern>

Expand Down
9 changes: 9 additions & 0 deletions schematrons/1.0/auths-affs-warnings.sch
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,13 @@
</assert>
</rule>

<rule context="aff//country">
<let name="countries" value="document('countries.xml')"/>
<let name="country" value="@country"/>

<assert test="@country and (some $code in $countries//*:country satisfies $code/@country = $country)" role="warning">
&lt;country> should have a @country that includes the ISO 3166-1 2-letter country code.
</assert>
</rule>

</pattern>

1 comment on commit 1a1f0d3

@vercel
Copy link

@vercel vercel bot commented on 1a1f0d3 Jan 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

jats-schematrons – ./

jats-schematrons-git-master-aea.vercel.app
jats-schematrons-aea.vercel.app
jats-schematrons.vercel.app

Please sign in to comment.