importer: handle different import media types #2149
Annotations
2 errors
Python (3.9, postgresql14, opensearch2):
cds_ils/importer/XMLRecordToJson.py#L1
Black format check
--- /home/runner/work/cds-ils/cds-ils/cds_ils/importer/XMLRecordToJson.py 2024-10-30 15:39:36.941643+00:00
+++ /home/runner/work/cds-ils/cds-ils/cds_ils/importer/XMLRecordToJson.py 2024-10-30 15:44:36.209117+00:00
@@ -54,11 +54,13 @@
is_deletable = False
init_fields = {}
if "am" in marc_record.get("leader", []):
init_fields.update({"_eitem": {"_type": "e-book"}})
- elif "im" in marc_record.get("leader", []) or "jm" in marc_record.get("leader", []):
+ elif "im" in marc_record.get("leader", []) or "jm" in marc_record.get(
+ "leader", []
+ ):
init_fields.update({"_eitem": {"_type": "audiobook"}})
elif "gm" in marc_record.get("leader", []):
init_fields.update(
{"document_type": "MULTIMEDIA", "_eitem": {"_type": "video"}}
)
|
Python (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
|