Skip to content

Commit

Permalink
Merge pull request #525 from w3c/onix-conformance-refactor
Browse files Browse the repository at this point in the history
Refactor for ONIX conformance section
  • Loading branch information
gregoriopellegrino authored Dec 17, 2024
2 parents 772a176 + cf0d7a2 commit bb8a08a
Showing 1 changed file with 20 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,16 +423,22 @@ <h4>Instructions</h4>
<ol class="condition">
<li>Display <code id="conformance-title">"Conformance"</code> as heading.</li>
<li>
<span><b>IF</b> <var>level_aaa</var>:</span>
<span><b>THEN</b> display <code id="conformance-aaa">"This publication exceeds accepted accessibility standards"</code>.</span>
</li>
<li>
<span><b>ELSE IF</b> <var>level_aa</var>:</span>
<span><b>THEN</b> display <code id="conformance-aa">"This publication meets accepted accessibility standards"</code>.</span>
</li>
<li>
<span><b>ELSE IF</b> <var>level_a</var>:</span>
<span><b>THEN</b> display <code id="conformance-a">"This publication meets minimum accessibility standards"</code>.</span>
<span><b>IF</b> (<var>epub_accessibility_10</var> <b>OR</b> <var>epub_accessibility_11</var> <b>OR</b> <var>wcag_20</var> <b>OR</b> <var>wcag_21</var> <b>OR</b> <var>wcag_22</var>) <b>AND</b> (<var>level_a</var> <b>OR</b> <var>level_aa</var> <b>OR</b> <var>level_aaa</var>):</span>
<span><b>THEN</b></span>
<ol class="condition">
<li>
<span><b>IF</b> <var>level_aaa</var>:</span>
<span><b>THEN</b> display <code id="conformance-aaa">"This publication exceeds accepted accessibility standards"</code>.</span>
</li>
<li>
<span><b>ELSE IF</b> <var>level_aa</var>:</span>
<span><b>THEN</b> display <code id="conformance-aa">"This publication meets accepted accessibility standards"</code>.</span>
</li>
<li>
<span><b>ELSE IF</b> <var>level_a</var>:</span>
<span><b>THEN</b> display <code id="conformance-a">"This publication meets minimum accessibility standards"</code>.</span>
</li>
</ol>
</li>
<li>
<span><b>ELSE</b>:</span>
Expand All @@ -442,15 +448,15 @@ <h4>Instructions</h4>
<span><b>IF</b> <var>certifier</var> is <b>NOT</b> empty:</span>
<span><b>THEN</b></span>
<ul class="condition">
<li>display <code id="conformance-certifier">"This publication is certified by "</code></li>
<li>display <code id="conformance-certifier">"The publication was certified by "</code></li>
<li>display <var>certifier</var>.</li>
</ul>
</li>
<li>
<span><b>IF</b> <var>certifier_credentials</var> is <b>NOT</b> empty:</span>
<span><b>THEN</b></span>
<ul class="condition">
<li>display <code id="conformance-certifier-credentials">"The certifier's credential is "</code></li>
<li>display <code id="conformance-certifier-credentials">"The certifier 's credential is "</code></li>
<li>display <var>certifier_credentials</var> as link <b>IF</b> <var>certifier_credentials</var> is an URL.</li>
</ul>
</li>
Expand Down Expand Up @@ -493,40 +499,19 @@ <h4>Instructions</h4>
<span><b>ELSE IF</b> <var>level_a</var>:</span>
<span><b>THEN</b> display <code id="conformance-level-a">" Level A"</code>.</span>
</li>
<li>
<span><b>IF</b> <var>certification_date</var> <b>OR</b> <var>certifier</var> <b>OR</b> <var>certifier_credentials</var>:</span>
<span><b>THEN</b> display <code id="conformance-certification-info">"The publication was certified "</code>.</span>
</li>
<li>
<span><b>IF</b> <var>certification_date</var>:</span>
<span><b>THEN</b></span>
<ul class="condition">
<li>display <code id="conformance-certification-date-prefix">" on "</code></li>
<li>display <code id="conformance-certification-info">"The publication was certified on"</code></li>
<li>display <var>certification_date</var>.</li>
</ul>
</li>
<li>
<span><b>IF</b> <var>certifier</var>:</span>
<span><b>THEN</b></span>
<ul class="condition">
<li>display <code id="conformance-certifier-prefix">" by "</code></li>
<li>display <var>certifier</var>.</li>
</ul>
</li>
<li>
<span><b>IF</b> <var>certifier_credentials</var>:</span>
<span><b>THEN</b></span>
<ul class="condition">
<li>display <code id="conformance-certifier-credentials-prefix">" with a credential of "</code></li>
<li>display <var>certifier_credentials</var> as link <b>IF</b> <var>certifier_credentials</var> is an URL.</li>
</ul>
</li>
<li>
<span><b>IF</b> <var>certifier_report</var>:</span>
<span><b>THEN</b></span>
<ul class="condition">
<li>display <code id="conformance-certifier-report">"For more information refer to the certifier's report"</code></li>

<li>display <code id="conformance-certifier-report">"For more information refer to the certifier's report "</code></li>
<li>with <var>certifier_report</var> as link.</li>
</ul>
</li>
Expand Down

0 comments on commit bb8a08a

Please sign in to comment.