Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,10 @@ <h4>Introduction <code>section</code></h4>

<p>The heading shall not be present.</p>

<p>When <code>pubType</code> is <code>ST</code>, <code>RP</code>, <code>EG</code>, <code>ER</code> or
<code>RDD</code>, a statement that the clause is entirely informative is generated automatically at the start of
the clause. This statement shall not be supplied by the author.</p>

<div class="example">
<pre>&lt;section id=&quot;sec-introduction&quot;&gt;
&lt;p&gt;This is the introduction.&lt;/p&gt;
Expand Down
12 changes: 10 additions & 2 deletions smpte.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,17 @@ function insertIntroduction(docMetadata) {

h2.innerText = "Introduction";

if (smpte.ENGDOC_PUBTYPES.has(docMetadata.pubType)) {
/* RDDs are not Engineering Documents, even though RDD is in ENGDOC_PUBTYPES */
let docNoun = null;
if (docMetadata.pubType === smpte.RDD_PUBTYPE) {
docNoun = "Registered Disclosure Document";
} else if (smpte.ENGDOC_PUBTYPES.has(docMetadata.pubType)) {
docNoun = "Engineering Document";
}

if (docNoun !== null) {
let b = document.createElement("p");
b.innerHTML = "<em>This clause is entirely informative and does not form an integral part of this Engineering Document.</em>";
b.innerHTML = `<em>This clause is entirely informative and does not form an integral part of this ${docNoun}.</em>`;
sec.insertBefore(b, h2.nextSibling)
}
}
Expand Down
Loading