-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathJournalArticleRef.js
43 lines (42 loc) · 1.54 KB
/
JournalArticleRef.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
40
41
42
43
import Reference from './Reference'
import { TEXT, CHILDREN, STRING } from 'substance'
import { RICH_TEXT_ANNOS } from './modelConstants'
/*
<element-citation publication-type="journal">
<day>06</day>
<fpage>1141</fpage>
<lpage>1144</lpage>
<month>11</month>
<volume>282</volume>
<year>1998</year>
<pub-id pub-id-type="doi">10.1126/science.282.5391.1141</pub-id>
<pub-id pub-id-type="pmid">9804555</pub-id>
<person-group person-group-type="author">
<name>
<surname>Baukrowitz</surname>
<given-names>T</given-names>
</name>
</person-group>
<source>Science</source>
<article-title>PIP<sub id="sub-1">2</sub> and PIP as determinants ...</article-title>
</element-citation>
*/
export default class JournalArticleRef extends Reference {}
JournalArticleRef.schema = {
type: 'journal-article-ref', // publication-type="journal"
title: TEXT(...RICH_TEXT_ANNOS), // <article-title>
authors: CHILDREN('ref-contrib'), // <person-group person-group-type="author">
editors: CHILDREN('ref-contrib'), // <person-group person-group-type="editor">
containerTitle: STRING, // <source>: label this 'Journal' or 'Publication' as in Zotero?
volume: STRING, // <volume>
issue: STRING, // <issue>
year: STRING, // <year>
month: STRING, // <month>
day: STRING, // <day>
fpage: STRING, // <fpage>
lpage: STRING, // <lpage>
pageRange: STRING, // <page-range>
elocationId: STRING, // <elocation-id>
doi: STRING, // <pub-id pub-id-type="doi">
pmid: STRING // <pub-id pub-id-type="pmid">
}