-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP allow importing EADs nested under specified fonds on a dataset
Typically the fonds ID specifier is for `sync` update, where the info for the fonds is in the EAD to be imported. But sometimes we want to import items _under_ an existing fonds. This new `nest` option on the dataset allows this.
- Loading branch information
Showing
12 changed files
with
62 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
etc/db_migrations/20240409_add_import_dataset_nest_column.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE import_dataset | ||
ADD COLUMN status VARCHAR(10) NOT NULL DEFAULT 'active', | ||
DROP CONSTRAINT import_dataset_item_id_pattern; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
INSERT INTO import_dataset (repo_id, id, name, type, status, comments) | ||
VALUES ('r1', 'default', 'Default', 'upload', 'active', 'test') | ||
, ('r2', 'default', 'Default', 'oaipmh', 'active', 'test') | ||
, ('r1', 'oaipmh_test', 'OaiPmh Test', 'oaipmh', 'active', 'test') | ||
, ('r1', 'rs_test', 'RS Test', 'rs', 'active', 'test') | ||
, ('r1', 'urlset_test', 'URL Set Test', 'urlset', 'active', 'test') | ||
INSERT INTO import_dataset (repo_id, id, name, type, item_id, nest, status, comments) | ||
VALUES ('r1', 'default', 'Default', 'upload', NULL, false, 'active', 'test') | ||
, ('r2', 'default', 'Default', 'oaipmh', NULL, false, 'active', 'test') | ||
, ('r1', 'oaipmh_test', 'OaiPmh Test', 'oaipmh', NULL, false, 'active', 'test') | ||
, ('r1', 'rs_test', 'RS Test', 'rs', NULL, false, 'active', 'test') | ||
, ('r1', 'urlset_test', 'URL Set Test', 'urlset', NULL, false, 'active', 'test') | ||
, ('r1', 'nest_test', 'URL Set Test', 'urlset', 'nl-r1-m19', true, 'active', 'test') | ||
; | ||
|