Skip to content

Set dc.identifier.oclc for digitized theses item submissions#251

Merged
jonavellecuerdo merged 2 commits into
mainfrom
IN-1759-digitized-theses-testing
Jun 22, 2026
Merged

Set dc.identifier.oclc for digitized theses item submissions#251
jonavellecuerdo merged 2 commits into
mainfrom
IN-1759-digitized-theses-testing

Conversation

@jonavellecuerdo

@jonavellecuerdo jonavellecuerdo commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Purpose and background context

To check if an item already exists in DSpace, the digitized theses workflow will attempt to resolve an object based on the dc.identifier.oclc field.

Note: This step is separate from validating "replacement" theses, which continues to rely on a target string identifying "student-submitted electronic theses".

How can a reviewer manually see the effects of these changes?

The issue was noted when I began testing in Stage. Since Stage and Dev both point to the test instance of DSpace, I expected all item submissions to be flagged as "replacement" theses since any "new" theses would've been created via testing in Dev. However, as the attached CSV file shows, this was not the case: 20260611-20260622T124016Z-item-submissions.csv.

Results from updates:

  1. I ran batch_id=20260611 through the DSO workflow. This time, items with the dc.identifier.oclc metadata field will be created for "new" theses:
    20260611-20260622T134853Z-item-submissions.csv; 55 new theses and 7 replacement theses. This is expected.
  2. I ran the batch creation step for batch_id=20260611 through the DSO workflow a second time. This yields different results:
    20260611-20260622T140712Z-item-submissions.csv, now categorizing all 62 items as replacement theses.

Includes new or updated dependencies?

YES - Updated dependencies to resollve CVEs.

Changes expectations for external applications?

NO

What are the relevant tickets?

Code review

  • Code review best practices are documented here and you are encouraged to have a constructive dialogue with your reviewers about their preferences and expectations.

Why these changes are being introduced:
* To check if an item already exists in DSpace, the digitized theses
workflow will attempt to resolve an object based on this field.

How this addresses that need:
* The item identifier is set as 'dc.identifier.oclc'

Side effects of this change:
* None

Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/IN-1759
@jonavellecuerdo jonavellecuerdo force-pushed the IN-1759-digitized-theses-testing branch from 94ef19b to a54a121 Compare June 22, 2026 13:46
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 27957416338

Warning

No base build found for commit eba7f1e on main.
Coverage changes can't be calculated without a base build.
If a base build is processing, this comment will update automatically when it completes.

Coverage: 83.446%

Details

  • Patch coverage: 4 of 4 lines across 2 files are fully covered (100%).

Uncovered Changes

No uncovered changes found.

Coverage Regressions

Requires a base build to compare against. How to fix this →


Coverage Stats

Coverage Status
Relevant Lines: 2066
Covered Lines: 1724
Line Coverage: 83.45%
Coverage Strength: 0.83 hits per line

💛 - Coveralls

@jonavellecuerdo jonavellecuerdo marked this pull request as ready for review June 22, 2026 14:19
@jonavellecuerdo jonavellecuerdo requested a review from a team as a code owner June 22, 2026 14:19
@jonavellecuerdo jonavellecuerdo requested a review from ehanson8 June 22, 2026 14:33
Comment thread dsc/reports/base.py
@property
def subject(self) -> str:
return f"DSC Submit Results - {self.workflow_name}, batch='{self.batch_id}'"
return f"[{CONFIG.workspace}] DSC Submit Results - {self.workflow_name}, batch='{self.batch_id}'" # noqa: E501

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Smart addition!

@jonavellecuerdo jonavellecuerdo merged commit f067eb7 into main Jun 22, 2026
6 checks passed
@jonavellecuerdo jonavellecuerdo deleted the IN-1759-digitized-theses-testing branch June 22, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants