Sha256: ab068b3c1aedabc3e56c248868d2c3abd92e07710feb4c1be917867738ab0f61
Contents?: true
Size: 404 Bytes
Versions: 78
Compression:
Stored size: 404 Bytes
Contents
module ActiveFedora::Core class FedoraIdTranslator SLASH = '/'.freeze def self.call(id) id = URI.escape(id, '[]'.freeze) id = "/#{id}" unless id.start_with? SLASH unless ActiveFedora.fedora.base_path == SLASH || id.start_with?("#{ActiveFedora.fedora.base_path}/") id = ActiveFedora.fedora.base_path + id end ActiveFedora.fedora.host + id end end end
Version data entries
78 entries across 78 versions & 1 rubygems