lib/geoblacklight/metadata.rb
def metadata
      response = retrieve_metadata
      if response.nil? || response.status == 404
        Geoblacklight.logger.error "Could not reach #{@reference.endpoint}"
        return "Could not reach #{@reference.endpoint}"
      else
        return response.body
      end
    end
##
# Handles metadata and returns the retrieved metadata or an error message if
# something went wrong
# @return [String] returned metadata string
Handles metadata and returns the retrieved metadata or an error message if
something went wrong
Handles metadata and returns the retrieved metadata or an error message if something went wrong
def metadata
      response = retrieve_metadata
      if response.nil? || response.status == 404
        Geoblacklight.logger.error "Could not reach #{@reference.endpoint}"
        return "Could not reach #{@reference.endpoint}"
      else
        return response.body
      end
    end
def metadata response = retrieve_metadata if response . nil? || response . status == 404 Geoblacklight . logger . error "Could not reach #{@reference.endpoint}" return "Could not reach #{@reference.endpoint}" else return response . body end end
Handles metadata and returns the retrieved metadata or an error message if
something went wrong
Handles metadata and returns the retrieved metadata or an error message if something went wrong
returned metadata string
returned metadata string
String