Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index SUDOC values #507

Merged
merged 3 commits into from
Jun 24, 2024
Merged

Index SUDOC values #507

merged 3 commits into from
Jun 24, 2024

Conversation

ajkiessl
Copy link
Contributor

@ajkiessl ajkiessl commented May 10, 2024

fixes #406

Now indexing SUDOC values. The next step of this would be to start identifying what kind of processing needs done on these. We may want to set up a preview branch for this and have it do a full index. Then output a large subset of these for Ruth to look at.

…t for normalization. They will return nil. Instead just return the unprocessed call number if SUDOC. Tests
@ajkiessl ajkiessl changed the title Index SUDOC Index SUDOC values May 10, 2024
@@ -102,6 +105,10 @@ def dewey?
classification == 'DEWEY'
end

def sudoc?
classification == 'SUDOC'
Copy link
Contributor

Choose a reason for hiding this comment

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

I like these shortcuts.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any possibility the returned case would ever be different (eg 'Sudoc')? I assume not, but just wanted to check.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, good question. I would say no since the others don't do any case normalization. It's probably some standard for marc that they are always in uppercase, but I wouldn't be against adding case normalization to all of these to be safe.

@ajkiessl ajkiessl merged commit e7daf42 into main Jun 24, 2024
1 check passed
@ajkiessl ajkiessl deleted the 406-sudoc branch June 24, 2024 18:49
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.

Identify Base SUDOC call numbers
3 participants