-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathNewspaperArticleRef.js
39 lines (38 loc) · 1.28 KB
/
NewspaperArticleRef.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { TEXT, CHILDREN, STRING } from 'substance'
import { RICH_TEXT_ANNOS } from './modelConstants'
import Reference from './Reference'
/*
<element-citation publication-type="newspaper">
<day>27</day>
<edition>International Edition</edition>
<fpage>21</fpage>
<month>4</month>
<part-title>Film</part-title>
<year>2018</year>
<person-group person-group-type="author">
<name>
<surname>Rose</surname>
<given-names>Steve</given-names>
</name>
</person-group>
<source>The Guardian</source>
<article-title>What if superheroes aren’t really the good guys?</article-title>
</element-citation>
*/
export default class NewspaperArticleRef extends Reference {}
NewspaperArticleRef.schema = {
type: 'newspaper-article-ref', // publication-type="newspaper"
title: TEXT(...RICH_TEXT_ANNOS), // <article-title>
authors: CHILDREN('ref-contrib'), // <person-group person-group-type="author">
containerTitle: STRING, // <source>
year: STRING, // <year>
month: STRING, // <month>
day: STRING, // <day>
volume: STRING, // <volume>
fpage: STRING, // <fpage>
lpage: STRING, // <lpage>
pageRange: STRING, // <page-range>
doi: STRING, // <pub-id pub-id-type="doi">
edition: STRING, // <edition>
partTitle: STRING // <part-title>
}