clowder-framework / CONSORT-frontend

custom react frontend working with consort clowder instance
0 stars 0 forks source link

59 get metadata from correct extractor #60

Closed minump closed 10 months ago

minump commented 10 months ago

Pdf2text extractor and rct-transparency-extractor updates the dataset metadata. This PR gets the correct metadata required. Checks if rct-extractor metadata is required or pdf-extractor metadata is required.

This PR also renders PDF input file (user uploaded manuscript) using rect-pdf npm package. This uses PDFjs under the hood. PDFjs rendering (in the "/preview" route) needs some more work. The styling is off and page navigation does not work. This will be fixed in another issue.

If the input file (user uploaded manuscript) is plain text file, the previously used html iframe is displayed in the "/preview" route.

The PR uses extractors-pdf2text:0.7.0 and rct-transparency-extractor:0.9 from hub.ncsa.illinois.edu/clowder

minump commented 10 months ago

Merging to main.