Skip to content
Merged
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
14 changes: 14 additions & 0 deletions smpte.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,18 @@ without the prior written permission of the Society of Motion Picture and Televi
<hr />
{{draftWarning}}`

const SMPTE_PUB_AG_FRONT_MATTER_BOILERPLATE = `<div id="doc-designator" itemscope="itemscope" itemtype="http://purl.org/dc/elements/1.1/">
<span itemprop="publisher">SMPTE</span>&nbsp;<span id="doc-type">{{pubType}}</span>&nbsp;{{actualPubNumber}}</div>
<img id="smpte-logo" src="{{smpteLogoURL}}" alt="SMPTE logo" />
<div id="long-doc-type">{{longDocType}}</div>
<h1>{{fullTitle}}</h1>
<div id="doc-status">{{publicationState}}: {{actualPubDateTime}}</div>
<p><span id="copyright-text">Copyright © <span id="doc-copyright-year">{{copyrightYear}}</span>,
Society of Motion Picture and Television Engineers</span>.
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.</p>
<hr />`

const SMPTE_PUB_OM_FRONT_MATTER_BOILERPLATE = `<div id="doc-designator" itemscope="itemscope" itemtype="http://purl.org/dc/elements/1.1/">
<span itemprop="publisher">SMPTE</span>&nbsp;<span id="doc-type">{{pubType}}</span>&nbsp;{{actualPubNumber}}</div>
<img id="smpte-logo" src="{{smpteLogoURL}}" alt="SMPTE logo" />
Expand Down Expand Up @@ -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;

Expand Down