Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

[HOLD] Migration third run #543

Draft
wants to merge 24 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
6cb769f
Add a script to export collections
jcoyne Dec 14, 2020
4841e19
Export all the collections
jcoyne Dec 14, 2020
f42d2ea
Add required columns
jcoyne Dec 14, 2020
c1cb30d
Export the version
jcoyne Dec 14, 2020
45dd09c
Warn on invalid APOs
jcoyne Dec 14, 2020
d4485fb
Add related items to the export list
jcoyne Dec 14, 2020
7b6314b
Fix apo identifier method
jcoyne Dec 14, 2020
8d9d3d8
Don't export empty related items
jcoyne Dec 15, 2020
34afe25
Export more collection fields
jcoyne Dec 15, 2020
9084e88
Add a script for exporting items
jcoyne Dec 15, 2020
cde889a
Stream output and handle errors
jcoyne Dec 15, 2020
f5ec36f
Export contributors
jcoyne Dec 15, 2020
c753a21
Export timestamps and files
jcoyne Dec 16, 2020
0e90294
Export keywords
jcoyne Dec 16, 2020
8dad1b7
Export related citations
jcoyne Dec 16, 2020
c8aefde
Allow for filtering which collections and items are exported
mjgiarlo Feb 17, 2021
366dbb1
Fix bug in collection exporter (referencing an item)
mjgiarlo Feb 18, 2021
c47a429
Fix bug with item exporter such that the list is always an AF::Relation
mjgiarlo Feb 18, 2021
6bbba60
Export events for items and collections
mjgiarlo Feb 23, 2021
a3fbe51
Filter out graveyard APO collections in item exporter
mjgiarlo Feb 24, 2021
7d66be1
Filter out items belonging to the graveyard APO when exporting
mjgiarlo Feb 26, 2021
19e58fb
Filter out items and collections from being exported if they have a c…
mjgiarlo Feb 26, 2021
c89d5a6
Export files "hide" bit when exporting items
mjgiarlo Feb 26, 2021
e1a872b
Add a list of items to exclude
jcoyne Jun 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix bug in collection exporter (referencing an item)
  • Loading branch information
mjgiarlo authored and jcoyne committed Jul 14, 2021

Verified

This commit was signed with the committer’s verified signature.
olsh Oleg Shevchenko
commit 366dbb1c5928f6c1c3916d9606cd887a81791e37
4 changes: 2 additions & 2 deletions bin/export-collections
Original file line number Diff line number Diff line change
@@ -48,8 +48,8 @@ def serialize(coll)
depositors: apo.persons_with_role('hydrus-collection-item-depositor') + apo.persons_with_role('hydrus-collection-depositor'),
reviewers: apo.persons_with_role('hydrus-collection-reviewer'),
related_items: related_items,
created_at: item.create_date,
updated_at: item.modified_date
created_at: coll.create_date,
updated_at: coll.modified_date
}
end