Class: FAIRChampionHarvester::Handle
- Inherits:
-
Object
- Object
- FAIRChampionHarvester::Handle
- Defined in:
- lib/handle.rb
Class Method Summary collapse
Class Method Details
.resolve_handle(guid, meta) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/handle.rb', line 3 def self.resolve_handle(guid, ) type, url = Core.convertToURL(guid) .guidtype = type if .guidtype.nil? .comments << "INFO: Found a non-DOI Handle.\n" .comments << "INFO: Attempting to resolve #{url} using HTTP Headers #{FAIRChampionHarvester::Utils::AcceptHeader}.\n" FAIRChampionHarvester::Uri.resolve_uri(url, ) # meta.comments << "INFO: Attempting to resolve http://hdl.handle.net/#{guid} using HTTP Headers #{{"Accept" => "*/*"}.to_s}.\n" # FAIRChampionHarvester::Utils::resolve_url("http://hdl.handle.net/#{guid}", meta, false, {"Accept" => "*/*"}) end |