dedupmarcxml 1.2.7__tar.gz → 1.2.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/PKG-INFO +1 -1
  2. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml/briefrecord.py +4 -2
  3. dedupmarcxml-1.2.8/dedupmarcxml/version.py +2 -0
  4. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml.egg-info/PKG-INFO +1 -1
  5. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/pyproject.toml +1 -1
  6. dedupmarcxml-1.2.7/dedupmarcxml/version.py +0 -2
  7. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/README.rst +0 -0
  8. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml/__init__.py +0 -0
  9. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml/data/editions_data.pickle +0 -0
  10. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml/data/mlp_classifier_book_model.pickle +0 -0
  11. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml/data/publishers_data.pickle +0 -0
  12. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml/data/randomforest_book_model.pickle +0 -0
  13. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml/data/randomforest_general_model.pickle +0 -0
  14. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml/data/randomforest_music_model.pickle +0 -0
  15. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml/evaluate.py +0 -0
  16. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml/score/__init__.py +0 -0
  17. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml/score/editions.py +0 -0
  18. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml/score/extent.py +0 -0
  19. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml/score/methods.py +0 -0
  20. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml/score/names.py +0 -0
  21. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml/score/publishers.py +0 -0
  22. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml/tools.py +0 -0
  23. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml.egg-info/SOURCES.txt +0 -0
  24. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml.egg-info/dependency_links.txt +0 -0
  25. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml.egg-info/requires.txt +0 -0
  26. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/dedupmarcxml.egg-info/top_level.txt +0 -0
  27. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/license.txt +0 -0
  28. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/setup.cfg +0 -0
  29. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/tests/test_briefrecord.py +0 -0
  30. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/tests/test_score.py +0 -0
  31. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/tests/test_score_editions.py +0 -0
  32. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/tests/test_score_extent.py +0 -0
  33. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/tests/test_score_names.py +0 -0
  34. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/tests/test_score_publishers.py +0 -0
  35. {dedupmarcxml-1.2.7 → dedupmarcxml-1.2.8}/tests/test_tools.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dedupmarcxml
3
- Version: 1.2.7
3
+ Version: 1.2.8
4
4
  Summary: This python module is a tool to dedup MarcXML records.
5
5
  Author-email: Raphaël Rey <raphael.rey@slsp.ch>
6
6
  License-Expression: GPL-3.0-only
@@ -622,8 +622,10 @@ class BriefRecFactory(ABC):
622
622
  :return: language or None if not found
623
623
  """
624
624
  controlfield008 = cls.find(bib, '008')
625
-
626
- languages = [controlfield008[35:38]]
625
+ if controlfield008 is not None:
626
+ languages = [controlfield008[35:38]]
627
+ else:
628
+ languages = []
627
629
 
628
630
  for field041 in cls.findall(bib, '041$$a'):
629
631
  if field041 not in languages:
@@ -0,0 +1,2 @@
1
+ __version__ = '1.2.8'
2
+ commit_message = f'Fix 008 field handling.'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dedupmarcxml
3
- Version: 1.2.7
3
+ Version: 1.2.8
4
4
  Summary: This python module is a tool to dedup MarcXML records.
5
5
  Author-email: Raphaël Rey <raphael.rey@slsp.ch>
6
6
  License-Expression: GPL-3.0-only
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dedupmarcxml"
3
- version = "1.2.7"
3
+ version = "1.2.8"
4
4
  authors = [
5
5
  {name="Raphaël Rey", email="raphael.rey@slsp.ch" },
6
6
  ]
@@ -1,2 +0,0 @@
1
- __version__ = '1.2.7'
2
- commit_message = f'Fix license declaration.'
File without changes
File without changes
File without changes