From 1a11812bae54ca3452d9522f36db5ff30bf387dc Mon Sep 17 00:00:00 2001 From: Jordan Padams Date: Thu, 16 Jun 2022 11:02:19 -0700 Subject: [PATCH 1/2] Fix typos --- src/pds_doi_service/core/input/input_util.py | 4 ++-- src/pds_doi_service/core/input/pds4_util.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pds_doi_service/core/input/input_util.py b/src/pds_doi_service/core/input/input_util.py index 1296c651..613554a6 100644 --- a/src/pds_doi_service/core/input/input_util.py +++ b/src/pds_doi_service/core/input/input_util.py @@ -135,9 +135,9 @@ def parse_xml_file(self, xml_path): xml_tree = etree.fromstring(xml_contents.encode()) - # Check if we were handed a PSD4 label + # Check if we were handed a PDS4 label if self._label_util.is_pds4_label(xml_tree): - logger.info("Parsing xml file %s as a PSD4 label", basename(xml_path)) + logger.info("Parsing xml file %s as a PDS4 label", basename(xml_path)) try: dois.append(self._label_util.get_doi_fields_from_pds4(xml_tree)) diff --git a/src/pds_doi_service/core/input/pds4_util.py b/src/pds_doi_service/core/input/pds4_util.py index 3e65b03e..d363b368 100644 --- a/src/pds_doi_service/core/input/pds4_util.py +++ b/src/pds_doi_service/core/input/pds4_util.py @@ -56,7 +56,7 @@ def __init__(self): } def is_pds4_label(self, xml_tree): - # If reading xpaths with the PSD4 namespace returns anything, it should + # If reading xpaths with the PDS4 namespace returns anything, it should # be safe to assume its a PDS4 label, additional validation can occur # downstream. if self.read_pds4(xml_tree): From 76c48a8bc5f6d9463e77f475b3f1dcbbe715e182 Mon Sep 17 00:00:00 2001 From: Jordan Padams Date: Thu, 16 Jun 2022 11:02:46 -0700 Subject: [PATCH 2/2] Fix typos --- src/pds_doi_service/api/controllers/dois_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pds_doi_service/api/controllers/dois_controller.py b/src/pds_doi_service/api/controllers/dois_controller.py index ddc20cfe..aad3cb68 100644 --- a/src/pds_doi_service/api/controllers/dois_controller.py +++ b/src/pds_doi_service/api/controllers/dois_controller.py @@ -256,7 +256,7 @@ def post_dois(action, submitter, node, url=None, body=None, force=False): format. Only used when action is set to "draft" or "update". If provided, any requestBody contents are ignored by the update action. body : str or dict - requestBody contents. If provided, should contain an PSD4 label (for + requestBody contents. If provided, should contain an PDS4 label (for update) or one or more LabelPayload structures (for reserve). Required if the action is set to "reserve", otherwise it can be used optionally in lieu of url when the action is set to "draft" or "update".