Method: ContentDm::Mapper.from

Defined in:
lib/contentdm/mapper.rb

.from(uri, collection) ⇒ Object

Returns the appropriate Mapper for the given collection at the specified base URI. If it has not been initialized or the collection does not exist, returns nil.



162
163
164
165
166
167
168
169
# File 'lib/contentdm/mapper.rb', line 162

def from(uri, collection)
  if @@auto_init and (collection != 'DC_MAPPING')
    unless self.mapped?(uri, collection)
      self.init_map(uri, collection)
    end
  end
  @@maps[self.signature(uri,collection)]
end