rara-tools 0.7.5__py3-none-any.whl → 0.7.6__py3-none-any.whl
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.
Potentially problematic release.
This version of rara-tools might be problematic. Click here for more details.
- rara_tools/core_formatters/formatted_keyword.py +6 -1
- {rara_tools-0.7.5.dist-info → rara_tools-0.7.6.dist-info}/METADATA +1 -1
- {rara_tools-0.7.5.dist-info → rara_tools-0.7.6.dist-info}/RECORD +6 -6
- {rara_tools-0.7.5.dist-info → rara_tools-0.7.6.dist-info}/WHEEL +0 -0
- {rara_tools-0.7.5.dist-info → rara_tools-0.7.6.dist-info}/licenses/LICENSE.md +0 -0
- {rara_tools-0.7.5.dist-info → rara_tools-0.7.6.dist-info}/top_level.txt +0 -0
|
@@ -25,6 +25,7 @@ class FormattedKeyword(FormattedObject):
|
|
|
25
25
|
self.method: str = self.object_dict.get("method")
|
|
26
26
|
self.model_arch: str = self.object_dict.get("model_arch", self.method)
|
|
27
27
|
self.keyword_type: str = self.object_dict.get("entity_type")
|
|
28
|
+
self.article_id: str | None = self.object_dict.get("article_id", None)
|
|
28
29
|
|
|
29
30
|
self.entity_type: str = KEYWORD_TYPE_MAP.get(self.keyword_type, "")
|
|
30
31
|
self.url_source_map: dict = url_source_map
|
|
@@ -39,6 +40,7 @@ class FormattedKeyword(FormattedObject):
|
|
|
39
40
|
self.__language: str = ""
|
|
40
41
|
self.__author: str | None = None
|
|
41
42
|
|
|
43
|
+
|
|
42
44
|
@property
|
|
43
45
|
def keyword(self) -> str:
|
|
44
46
|
return self.entity
|
|
@@ -139,6 +141,8 @@ class FormattedKeyword(FormattedObject):
|
|
|
139
141
|
#self.__author = self.viaf_info.get
|
|
140
142
|
return self.__author
|
|
141
143
|
|
|
144
|
+
|
|
145
|
+
|
|
142
146
|
def _get_url_info(self) -> dict:
|
|
143
147
|
""" Finds URL identifier from LinkedDoc based on
|
|
144
148
|
given entity type.
|
|
@@ -224,6 +228,7 @@ class FormattedKeyword(FormattedObject):
|
|
|
224
228
|
"score": self.score,
|
|
225
229
|
"url": self.url,
|
|
226
230
|
"url_source": self.url_source,
|
|
227
|
-
"author": self.author
|
|
231
|
+
"author": self.author,
|
|
232
|
+
"article_id": self.article_id
|
|
228
233
|
}
|
|
229
234
|
return keyword_dict
|
|
@@ -16,7 +16,7 @@ rara_tools/constants/normalizers.py,sha256=Xs3anDwJHpHeniwx3xoIZyqdEXtO3eb7ouGLL
|
|
|
16
16
|
rara_tools/constants/parsers.py,sha256=L6nh1Itget9_9DMsliDkh6T25z78eMFPWVkbaU08DwU,5561
|
|
17
17
|
rara_tools/constants/subject_indexer.py,sha256=0snyyB8IMCWXOYPXR_c0Kavq4nBiww559rdNOKjawx8,2133
|
|
18
18
|
rara_tools/core_formatters/core_formatter.py,sha256=u_Cdgv9qBcyF-XddjaRGUqAFik9OMAdSzAulXpYR7vE,4997
|
|
19
|
-
rara_tools/core_formatters/formatted_keyword.py,sha256=
|
|
19
|
+
rara_tools/core_formatters/formatted_keyword.py,sha256=hhi6wh4ErFionjBqYsEeKGbf1CACF7c5hu2XPaZDidc,7990
|
|
20
20
|
rara_tools/core_formatters/formatted_meta.py,sha256=r0RPG4eM-REPIR1DrIJnvYPQtQrzkgdvX9tvhNWjQ0Y,5250
|
|
21
21
|
rara_tools/core_formatters/formatted_object.py,sha256=7a499ZmcZXOqtlwxDi6FWHWF5a6HdCsduS22wV3uHIE,5656
|
|
22
22
|
rara_tools/normalizers/__init__.py,sha256=_NqpS5w710DhaURytHq9JpEt8HgYpSPfRDcOtOymJgE,193
|
|
@@ -39,8 +39,8 @@ rara_tools/parsers/marc_records/title_record.py,sha256=XrtJ4gj7wzSaGxNaPtPuawmqq
|
|
|
39
39
|
rara_tools/parsers/tools/entity_normalizers.py,sha256=VyCy_NowCLpOsL0luQ55IW-Qi-J5oBH0Ofzr7HRFBhM,8949
|
|
40
40
|
rara_tools/parsers/tools/marc_converter.py,sha256=LgSHe-7n7aiDrw2bnsB53r3fXTRFjZXTwBYfTpL0pfs,415
|
|
41
41
|
rara_tools/parsers/tools/russian_transliterator.py,sha256=5ZU66iTqAhr7pmfVqXPAI_cidF43VqqmuN4d7H4_JuA,9770
|
|
42
|
-
rara_tools-0.7.
|
|
43
|
-
rara_tools-0.7.
|
|
44
|
-
rara_tools-0.7.
|
|
45
|
-
rara_tools-0.7.
|
|
46
|
-
rara_tools-0.7.
|
|
42
|
+
rara_tools-0.7.6.dist-info/licenses/LICENSE.md,sha256=hkZVnIZll7e_KNEQzeY94Y9tlzVL8iVZBTMBvDykksU,35142
|
|
43
|
+
rara_tools-0.7.6.dist-info/METADATA,sha256=DFO10PC3Toj5n2u6Lpd1Bfuv9PytQMHEbdi1CrLfu1w,4079
|
|
44
|
+
rara_tools-0.7.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
45
|
+
rara_tools-0.7.6.dist-info/top_level.txt,sha256=JwfB5b8BAtW5OFKRln2AQ_WElTRyIBM4nO0FKN1cupY,11
|
|
46
|
+
rara_tools-0.7.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|