Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rerowep
Copy link
Contributor

@rerowep rerowep commented Sep 4, 2024

  • Fixes error for SLSP imports with incorrect 008.

@rerowep rerowep self-assigned this Sep 4, 2024
@github-actions github-actions bot added the f: data About data model, importation, transformation, exportation of data, specific for bibliographic data label Sep 4, 2024
self["fiction_statement"] = DocumentFictionType.Fiction.value
elif value[33] in ["0", "e", "h", "i", "s"]:
self["fiction_statement"] = DocumentFictionType.NonFiction.value
if len(value) >= 33:
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be ">33" because if len(value) == 33, value[33] will be an error

* Fixes error for SLSP imports with incorrect 008.

Co-Authored-by: Peter Weber <[email protected]>
Copy link
Contributor

@jma jma left a comment

Choose a reason for hiding this comment

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

Tests are missing.

@rerowep rerowep merged commit c4c34ac into rero:staging Sep 10, 2024
@rerowep rerowep deleted the wep-fix-import_slp branch September 10, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

f: data About data model, importation, transformation, exportation of data, specific for bibliographic data

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants