Entity Export Dropdown on Index
Fixes
Fixes for #786 (closed) by @shivohamangal
Description
This pr adds a dropdown to the index page of entities so that data can be downloaded in - txt, csv, json, ttl and json-rdf.
Currently, exports for the following entities are fully functional -
- Archives
- ArtifactTypes
- Collections
- Dynasties
- Genres
- Languages
- MaterialAspects
- MaterialColors
- Materials
- Proveniences
- Regions
- Rulers
The following don't have the getCidocCrm() method (maybe @larsgw can implement them?), hence flat data export works, linked doesn't -
- Abbreviations
- Authors
- ExternalResources
- Journals
- SignReadings
These remaining entities have other issues -
- Periods: ttl: blank-white-page, rdf: [], table export: serialization failed(yes, data is serialized in the controller)
Alternatively, view the second page of this doc for some color-coded statuses :D https://docs.google.com/document/d/1zdF4bN2V6hwf7pKM2g4EPb7ouqf4eIbam8P2bcWuGL0/edit?usp=sharing
Type of PR This PR is an improvement.
Technicalities
Tests
- Goto http://127.0.0.1:2354/collections
- Goto http://127.0.0.1:2354/abbreviations
- Similarly, go to all the entities mentioned in the list above
On all these pages, you can see the dropdown. Screenshots
Checklist:
-
My pull request has a descriptive title (not a vague title like "Update index.md"). -
My pull request targets the phoenix/developbranch of the repository. -
My commit messages follow best practices. -
My code follows the established code style of the repository. -
I added tests for the changes I made (if applicable). -
I added or updated documentation (if applicable). -
I tried running the project locally and verified that there are no visible errors.
Edited by Shivoham Angal