UCSCLibrary / dams_project_mgmt

DAMS purpose is to provide access to digitized and born-digital UCSC Special Collections content. This repository is used for project planning. It holds the task tickets and roadmap for the different projects under DAMS.
2 stars 0 forks source link

Add ability to import collection metadata #494

Closed crisr15 closed 2 years ago

crisr15 commented 2 years ago

https://docs.google.com/spreadsheets/d/1EqWXamo4yOYbup1b9ZT5jxQShr8S0NCL/edit#gid=2058258381

Testing Instructions

  1. Create a CSV containing at least one full collection
    • "Full" meaning all of its possible properties have values
    • Do not add any relationships to these collections (parents or children, works or collections). That functionality will be implemented in #3
    • Include at least one property with multiple values
Examples **Split on pipe (`|`) character** | title | | ------ | | Title 1 \| Title 2 | **OR** | title_1 | title_2 | | ------ | ------ | | Title 1 | Title 2 |
  1. Login as an admin
  2. Navigate to Dashboard --> Importers --> New
  3. Fill out all of the importer's required fields. Upload the file from Step 1. Click "Create and Import"
  4. After no more than 3 minutes (assuming no other importers are running), check to see if the Collection(s) were created successfully.
  5. Verify:
    • [x] The Collection(s) were created successfully
    • [x] All the expected metadata shows up in the following locations:
    • [x] Collection's show page
    • [x] Search results page
    • [x] Collection's edit page

Implementation Suggestions

There is code about creating collections in the code already. I’ve wondered if setting the model field in parsed metadata to Collection would do the trick. I recommend starting there to see what happens

- Rob in Slack