From 2a636c957963600ceff683621ab4819c3a27d859 Mon Sep 17 00:00:00 2001 From: Tyler Burton Date: Tue, 6 Feb 2024 12:52:38 -0600 Subject: [PATCH] derive name from title --- harvester/harvest.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/harvester/harvest.py b/harvester/harvest.py index c68522e0..1c4fdf68 100644 --- a/harvester/harvest.py +++ b/harvester/harvest.py @@ -570,9 +570,10 @@ def create_ckan_resources(self, metadata: dict) -> list[dict]: def simple_transform(self, metadata: dict) -> dict: output = { # "name": "-".join(str(metadata["title"]).lower().replace(".", "").split()), - "name": "".join([s for s in str(metadata["title"]).lower() if s.isalnum()])[ - :99 - ], # TODO: need to add the random character suffix thing + # "name": "".join([s for s in str(metadata["title"]).lower() if s.isalnum()])[ + # :99 + # ], # TODO: need to add the random character suffix thing + "title": metadata["title"], "owner_org": self.harvest_source.owner_org, "identifier": metadata["identifier"], "author": None, # TODO: CHANGE THIS!