Skip to content

Commit 75fdae9

Browse files
authored
remove pubState AG requiement to remove warning (#327)
1 parent 1c377ae commit 75fdae9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

smpte.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,18 @@ without the prior written permission of the Society of Motion Picture and Televi
129129
<hr />
130130
{{draftWarning}}`
131131

132+
const SMPTE_PUB_AG_FRONT_MATTER_BOILERPLATE = `<div id="doc-designator" itemscope="itemscope" itemtype="http://purl.org/dc/elements/1.1/">
133+
<span itemprop="publisher">SMPTE</span>&nbsp;<span id="doc-type">{{pubType}}</span>&nbsp;{{actualPubNumber}}</div>
134+
<img id="smpte-logo" src="{{smpteLogoURL}}" alt="SMPTE logo" />
135+
<div id="long-doc-type">{{longDocType}}</div>
136+
<h1>{{fullTitle}}</h1>
137+
<div id="doc-status">{{publicationState}}: {{actualPubDateTime}}</div>
138+
<p><span id="copyright-text">Copyright © <span id="doc-copyright-year">{{copyrightYear}}</span>,
139+
Society of Motion Picture and Television Engineers</span>.
140+
All rights reserved. No part of this material may be reproduced, by any means whatsoever,
141+
without the prior written permission of the Society of Motion Picture and Television Engineers.</p>
142+
<hr />`
143+
132144
const SMPTE_PUB_OM_FRONT_MATTER_BOILERPLATE = `<div id="doc-designator" itemscope="itemscope" itemtype="http://purl.org/dc/elements/1.1/">
133145
<span itemprop="publisher">SMPTE</span>&nbsp;<span id="doc-type">{{pubType}}</span>&nbsp;{{actualPubNumber}}</div>
134146
<img id="smpte-logo" src="{{smpteLogoURL}}" alt="SMPTE logo" />
@@ -222,6 +234,8 @@ function insertFrontMatter(docMetadata) {
222234

223235
if (docMetadata.pubState === smpte.PUB_STATE_PUB && docMetadata.pubType === smpte.OM_PUBTYPE)
224236
boilerplate = SMPTE_PUB_OM_FRONT_MATTER_BOILERPLATE;
237+
else if (docMetadata.pubState === smpte.PUB_STATE_PUB && docMetadata.pubType === smpte.AG_PUBTYPE)
238+
boilerplate = SMPTE_PUB_AG_FRONT_MATTER_BOILERPLATE;
225239
else
226240
boilerplate = SMPTE_FRONT_MATTER_BOILERPLATE;
227241

0 commit comments

Comments
 (0)