app/searchers/quick_search/world_cat_discovery_api_article_searcher.rb
def doi_generator(bib)
      doi_link = bib.same_as&.to_s

      # Return DOI link, if available
      return nil unless doi_link

      Rails.logger.debug('QuickSearch::WorldCatDiscoveryApiArticleSearcher.item_link - DOI link found. Returning.')
      doi_base_url = QuickSearch::Engine::WORLD_CAT_DISCOVERY_API_ARTICLE_CONFIG['doi_link']
      doi_base_url + doi_link
    end
# Returns a single URL representing the link to the DOI, or nil if
# no DOI is available
Returns a single URL representing the link to the DOI, or nil if
no DOI is available
Returns a single URL representing the link to the DOI or nil if no DOI is available
def doi_generator(bib)
      doi_link = bib.same_as&.to_s
      return nil unless doi_link
      Rails.logger.debug('QuickSearch::WorldCatDiscoveryApiArticleSearcher.item_link - DOI link found. Returning.')
      doi_base_url = QuickSearch::Engine::WORLD_CAT_DISCOVERY_API_ARTICLE_CONFIG['doi_link']
      doi_base_url + doi_link
    end
def doi_generator ( bib ) doi_link = bib . same_as &. to_s return nil unless doi_link Rails . logger . debug ( 'QuickSearch::WorldCatDiscoveryApiArticleSearcher.item_link - DOI link found. Returning.' ) doi_base_url = QuickSearch :: Engine :: WORLD_CAT_DISCOVERY_API_ARTICLE_CONFIG [ 'doi_link' ] doi_base_url + doi_link end
Returns a single URL representing the link to the DOI, or nil if
no DOI is available
Returns a single URL representing the link to the DOI or nil if no DOI is available
# Return DOI link, if available
bib