From 0864dbea93163bb0c711d4333237c8eac1725930 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Thu, 18 Jan 2024 14:22:58 +0000 Subject: [PATCH] Add link to current mapping --- app/sources/rosetta/lib/response_parser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/sources/rosetta/lib/response_parser.py b/app/sources/rosetta/lib/response_parser.py index 1bdf728..47526ea 100644 --- a/app/sources/rosetta/lib/response_parser.py +++ b/app/sources/rosetta/lib/response_parser.py @@ -34,6 +34,8 @@ def __new__(cls, rosetta_data: dict, source_item: int = 0): class RosettaSourceParser: + # Current mapping: https://github.com/nationalarchives/ds-infrastructure-ciim/blob/main/kubernetes/rosetta-staging/config/jpt.json + def __init__(self, rosetta_data_source): self.source = rosetta_data_source @@ -140,7 +142,7 @@ def name(self) -> str | None: names = self.names() if "name" in names: return names["name"] - return self.title() or None + return None def names(self) -> dict: names = {}