src/pds_doi_service/core/actions/reserve.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:
            # First set node, contributor, and publisher at the beginning of the function
            # to ensure that they are set in case of an exception.
            doi.node_id = self._node
            doi.contributor = NodeUtil.get_node_long_name(self._node)
            doi.publisher = self._config.get("OTHER", "doi_publisher")

            # Add 'status' field so the ranking in the workflow can be determined
            doi.status = DoiStatus.Draft

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

            # Add the event field to instruct DataCite to make this entry
            # hidden so it can be modified (should have no effect for other
            # providers)
            doi.event = DoiEvent.Hide

        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:
            doi.node_id = self._node
            doi.contributor = NodeUtil.get_node_long_name(self._node)
            doi.publisher = self._config.get("OTHER", "doi_publisher")
            doi.status = DoiStatus.Draft
            doi.keywords.update(get_global_keywords())
            doi.event = DoiEvent.Hide
        return dois
def _complete_dois ( self , dois ) : for doi in dois : doi . node_id = self . _node doi . contributor = NodeUtil . get_node_long_name ( self . _node ) doi . publisher = self . _config . get ( "OTHER" , "doi_publisher" ) doi . status = DoiStatus . Draft doi . keywords . update ( get_global_keywords ( ) ) doi . event = DoiEvent . Hide 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.

        """ # First set node, contributor, and publisher at the beginning of the function # to ensure that they are set in case of an exception. # Add 'status' field so the ranking in the workflow can be determined # Make sure the global keywords from the config are included # Add the event field to instruct DataCite to make this entry # hidden so it can be modified (should have no effect for other # providers)
self
dois