-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip deleted records during transform
Why these changes are being introduced: As we are not yet handling deleted records, we need to skip them during transform so they don't cause errors in the transform process. In a future commit we will replace this with actual deleted record handling. How this addresses that need: * Adds a method in the Transformer class to check for deleted record status. * Updates the transformer.transform method to return None (thus skipping the record) if the record status is deleted. * Updates tests and fixtures to reflect changes. Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/TIMX-126
- Loading branch information
Showing
4 changed files
with
46 additions
and
3 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
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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<record xmlns="http://www.openarchives.org/OAI/2.0/" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<header status="deleted"> | ||
<identifier>123456</identifier> | ||
<datestamp>2022-11-30T16:53:47Z</datestamp> | ||
</header> | ||
</record> |
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