Enhancement/View document metadata #200
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In #174, @prokotg suggested to enable the user to view document metadata while annotating. This is a very useful feature for large scale annotation projects on diverse datasets in order to enable the annotator to have more context on the document, e.g. providing links to related documents, providing a link to a source PDF document or image from which text was extracted, etc.
As such, this change implements a simple extension to the annotator page which adds a button to view the document metadata. The new button follows the existing example of the annotation guideline button and displays the metadata in a modal. If there is no metadata, the button is disabled.
The animation below shows the new metadata display button in action:
JSONL data file used in the animation above.
Resolves #174