dedupmarcxml 1.2.2__tar.gz → 1.2.4__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.2 → dedupmarcxml-1.2.4}/PKG-INFO +1 -1
  2. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml/briefrecord.py +6 -0
  3. dedupmarcxml-1.2.4/dedupmarcxml/version.py +2 -0
  4. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml.egg-info/PKG-INFO +1 -1
  5. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/pyproject.toml +1 -1
  6. dedupmarcxml-1.2.2/dedupmarcxml/version.py +0 -2
  7. /dedupmarcxml-1.2.2/readme.rst → /dedupmarcxml-1.2.4/README.rst +0 -0
  8. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml/__init__.py +0 -0
  9. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml/data/editions_data.pickle +0 -0
  10. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml/data/mlp_classifier_book_model.pickle +0 -0
  11. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml/data/publishers_data.pickle +0 -0
  12. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml/data/randomforest_book_model.pickle +0 -0
  13. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml/data/randomforest_general_model.pickle +0 -0
  14. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml/data/randomforest_music_model.pickle +0 -0
  15. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml/evaluate.py +0 -0
  16. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml/score/__init__.py +0 -0
  17. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml/score/editions.py +0 -0
  18. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml/score/extent.py +0 -0
  19. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml/score/methods.py +0 -0
  20. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml/score/names.py +0 -0
  21. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml/score/publishers.py +0 -0
  22. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml/tools.py +0 -0
  23. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml.egg-info/SOURCES.txt +0 -0
  24. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml.egg-info/dependency_links.txt +0 -0
  25. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml.egg-info/requires.txt +0 -0
  26. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/dedupmarcxml.egg-info/top_level.txt +0 -0
  27. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/license.txt +0 -0
  28. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/setup.cfg +0 -0
  29. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/tests/test_briefrecord.py +0 -0
  30. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/tests/test_score.py +0 -0
  31. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/tests/test_score_editions.py +0 -0
  32. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/tests/test_score_extent.py +0 -0
  33. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/tests/test_score_names.py +0 -0
  34. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/tests/test_score_publishers.py +0 -0
  35. {dedupmarcxml-1.2.2 → dedupmarcxml-1.2.4}/tests/test_tools.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dedupmarcxml
3
- Version: 1.2.2
3
+ Version: 1.2.4
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
  Project-URL: Homepage, https://github.com/Swiss-Library-Service-Platform/dedupmarcxml
@@ -751,6 +751,10 @@ class BriefRecFactory(ABC):
751
751
 
752
752
  leader6 = cls.get_leader_pos67(bib)[0]
753
753
  f008 = cls.find(bib,'008')
754
+
755
+ if f008 is None:
756
+ return False
757
+
754
758
  format_pos = 29 if leader6 in 'egkor' else 23
755
759
 
756
760
  if len(f008) > format_pos:
@@ -770,6 +774,8 @@ class BriefRecFactory(ABC):
770
774
  """
771
775
  leader6 = cls.get_leader_pos67(bib)[0]
772
776
  f008 = cls.find(bib,'008')
777
+ if f008 is None:
778
+ return False
773
779
  format_pos = 29 if leader6 in 'egkor' else 23
774
780
  f338b = cls.find(bib,'338$$b')
775
781
  if f338b is not None and f338b.startswith('h') is True:
@@ -0,0 +1,2 @@
1
+ __version__ = '1.2.4'
2
+ commit_message = f'Fix error when 008 field is missing in the record.'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dedupmarcxml
3
- Version: 1.2.2
3
+ Version: 1.2.4
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
  Project-URL: Homepage, https://github.com/Swiss-Library-Service-Platform/dedupmarcxml
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dedupmarcxml"
3
- version = "1.2.2"
3
+ version = "1.2.4"
4
4
  authors = [
5
5
  {name="Raphaël Rey", email="raphael.rey@slsp.ch" },
6
6
  ]
@@ -1,2 +0,0 @@
1
- __version__ = '1.2.2'
2
- commit_message = f'install new models with new parents evaluation method'
File without changes
File without changes