src/pds_doi_service/core/actions/release.py
def _complete_dois(self, dois):
        """
        Ensures the list of DOI objects to reserve have the requisite fields,
        such as status or contributor, filled in prior to submission.

        Parameters
        ----------
        dois : list of Doi
            The list of Doi objects to complete

        Returns
        -------
        dois : list of Doi
            The completed list of Doi objects.

        """
        for doi in dois:
            # Make sure correct node, contributor and publisher fields are set
            if self._node:
                doi.node_id = self._node
                doi.contributor = NodeUtil.get_node_long_name(self._node)

            doi.publisher = self._config.get("OTHER", "doi_publisher")

            # Make sure the global keywords from the config are included
            doi.keywords.update(get_global_keywords())

            # Add 'status' field so the ranking in the workflow can be determined.
            if self._review:
                doi.status = DoiStatus.Review

            # If a site url was not created for the DOI at parse time, try
            # to create one now
            if not doi.site_url:
                doi.site_url = create_landing_page_url(doi.pds_identifier, doi.product_type)

            if not self._review and doi.event is None:
                # Add the event field to instruct DataCite to publish DOI to
                # findable state (should have no effect for other providers)
                doi.event = DoiEvent.Publish

        return dois

        Ensures the list of DOI objects to reserve have the requisite fields,
        such as status or contributor, filled in prior to submission.

        Parameters
        ----------
        dois : list of Doi
            The list of Doi objects to complete

        Returns
        -------
        dois : list of Doi
            The completed list of Doi objects.

        
Ensures the list of DOI objects to reserve have the requisite fields,
such as status or contributor, filled in prior to submission.

Parameters

dois : list of Doi
The list of Doi objects to complete

Returns

dois : list of Doi
The completed list of Doi objects.
Ensures the list of DOI objects to reserve have the requisite fields such as status or contributor filled in prior to submission . Parameters dois : list of Doi The list of Doi objects to complete Returns dois : list of Doi The completed list of Doi objects .
def _complete_dois(self, dois):
        for doi in dois:
            if self._node:
                doi.node_id = self._node
                doi.contributor = NodeUtil.get_node_long_name(self._node)
            doi.publisher = self._config.get("OTHER", "doi_publisher")
            doi.keywords.update(get_global_keywords())
            if self._review:
                doi.status = DoiStatus.Review
            if not doi.site_url:
                doi.site_url = create_landing_page_url(doi.pds_identifier, doi.product_type)
            if not self._review and doi.event is None:
                doi.event = DoiEvent.Publish
        return dois
def _complete_dois ( self , dois ) : for doi in dois : if self . _node : doi . node_id = self . _node doi . contributor = NodeUtil . get_node_long_name ( self . _node ) doi . publisher = self . _config . get ( "OTHER" , "doi_publisher" ) doi . keywords . update ( get_global_keywords ( ) ) if self . _review : doi . status = DoiStatus . Review if not doi . site_url : doi . site_url = create_landing_page_url ( doi . pds_identifier , doi . product_type ) if not self . _review and doi . event is None : doi . event = DoiEvent . Publish return dois
Ensures the list of DOI objects to reserve have the requisite fields,
such as status or contributor, filled in prior to submission.
Ensures the list of DOI objects to reserve have the requisite fields such as status or contributor filled in prior to submission .
"""
        Ensures the list of DOI objects to reserve have the requisite fields,
        such as status or contributor, filled in prior to submission.

        Parameters
        ----------
        dois : list of Doi
            The list of Doi objects to complete

        Returns
        -------
        dois : list of Doi
            The completed list of Doi objects.

        """ # Make sure correct node, contributor and publisher fields are set # Make sure the global keywords from the config are included # Add 'status' field so the ranking in the workflow can be determined. # If a site url was not created for the DOI at parse time, try # to create one now # Add the event field to instruct DataCite to publish DOI to # findable state (should have no effect for other providers)
self
dois