File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments