Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3] Parent-child relationships are not getting exported #424

Closed
bkiahstroud opened this issue Feb 25, 2022 · 1 comment · Fixed by #440 or #441
Closed

[3] Parent-child relationships are not getting exported #424

bkiahstroud opened this issue Feb 25, 2022 · 1 comment · Fixed by #440 or #441
Assignees
Labels
bug Something isn't working

Comments

@bkiahstroud
Copy link
Contributor

No description provided.

@bkiahstroud bkiahstroud added the bug Something isn't working label Feb 25, 2022
@bkiahstroud bkiahstroud self-assigned this Feb 25, 2022
@bkiahstroud bkiahstroud changed the title Parent-child relationships are not getting exported [3] Parent-child relationships are not getting exported Mar 7, 2022
@bkiahstroud bkiahstroud reopened this Mar 18, 2022
@bkiahstroud
Copy link
Contributor Author

bkiahstroud commented Mar 18, 2022

Reopening because FileSet permissions are being exported in a weird way. Example:

# Under "parents" column in CSV 
{"id"=>"8c97kq405", "head"=>[{"id"=>"http://fcrepo:8080/rest/development/8c/97/kq/40/8c97kq405/list_source#g472800"}], "tail"=>[{"id"=>"http://fcrepo:8080/rest/development/8c/97/kq/40/8c97kq405/list_source#g473980"}], "depositor"=>"[admin@example.com](mailto:admin@example.com)", "title"=>["Barbara Shields and Ron Enomoto, interim director of the Arboretum"], "date_uploaded"=>"2022-03-18T16:03:58.074+00:00", "date_modified"=>"2022-03-18T16:36:21.291+00:00", "state"=>nil, "proxy_depositor"=>nil, "on_behalf_of"=>nil, "arkivo_checksum"=>nil, "owner"=>nil, "bulkrax_identifier"=>"w4", "accessionNumber"=>[], "titleAlternative"=>[], "subseries"=>[], "theme"=>[], "creator"=>[{"id"=>"http://1a4b41463e52/authorities/show/local/agents/schiffrin-victor"}], "contributor"=>[], "originalPublisher"=>[], "publisher"=>[], "publisherHomepage"=>[], "resourceType"=>[], "rightsStatement"=>[], "rightsHolder"=>[], "scale"=>[], "series"=>[], "source"=>[], "staffNote"=>[], "coordinates"=>[], "subjectName"=>[], "subjectPlace"=>[{"id"=>"http://www.geonames.org/5404900"}, {"id"=>"http://www.geonames.org/5404836"}, {"id"=>"http://www.geonames.org/5393052"}], "subjectTemporal"=>[], "subjectTitle"=>[], "subjectTopic"=>[{"id"=>"info:lc/authorities/subjects/sh2009002337"}, {"id"=>"info:lc/authorities/subjects/sh85028268"}, {"id"=>"info:lc/authorities/subjects/sh85006465"}], "dateCreated"=>["2022-01-20"], "dateCreatedDisplay"=>[], "dateCreatedIngest"=>[], "dateOfSituation"=>[], "dateDigitized"=>[], "datePublished"=>[], "description"=>[], "descriptionAddress"=>[], "descriptionFeature"=>[], "descriptionNeighborhood"=>[], "descriptionStreet"=>[], "descriptionTownshipRange"=>[], "relatedResource"=>["Currents, 1998-02-09, http://www1.ucsc.edu/oncampus/currents/97-98/02-09/arboretum.htm"], "physicalFormat"=>[{"id"=>"http://vocab.getty.edu/aat/300127173"}], "keyword"=>[], "language"=>[], "rightsStatus"=>[], "primaryFilename"=>[], "physicalDescription"=>[], "extent"=>[], "accessRights"=>[], "itemCallNumber"=>[], "collectionCallNumber"=>[], "metadataSource"=>[], "metadataInheritance"=>[], "independentlyDisplayed"=>[], "displayRole"=>[], "donorProvenance"=>[], "genre"=>[], "boxFolder"=>[], "label"=>nil, "relative_path"=>nil, "import_url"=>nil, "access_control_id"=>"5e7c1136-40b6-4c9e-a8f6-f6aebd2bc278", "representative_id"=>"j9602060k", "thumbnail_id"=>"j9602060k", "rendering_ids"=>[], "admin_set_id"=>"admin_set/default", "embargo_id"=>nil, "lease_id"=>nil}

Also, all record types that don't have relationships are having an empty array exported instead of no value

bkiahstroud pushed a commit that referenced this issue Mar 18, 2022
bkiahstroud added a commit that referenced this issue Mar 23, 2022
* add new #build_file_set_metadata method to #build_export_metadata

* add specific error message, add unit tests for #build_file_set_metadata

* properly export FileSet filenames and files

* #424 fix relationship exporting

* update specs for filename exporting

* move collection membership parsing to its own method, update specs

* add #build_files specs for Works

* add method to handle join parsing

* fix bug, update specs

* add unit specs for #handle_join_on_export

* remove #build_collection_memberships in favor of #build_relationship_metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant