Skip to content

Commit fda44fe

Browse files
authored
ingest more information than the basics when available (#676)
1 parent 7a35a2c commit fda44fe

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

compose/neurosynth-frontend/src/components/Dialogs/MoveToExtractionDialog/MoveToExtractionDialog.tsx

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,20 @@ const MoveToExtractionDialog: React.FC<IDialog> = (props) => {
138138
const includedStubs = curationIncludedStudies.stubStudies;
139139

140140
// the BE ingestion only checks for these three properties
141-
const stubsToBaseStudies: Array<Pick<BaseStudy, 'name' | 'doi' | 'pmid'>> =
142-
includedStubs.map((stub) => ({
143-
name: stub.title,
144-
doi: stub.doi,
145-
pmid: stub.pmid,
146-
}));
141+
const stubsToBaseStudies: Array<
142+
Pick<
143+
BaseStudy,
144+
'name' | 'doi' | 'pmid' | 'year' | 'description' | 'publication' | 'authors'
145+
>
146+
> = includedStubs.map((stub) => ({
147+
name: stub.title,
148+
doi: stub.doi,
149+
pmid: stub.pmid,
150+
year: Number(stub.articleYear),
151+
description: stub.abstractText,
152+
publication: stub.journal,
153+
authors: stub.authors,
154+
}));
147155

148156
try {
149157
const res = await asyncIngest(stubsToBaseStudies);

0 commit comments

Comments
 (0)