-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathDataPublicationRef.js
34 lines (33 loc) · 1.25 KB
/
DataPublicationRef.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
import Reference from './Reference'
import { RICH_TEXT_ANNOS } from './modelConstants'
import { CHILDREN, STRING, TEXT } from 'substance'
/*
<element-citation publication-type="data">
<day>01</day>
<month>06</month>
<year>2016</year>
<pub-id pub-id-type="accession">GSE69545</pub-id>
<person-group person-group-type="author">
<name>
<surname>Allison</surname>
<given-names>KA</given-names>
</name>
</person-group>
<source>NCBI Gene Expression Omnibus</source>
<data-title>Affinity and Dose of TCR Engagement Yield Proportional Enhancer and Gene Activity in CD4+ T Cells</data-title>
</element-citation>
*/
export default class DataPublicationRef extends Reference {}
DataPublicationRef.schema = {
type: 'data-publication-ref', // publication-type="data"
title: TEXT(...RICH_TEXT_ANNOS), // <data-title>
authors: CHILDREN('ref-contrib'), // <person-group person-group-type="author">
containerTitle: STRING, // <source>
year: STRING, // <year>
month: STRING, // <month>
day: STRING, // <day>
accessionId: STRING, // <pub-id pub-id-type="accession">
arkId: STRING, // // <pub-id pub-id-type="ark">
archiveId: STRING, // <pub-id pub-id-type="archive">
doi: STRING // <pub-id pub-id-type="doi">
}