Releases: collectionspace/collectionspace-mapper
Releases · collectionspace/collectionspace-mapper
v1.2.0
Adds Mapper::Response.terms
attribute/method, which contains Array of Hashes. There is one Hash per authority or vocabulary term in the record. The Hash includes:
:category
-- :authority or :vocabulary:type
-- vocabularies, personauthorities, etc.:subtype
-- the individual vocabulary name (e.g. languages) or authority vocabulary name (e.g. ulan_pa):value
-- string value:found
-- whether term was found in cache (and/or if configured, search of the CollectionSpace instance). true = term exists in instance already; false = term does not exist in instance.
Mapper::DataHandler.process(data)
returns a Mapper::Response
, so you now have .terms
available to use on the result of the process
method.
Resolves #65