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". 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):