datashare
datashare copied to clipboard
Lazy load paginated Extracted Text
Is your feature request related to a problem? Please describe. On very long documents, Extracted Text is displayed after a while.
Describe the solution you'd like Have lazy loading on Extracted Text in order to display it by slice (to be determined).
[ ] Translations of Extracted Text will also need to be paginated
Where we are at: (on the branch ICIJ/sliced_text)
- Sliced content with limit and offset :
- [x] Back end /content?limit=10&offset=20
- [x] Front end: use of infiniteScroll component. Use the flag useContentTextLazyLoading to switch to sliced content (low limit however) to prevent changing all of the tests to use mocked API of Datashare (currently use the ElasticSearch DSL)
- Slice content translated with limit and offset:
- [x] Back end /content?limit=10&offset=20&targetLanguage=FRENCH
- [x] Front end: switch to another language reset the content and get the first slice in translated language
- Search in sliced content :
- [x] Back end /searchContent?query=test[&targetLanguage=FRENCH]
- [ ] Front end: TODO - [ ] add mock of Datashare API for searched content in test - [ ] mark searched terms - [ ] skip pages to look at the next searched term