lib/pmc/doi_to_pmid_processor.rb
def process
      @doi_list.each_slice(MAX_SLICE) do |slice_doi|
        out=process_doi_slice(slice_doi)
        while out!=:ok
          out=process_doi_slice(slice_doi)
        end
      end
    end
# NCBI request that the users should get 200 or less ids
# So, we use MAX_SLICE as maximum slice to make requests
NCBI request that the users should get 200 or less ids
So, we use MAX_SLICE as maximum slice to make requests
NCBI request that the users should get 200 or less ids So we use MAX_SLICE as maximum slice to make requests
def process
      @doi_list.each_slice(MAX_SLICE) do |slice_doi|
        out=process_doi_slice(slice_doi)
        while out!=:ok
          out=process_doi_slice(slice_doi)
        end
      end
    end
def process @doi_list . each_slice ( MAX_SLICE ) do | slice_doi | out = process_doi_slice ( slice_doi ) while out != :ok out = process_doi_slice ( slice_doi ) end end end
NCBI request that the users should get 200 or less ids
So, we use MAX_SLICE as maximum slice to make requests
NCBI request that the users should get 200 or less ids So we use MAX_SLICE as maximum slice to make requests