From f1f6e2c18fc2f837643c7451acbe2703f2ab856d Mon Sep 17 00:00:00 2001 From: Steve LLamb <38917682+SteveLLamb@users.noreply.github.com> Date: Thu, 10 Apr 2025 12:41:40 -0700 Subject: [PATCH] remove pubState AG requiement to remove warning --- smpte.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/smpte.js b/smpte.js index 3c4329d..6a89f3e 100644 --- a/smpte.js +++ b/smpte.js @@ -129,6 +129,18 @@ without the prior written permission of the Society of Motion Picture and Televi
{{draftWarning}}` +const SMPTE_PUB_AG_FRONT_MATTER_BOILERPLATE = `
+SMPTE {{pubType}} {{actualPubNumber}}
+ +
{{longDocType}}
+

{{fullTitle}}

+
{{publicationState}}: {{actualPubDateTime}}
+

Copyright © {{copyrightYear}}, +Society of Motion Picture and Television Engineers. +All rights reserved. No part of this material may be reproduced, by any means whatsoever, +without the prior written permission of the Society of Motion Picture and Television Engineers.

+
` + const SMPTE_PUB_OM_FRONT_MATTER_BOILERPLATE = `
SMPTE {{pubType}} {{actualPubNumber}}
@@ -222,6 +234,8 @@ function insertFrontMatter(docMetadata) { if (docMetadata.pubState === smpte.PUB_STATE_PUB && docMetadata.pubType === smpte.OM_PUBTYPE) boilerplate = SMPTE_PUB_OM_FRONT_MATTER_BOILERPLATE; + else if (docMetadata.pubState === smpte.PUB_STATE_PUB && docMetadata.pubType === smpte.AG_PUBTYPE) + boilerplate = SMPTE_PUB_AG_FRONT_MATTER_BOILERPLATE; else boilerplate = SMPTE_FRONT_MATTER_BOILERPLATE;