Comparing version 1.3.0 to 1.4.0
{ | ||
"name": "ttspec", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "TT Specifications", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,2 +9,4 @@ TT Specifications | ||
* 2016-08-16 `sector` fields to communicate INR, UTR, EKO, KLT or SPT. | ||
* 2016-08-16 new field `bylines` to represent more than one person involved with item. | ||
* 2016-05-10 `profile` new value `RAW` for data requiring further edit. | ||
@@ -11,0 +13,0 @@ * 2016-03-21 new fields `enddate` and `enddatetime`. |
@@ -30,3 +30,3 @@ { | ||
"profile" : { | ||
"description" : "An identifier for the kind of content of this news object. $$TT: Possible values are PUBL, DATA or INFO. PUBL is a news item that can be published. DATA is data such as tables and figures (that are not meant to be edited). INFO is for information purposes only (not to be published). RAW is raw data, such as unedited videos, that is meant to be further edited before publishing.", | ||
"description" : "An identifier for the kind of content of this news object. $$TT: Possible values are PUBL, DATA, INFO or RAW. PUBL is a news item that can be published. DATA is data such as tables and figures (that are not meant to be edited). INFO is for information purposes only (not to be published). RAW is raw data, such as unedited videos, that is meant to be further edited before publishing.", | ||
"type" : "string", | ||
@@ -358,2 +358,51 @@ "enum" : ["PUBL", "DATA", "INFO", "RAW"] | ||
}, | ||
"bylines": { | ||
"description": "Holder of one or more byline objects.", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"byline": { | ||
"type": "string", | ||
"description": "When the complete byline is sent as one string. Same as byline on root level. Example: Albert Jonsson/SvD/TT" | ||
}, | ||
"firstname": { | ||
"type": "string", | ||
"description": "When byline is divided, holds the first name of the person. Example: Albert" | ||
}, | ||
"lastname": { | ||
"type": "string", | ||
"description": "When byline is divided, holds the last name of the person. Example: Jonsson" | ||
}, | ||
"role": { | ||
"type": "string", | ||
"description": "Role of the person in the byline in relation to this ttninjs item, as string. Example: Photographer" | ||
}, | ||
"email": { | ||
"type": "string", | ||
"description": "Email address of the person in this byline. albert.jonsson@acme.com" | ||
}, | ||
"jobtitle": { | ||
"type": "string", | ||
"description": "Jobtitle can differ from role and is normally more connected to the person and not to the combination person-newsItem. Example: Editor in Chief" | ||
}, | ||
"internal": { | ||
"type": "boolean", | ||
"description": "Whether byline is for internal purposes. Example: true" | ||
}, | ||
"phone": { | ||
"type": "string", | ||
"description": "Phone number of the person in this byline. Example: +46555123456" | ||
}, | ||
"initials": { | ||
"type": "string", | ||
"description": "Initials of byline. Mainly used for records marked as internal. Example: mag" | ||
}, | ||
"affiliation": { | ||
"type": "string", | ||
"description": "The affiliation of the person. Example: SvD/TT" | ||
} | ||
} | ||
} | ||
}, | ||
"headline" : { | ||
@@ -483,4 +532,9 @@ "description" : "A brief and snappy introduction to the content, designed to catch the reader's attention", | ||
} | ||
}, | ||
"sector": { | ||
"description" : "$$TT: Designator for the 'big 5' ways of grouping content (inrikes, utrikes, etc). Not mandatory, often omitted.", | ||
"type": "string", | ||
"enum" : ["INR", "UTR", "EKO", "KLT", "SPT"] | ||
} | ||
} | ||
} |
45898
9
615
17