Skip to content

Add support for manuscripts with no current holdings#10

Open
mdholloway wants to merge 1 commit intomainfrom
feature/handle-manuscripts-no-current-holdings
Open

Add support for manuscripts with no current holdings#10
mdholloway wants to merge 1 commit intomainfrom
feature/handle-manuscripts-no-current-holdings

Conversation

@mdholloway
Copy link
Owner

  • Add NoCurrentHoldingException for manuscripts with zero current holdings
  • Add MultipleCurrentHoldingsException for manuscripts with multiple current holdings
  • Refactor DsMeta#initialize to use specific exceptions instead of generic error
  • Extract holdings validation logic into private method for better code organization
  • Add comprehensive test coverage for both exception scenarios
  • Fix Rubocop violations with improved test structure and verified doubles

Resolves issue #9 - allows wikibase_to_solr script to handle manuscripts without current holdings gracefully by catching NoCurrentHoldingException.

🤖 Generated with Claude Code

- Add NoCurrentHoldingException for manuscripts with zero current holdings
- Add MultipleCurrentHoldingsException for manuscripts with multiple current holdings
- Refactor DsMeta#initialize to use specific exceptions instead of generic error
- Extract holdings validation logic into private method for better code organization
- Add comprehensive test coverage for both exception scenarios
- Fix Rubocop violations with improved test structure and verified doubles

Resolves issue #9 - allows wikibase_to_solr script to handle manuscripts
without current holdings gracefully by catching NoCurrentHoldingException.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@mdholloway mdholloway requested a review from emeryr-upenn May 30, 2025 01:54
@mdholloway
Copy link
Owner Author

Hey Doug, sorry it took me a little bit to get to this! If this looks good to you, I'll merge and release a new version and follow up with a change to the wikibase_to_solr script in the Blacklight repo.

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.

1 participant