diff --git a/doc/main.html b/doc/main.html index 1fcee5c..87a70cd 100644 --- a/doc/main.html +++ b/doc/main.html @@ -558,6 +558,10 @@

Introduction section

The heading shall not be present.

+

When pubType is ST, RP, EG, ER or + RDD, 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.

+
<section id="sec-introduction">
   <p>This is the introduction.</p>
diff --git a/smpte.js b/smpte.js
index abe16ce..cf802a4 100644
--- a/smpte.js
+++ b/smpte.js
@@ -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 = "This clause is entirely informative and does not form an integral part of this Engineering Document.";
+    b.innerHTML = `This clause is entirely informative and does not form an integral part of this ${docNoun}.`;
     sec.insertBefore(b, h2.nextSibling)
   }
 }