dedupmarcxml 1.2.3__tar.gz → 1.2.6__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.
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/PKG-INFO +1 -1
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/briefrecord.py +5 -2
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/version.py +1 -1
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml.egg-info/PKG-INFO +1 -1
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/pyproject.toml +1 -1
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/README.rst +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/__init__.py +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/data/editions_data.pickle +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/data/mlp_classifier_book_model.pickle +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/data/publishers_data.pickle +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/data/randomforest_book_model.pickle +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/data/randomforest_general_model.pickle +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/data/randomforest_music_model.pickle +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/evaluate.py +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/score/__init__.py +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/score/editions.py +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/score/extent.py +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/score/methods.py +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/score/names.py +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/score/publishers.py +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/tools.py +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml.egg-info/SOURCES.txt +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml.egg-info/dependency_links.txt +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml.egg-info/requires.txt +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml.egg-info/top_level.txt +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/license.txt +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/setup.cfg +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/tests/test_briefrecord.py +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/tests/test_score.py +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/tests/test_score_editions.py +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/tests/test_score_extent.py +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/tests/test_score_names.py +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/tests/test_score_publishers.py +0 -0
- {dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/tests/test_tools.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dedupmarcxml
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.6
|
|
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
|
|
@@ -774,6 +774,8 @@ class BriefRecFactory(ABC):
|
|
|
774
774
|
"""
|
|
775
775
|
leader6 = cls.get_leader_pos67(bib)[0]
|
|
776
776
|
f008 = cls.find(bib,'008')
|
|
777
|
+
if f008 is None:
|
|
778
|
+
return False
|
|
777
779
|
format_pos = 29 if leader6 in 'egkor' else 23
|
|
778
780
|
f338b = cls.find(bib,'338$$b')
|
|
779
781
|
if f338b is not None and f338b.startswith('h') is True:
|
|
@@ -791,7 +793,7 @@ class BriefRecFactory(ABC):
|
|
|
791
793
|
|
|
792
794
|
:param bib: :class:`etree.Element`
|
|
793
795
|
|
|
794
|
-
:return: boolean indicating whether the record is a
|
|
796
|
+
:return: boolean indicating whether the record is a Braille document
|
|
795
797
|
"""
|
|
796
798
|
leader6 = cls.get_leader_pos67(bib)[0]
|
|
797
799
|
f008 = cls.find(bib,'008')
|
|
@@ -800,7 +802,8 @@ class BriefRecFactory(ABC):
|
|
|
800
802
|
|
|
801
803
|
if f336b is not None and f336b == 'tct':
|
|
802
804
|
return True
|
|
803
|
-
|
|
805
|
+
if f008 is None:
|
|
806
|
+
return False
|
|
804
807
|
if len(f008) > format_pos:
|
|
805
808
|
return f008[format_pos] in 'f'
|
|
806
809
|
return False
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = '1.2.
|
|
1
|
+
__version__ = '1.2.6'
|
|
2
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.
|
|
3
|
+
Version: 1.2.6
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/data/mlp_classifier_book_model.pickle
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dedupmarcxml-1.2.3 → dedupmarcxml-1.2.6}/dedupmarcxml/data/randomforest_general_model.pickle
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|