diff --git a/collectionspace-mapper.gemspec b/collectionspace-mapper.gemspec index f400dac4..1c143924 100644 --- a/collectionspace-mapper.gemspec +++ b/collectionspace-mapper.gemspec @@ -15,7 +15,7 @@ Gem::Specification.new do |spec| spec.license = 'MIT' spec.required_ruby_version = '>= 2.7.4' - + # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host' # to allow pushing to a single host or delete this section to allow pushing to any host. if spec.respond_to?(:metadata) @@ -53,6 +53,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rubocop', '~> 1.18.3' # Uncomment these if you need to use the scripts in utils/benchmarking - #spec.add_development_dependency 'ruby-prof', '~> 1.4.3' - #spec.add_development_dependency 'time_up', '~> 0.0.7' + # spec.add_development_dependency 'ruby-prof', '~> 1.4.3' + # spec.add_development_dependency 'time_up', '~> 0.0.7' end diff --git a/lib/collectionspace/mapper/config.rb b/lib/collectionspace/mapper/config.rb index 361de03d..2c49dee0 100644 --- a/lib/collectionspace/mapper/config.rb +++ b/lib/collectionspace/mapper/config.rb @@ -10,8 +10,8 @@ module Mapper # :reek:InstanceVariableAssumption - instance variables are set during initialization class Config attr_reader :delimiter, :subgroup_delimiter, :response_mode, :strip_id_values, :multiple_recs_found, :force_defaults, - :check_record_status, :check_terms, :date_format, :two_digit_year_handling, :transforms, :default_values, - :record_type + :check_record_status, :check_terms, :date_format, :two_digit_year_handling, :transforms, :default_values, + :record_type # todo: move default config in here include Tools::Symbolizable diff --git a/lib/collectionspace/mapper/data_handler.rb b/lib/collectionspace/mapper/data_handler.rb index 6b3eecc6..d4ee80ad 100644 --- a/lib/collectionspace/mapper/data_handler.rb +++ b/lib/collectionspace/mapper/data_handler.rb @@ -186,7 +186,7 @@ def set_record_status(response) status = searchresult[:status] response.record_status = status return if status == :new - + response.csid = searchresult[:csid] response.uri = searchresult[:uri] response.refname = searchresult[:refname] diff --git a/lib/collectionspace/mapper/data_prepper.rb b/lib/collectionspace/mapper/data_prepper.rb index e5f986d3..cf2ab421 100644 --- a/lib/collectionspace/mapper/data_prepper.rb +++ b/lib/collectionspace/mapper/data_prepper.rb @@ -117,7 +117,7 @@ def do_non_group_splits(xphash) next if data.nil? || data.empty? @response.split_data[column] = non_group_splitter(mapping, data) - #mapping.repeats == 'y' ? CollectionSpace::Mapper::SimpleSplitter.new(data, config).result : [data.strip] + # mapping.repeats == 'y' ? CollectionSpace::Mapper::SimpleSplitter.new(data, config).result : [data.strip] end end @@ -153,7 +153,7 @@ def do_subgroup_splits(xphash) @response.split_data[column] = CollectionSpace::Mapper::SubgroupSplitter.new(data, config).result end end - + def do_transforms(xphash) splitdata = @response.split_data targetdata = @response.transformed_data @@ -255,10 +255,10 @@ def structured_date_transform(data) @cache, @handler.mapper.batchconfig).mappable else - d.map{ |v| CollectionSpace::Mapper::Tools::Dates::CspaceDate.new(v, - @client, - @cache, - @handler.mapper.batchconfig).mappable } + d.map do |v| CollectionSpace::Mapper::Tools::Dates::CspaceDate.new(v, + @client, + @cache, + @handler.mapper.batchconfig).mappable end end end end @@ -271,10 +271,10 @@ def unstructured_date_transform(data) @cache, @handler.mapper.batchconfig).stamp else - d.map{ |v| CollectionSpace::Mapper::Tools::Dates::CspaceDate.new(v, - @client, - @cache, - @handler.mapper.batchconfig).stamp } + d.map do |v| CollectionSpace::Mapper::Tools::Dates::CspaceDate.new(v, + @client, + @cache, + @handler.mapper.batchconfig).stamp end end end end diff --git a/lib/collectionspace/mapper/non_hierarchical_relationship_prepper.rb b/lib/collectionspace/mapper/non_hierarchical_relationship_prepper.rb index 88ac98ea..72925f0f 100644 --- a/lib/collectionspace/mapper/non_hierarchical_relationship_prepper.rb +++ b/lib/collectionspace/mapper/non_hierarchical_relationship_prepper.rb @@ -70,7 +70,7 @@ def get_rec_csid(id, type) instance_variable_set(:@type, type) obj_csid(id, type) end - + def transform_terms %w[item1_id item2_id].each_with_index do |field, i| transformed = @response.split_data[field].map{ |id| get_rec_csid(id, @types[i]) } diff --git a/lib/collectionspace/mapper/term_handler.rb b/lib/collectionspace/mapper/term_handler.rb index 8e970e3a..78477d80 100644 --- a/lib/collectionspace/mapper/term_handler.rb +++ b/lib/collectionspace/mapper/term_handler.rb @@ -58,7 +58,6 @@ def handle_term(val) field: column } - if in_cache?(val) refname_urn = cached_term(val, :refname) if refname_urn @@ -110,7 +109,7 @@ def add_new_unknown_term(val, term_report) def add_known_unknown_term(val, term_report) refname_url = cached_term(val, :refname, 'unknownvalue', "#{type}/#{subtype}") - #refname_url = @cache.get('unknownvalue', type_subtype, val)[:refname] + # refname_url = @cache.get('unknownvalue', type_subtype, val)[:refname] refname_obj = CollectionSpace::Mapper::Tools::RefName.new(urn: refname_url) @terms << term_report.merge({found: false, refname: refname_obj}) add_missing_record_error('term', val) diff --git a/lib/collectionspace/mapper/term_searchable.rb b/lib/collectionspace/mapper/term_searchable.rb index 424c914d..beb9f969 100644 --- a/lib/collectionspace/mapper/term_searchable.rb +++ b/lib/collectionspace/mapper/term_searchable.rb @@ -19,7 +19,7 @@ def cached_as_unknown?(val) end private def type_subtype - "#{type}/#{subtype}" + "#{type}/#{subtype}" end # returns refName of cached term @@ -32,11 +32,11 @@ def cached_term(val, return_key = :refname, termtype = type, termsubtype = subty end private def convert_cached_value(cache_response) - return cache_response if cache_response.is_a?(Hash) + return cache_response if cache_response.is_a?(Hash) - instance_eval(cache_response) + instance_eval(cache_response) end - + # returns refName of searched (term) def searched_term(val, return_key = :refname) response = term_search_response(val) @@ -44,50 +44,49 @@ def searched_term(val, return_key = :refname) rec = rec_from_response('term', val, response) return nil unless rec - cache_value = { refname: rec['refName'], csid: rec['csid'] } + cache_value = {refname: rec['refName'], csid: rec['csid']} @cache.put(type, subtype, val, cache_value) cache_value[return_key] end private def case_swap(string) - string.match?(/[A-Z]/) ? string.downcase : string.capitalize + string.match?(/[A-Z]/) ? string.downcase : string.capitalize end - private def term_search_response(val) - as_is = get_term_response(val) - return as_is if term_response_usable?(as_is) + as_is = get_term_response(val) + return as_is if term_response_usable?(as_is) - get_term_response(case_swap(val)) + get_term_response(case_swap(val)) end - + private def get_term_response(val) - response = @client.find( - type: type, - subtype: subtype, - value: val, - field: search_field - ) - rescue StandardError => e - puts e.message - nil - else - parse_response(response) + response = @client.find( + type: type, + subtype: subtype, + value: val, + field: search_field + ) + rescue StandardError => e + puts e.message + nil + else + parse_response(response) end private def parse_response(response) - parsed = response.parsed['abstract_common_list'] - rescue StandardError => e - puts e.message - nil - else - parsed + parsed = response.parsed['abstract_common_list'] + rescue StandardError => e + puts e.message + nil + else + parsed end - + def obj_csid(objnum, type) cached = @cache.get(type, '', objnum, search: false) return convert_cached_value(cached)[:csid] if cached - + lookup_obj_or_procedure_csid(objnum, type) end @@ -99,7 +98,7 @@ def lookup_obj_or_procedure_csid(objnum, type) return nil unless rec csid = rec['csid'] - @cache.put(type, '', objnum, { refname: rec['refName'], csid: csid } ) + @cache.put(type, '', objnum, {refname: rec['refName'], csid: csid} ) csid else errors << { @@ -122,76 +121,76 @@ def term_csid(term) end private def term_response_usable?(response) - ct = response_item_count(response) - return false unless ct - return false if ct == 0 + ct = response_item_count(response) + return false unless ct + return false if ct == 0 - true + true end - + private def response_item_count(response) - ct = response.dig('totalItems') - return ct.to_i if ct + ct = response.dig('totalItems') + return ct.to_i if ct - nil + nil end private def add_missing_record_error(category, val) - datacolumn = column ||= 'data' - - errors << { - category: "no_records_found_for_#{category}".to_sym, - field: '', - type: '', - subtype: '', - value: val, - message: "#{val} (#{type_subtype} in #{datacolumn} column)" - } + datacolumn = column ||= 'data' + + errors << { + category: "no_records_found_for_#{category}".to_sym, + field: '', + type: '', + subtype: '', + value: val, + message: "#{val} (#{type_subtype} in #{datacolumn} column)" + } end - + private def rec_from_response(category, val, response) - term_ct = response_item_count(response) - - unless term_ct - errors << { - category: "unsuccessful_csid_lookup_for_#{category}".to_sym, - field: '', - type: type, - subtype: subtype, - value: val, - message: "Problem with search for #{val}" - } - return nil - end - - case term_ct - when 0 - add_missing_record_error(category, val) - rec = nil - when 1 - rec = response['list_item'] - else - rec = response['list_item'][0] - using_uri = "#{@client.config.base_uri}#{rec['uri']}" - warnings << { - category: "multiple_records_found_for_#{category}".to_sym, - field: '', - type: type, - subtype: subtype, - value: val, - message: "#{term_ct} records found. Using #{using_uri}" - } - end - - rec + term_ct = response_item_count(response) + + unless term_ct + errors << { + category: "unsuccessful_csid_lookup_for_#{category}".to_sym, + field: '', + type: type, + subtype: subtype, + value: val, + message: "Problem with search for #{val}" + } + return nil + end + + case term_ct + when 0 + add_missing_record_error(category, val) + rec = nil + when 1 + rec = response['list_item'] + else + rec = response['list_item'][0] + using_uri = "#{@client.config.base_uri}#{rec['uri']}" + warnings << { + category: "multiple_records_found_for_#{category}".to_sym, + field: '', + type: type, + subtype: subtype, + value: val, + message: "#{term_ct} records found. Using #{using_uri}" + } + end + + rec end - + private def search_field - field = CollectionSpace::Service.get(type: type)[:term] - rescue StandardError => e - puts e.message - else - field + field = CollectionSpace::Service.get(type: type)[:term] + rescue StandardError => e + puts e.message + else + field end # added toward refactoring that isn't done yet diff --git a/lib/collectionspace/mapper/tools/record_status_service.rb b/lib/collectionspace/mapper/tools/record_status_service.rb index 07158f51..581b9d8b 100644 --- a/lib/collectionspace/mapper/tools/record_status_service.rb +++ b/lib/collectionspace/mapper/tools/record_status_service.rb @@ -46,14 +46,14 @@ def lookup(value) item = response.parsed[@response_top][@response_nested].first num_found = response.parsed[@response_top][@response_nested].length - reportable_result(item).merge({ multiple_recs_found: num_found}) + reportable_result(item).merge({multiple_recs_found: num_found}) end end private def reportable_result(item = nil) - return { status: :new } unless item + return {status: :new} unless item { status: :existing, @@ -62,7 +62,7 @@ def reportable_result(item = nil) refname: item['refName'] } end - + def lookup_non_relationship(value) @client.find( type: @mapper.config.service_path, @@ -77,7 +77,7 @@ def use_first? false end - + def count_results(response) unless response.result.success? raise CollectionSpace::RequestError, response.result.body diff --git a/lib/collectionspace/mapper/value_transformer.rb b/lib/collectionspace/mapper/value_transformer.rb index 01994d61..c2ed8216 100644 --- a/lib/collectionspace/mapper/value_transformer.rb +++ b/lib/collectionspace/mapper/value_transformer.rb @@ -31,14 +31,14 @@ def initialize(value, transforms, prepper) 't' => 'true', 'f' => 'false' } - + def process_replacements return if @value.empty? @transforms[:replacements].each do |rule| find = rule[:find] replace = rule[:replace] - + case rule[:type] when :plain @value = @value.gsub(find, replace) @@ -69,7 +69,7 @@ def process_boolean @value = BOOLEAN_LOOKUP[chkval] return end - + @value = 'false' @warnings << { category: :boolean_value_transform, diff --git a/lib/collectionspace/mapper/xml_template.rb b/lib/collectionspace/mapper/xml_template.rb index 18fbf616..132a1736 100644 --- a/lib/collectionspace/mapper/xml_template.rb +++ b/lib/collectionspace/mapper/xml_template.rb @@ -36,9 +36,9 @@ def create_record_namespace_nodes(xml) def process_group(xml, grouppath) @docstructure.dig(*grouppath).keys.each do |key| thispath = grouppath.clone.append(key) - xml.send(key){ + xml.send(key) do process_group(xml, thispath) - } + end end end end diff --git a/spec/anthro_helpers.rb b/spec/anthro_helpers.rb index a426de04..698158ad 100644 --- a/spec/anthro_helpers.rb +++ b/spec/anthro_helpers.rb @@ -27,159 +27,159 @@ def anthro_object_mapper def populate_anthro(cache) terms = [ ['conceptauthorities', 'archculture', 'Blackfoot', - { refname: "urn:cspace:anthro.collectionspace.org:conceptauthorities:name(archculture):item:name(Blackfoot1576172504869)'Blackfoot'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:conceptauthorities:name(archculture):item:name(Blackfoot1576172504869)'Blackfoot'", csid: '1111-2222-3333-4444'}], ['conceptauthorities', 'concept', 'Birds', - { refname: "urn:cspace:anthro.collectionspace.org:conceptauthorities:name(concept):item:name(Birds918181)'Birds'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:conceptauthorities:name(concept):item:name(Birds918181)'Birds'", csid: '1111-2222-3333-4444'}], ['conceptauthorities', 'ethculture', 'Batak', - { refname: "urn:cspace:anthro.collectionspace.org:conceptauthorities:name(ethculture):item:name(Batak1576172496916)'Batak'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:conceptauthorities:name(ethculture):item:name(Batak1576172496916)'Batak'", csid: '1111-2222-3333-4444'}], ['conceptauthorities', 'ethculture', 'Got', - { refname: "urn:cspace:anthro.collectionspace.org:conceptauthorities:name(ethculture):item:name(Got1599824429903)'Got'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:conceptauthorities:name(ethculture):item:name(Got1599824429903)'Got'", csid: '1111-2222-3333-4444'}], ['conceptauthorities', 'ethculture', 'Hero', - { refname: "urn:cspace:anthro.collectionspace.org:conceptauthorities:name(ethculture):item:name(Hero1599824418804)'Hero'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:conceptauthorities:name(ethculture):item:name(Hero1599824418804)'Hero'", csid: '1111-2222-3333-4444'}], ['conceptauthorities', 'material_ca', 'Feathers', - { refname: "urn:cspace:anthro.collectionspace.org:conceptauthorities:name(material_ca):item:name(Feathers918181)'Feathers'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:conceptauthorities:name(material_ca):item:name(Feathers918181)'Feathers'", csid: '1111-2222-3333-4444'}], ['orgauthorities', 'organization', 'Hola', - { refname: "urn:cspace:anthro.collectionspace.org:orgauthorities:name(organization):item:name(Hola1599824351945)'Hola'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:orgauthorities:name(organization):item:name(Hola1599824351945)'Hola'", csid: '1111-2222-3333-4444'}], ['orgauthorities', 'organization', 'Organization 1', - { refname: "urn:cspace:anthro.collectionspace.org:orgauthorities:name(organization):item:name(Organization11587136583004)'Organization 1'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:orgauthorities:name(organization):item:name(Organization11587136583004)'Organization 1'", csid: '1111-2222-3333-4444'}], ['orgauthorities', 'organization', 'chores', - { refname: "urn:cspace:anthro.collectionspace.org:orgauthorities:name(organization):item:name(chores1599824370125)'chores'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:orgauthorities:name(organization):item:name(chores1599824370125)'chores'", csid: '1111-2222-3333-4444'}], ['personauthorities', 'person', 'Ann Analyst', - { refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(AnnAnalyst1594848799340)'Ann Analyst'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(AnnAnalyst1594848799340)'Ann Analyst'", csid: '1111-2222-3333-4444'}], ['personauthorities', 'person', 'Gabriel Solares', - { refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(GabrielSolares1594848906847)'Gabriel Solares'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(GabrielSolares1594848906847)'Gabriel Solares'", csid: '1111-2222-3333-4444'}], ['personauthorities', 'person', 'Tegla', - { refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(Tegla1599824325923)'Tegla'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(Tegla1599824325923)'Tegla'", csid: '1111-2222-3333-4444'}], ['personauthorities', 'person', 'Tom', - { refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(Tom1599824331955)'Tom'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(Tom1599824331955)'Tom'", csid: '1111-2222-3333-4444'}], ['placeauthorities', 'place', 'Early', - { refname: "urn:cspace:anthro.collectionspace.org:placeauthorities:name(place):item:name(Early1599824413345)'Early'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:placeauthorities:name(place):item:name(Early1599824413345)'Early'", csid: '1111-2222-3333-4444'}], ['placeauthorities', 'place', 'Local', - { refname: "urn:cspace:anthro.collectionspace.org:placeauthorities:name(place):item:name(Local1599824385298)'Local'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:placeauthorities:name(place):item:name(Local1599824385298)'Local'", csid: '1111-2222-3333-4444'}], ['placeauthorities', 'place', 'York County, Pennsylvania', - { refname: "urn:cspace:anthro.collectionspace.org:placeauthorities:name(place):item:name(YorkCountyPennsylvania)'York County, Pennsylvania'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:placeauthorities:name(place):item:name(YorkCountyPennsylvania)'York County, Pennsylvania'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'agerange', 'adolescent 26-75%', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(agerange):item:name(adolescent_26_75)'adolescent 26-75%'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(agerange):item:name(adolescent_26_75)'adolescent 26-75%'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'agerange', 'adult 0-25%', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(agerange):item:name(adult_0_25)'adult 0-25%'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(agerange):item:name(adult_0_25)'adult 0-25%'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'annotationtype', 'image made', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(annotationtype):item:name(image_made)'image made'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(annotationtype):item:name(image_made)'image made'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'annotationtype', 'type', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(annotationtype):item:name(type)'type'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(annotationtype):item:name(type)'type'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'behrensmeyer', '0 - no cracking or flaking on bone surface', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(behrensmeyer):item:name(0)'0 - no cracking or flaking on bone surface'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(behrensmeyer):item:name(0)'0 - no cracking or flaking on bone surface'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'behrensmeyer', '1 - longitudinal and/or mosaic cracking present on surface', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(behrensmeyer):item:name(1)'1 - longitudinal and/or mosaic cracking present on surface'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(behrensmeyer):item:name(1)'1 - longitudinal and/or mosaic cracking present on surface'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'behrensmeyer', '2 - longitudinal cracks, exfoliation on surface', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(behrensmeyer):item:name(2)'2 - longitudinal cracks, exfoliation on surface'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(behrensmeyer):item:name(2)'2 - longitudinal cracks, exfoliation on surface'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'behrensmeyer', '3 - fibrous texture, extensive exfoliation', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(behrensmeyer):item:name(3)'3 - fibrous texture, extensive exfoliation'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(behrensmeyer):item:name(3)'3 - fibrous texture, extensive exfoliation'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'behrensmeyer', '5 - bone crumbling in situ, large splinters', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(behrensmeyer):item:name(5)'5 - bone crumbling in situ, large splinters'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(behrensmeyer):item:name(5)'5 - bone crumbling in situ, large splinters'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'bodyside', 'midline', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(bodyside):item:name(midline)'midline'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(bodyside):item:name(midline)'midline'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'dateera', 'CE', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'inventorystatus', 'accessioned', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(inventorystatus):item:name(accessioned)'accessioned'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(inventorystatus):item:name(accessioned)'accessioned'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'inventorystatus', 'unknown', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(inventorystatus):item:name(unknown)'unknown'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(inventorystatus):item:name(unknown)'unknown'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'languages', 'Chinese', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(languages):item:name(zho)'Chinese'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(languages):item:name(zho)'Chinese'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'languages', 'English', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(languages):item:name(eng)'English'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(languages):item:name(eng)'English'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'languages', 'French', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(languages):item:name(fra)'French'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(languages):item:name(fra)'French'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'languages', 'German', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(languages):item:name(deu)'German'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(languages):item:name(deu)'German'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'languages', 'Spanish', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(languages):item:name(spa)'Spanish'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(languages):item:name(spa)'Spanish'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'limitationlevel', 'recommendation', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(limitationlevel):item:name(recommendation)'recommendation'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(limitationlevel):item:name(recommendation)'recommendation'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'limitationlevel', 'restriction', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(limitationlevel):item:name(restriction)'restriction'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(limitationlevel):item:name(restriction)'restriction'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'limitationtype', 'lending', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(limitationtype):item:name(lending)'lending'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(limitationtype):item:name(lending)'lending'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'limitationtype', 'publication', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(limitationtype):item:name(publication)'publication'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(limitationtype):item:name(publication)'publication'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'mortuarytreatment', 'burned/unburned bone mixture', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(mortuarytreatment):item:name(burnedunburnedbonemixture)'burned/unburned bone mixture'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(mortuarytreatment):item:name(burnedunburnedbonemixture)'burned/unburned bone mixture'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'mortuarytreatment', 'enbalmed', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(mortuarytreatment):item:name(enbalmed)'enbalmed'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(mortuarytreatment):item:name(enbalmed)'enbalmed'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'mortuarytreatment', 'excarnated', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(mortuarytreatment):item:name(excarnated)'excarnated'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(mortuarytreatment):item:name(excarnated)'excarnated'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'mortuarytreatment', 'mummified', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(mortuarytreatment):item:name(mummified)'mummified'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(mortuarytreatment):item:name(mummified)'mummified'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'nagpracategory', 'not subject to NAGPRA', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(nagpracategory):item:name(nonNagpra)'not subject to NAGPRA'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(nagpracategory):item:name(nonNagpra)'not subject to NAGPRA'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'nagpracategory', 'subject to NAGPRA (unspec.)', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(nagpracategory):item:name(subjectToNAGPRA)'subject to NAGPRA (unspec.)'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(nagpracategory):item:name(subjectToNAGPRA)'subject to NAGPRA (unspec.)'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'nagpraclaimtype', 'affiliated human skeletal remains (HSR)', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(nagpraclaimtype):item:name(affiliatedHsr)'affiliated human skeletal remains (HSR)'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(nagpraclaimtype):item:name(affiliatedHsr)'affiliated human skeletal remains (HSR)'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'nagpraclaimtype', 'needs further research', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(nagpraclaimtype):item:name(needsFurtherResearch)'needs further research'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(nagpraclaimtype):item:name(needsFurtherResearch)'needs further research'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'nagpraclaimtype', 'not subject to NAGPRA', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(nagpraclaimtype):item:name(nonNagpra)'not subject to NAGPRA'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(nagpraclaimtype):item:name(nonNagpra)'not subject to NAGPRA'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'nagpraclaimtype', 'object of cultural patrimony', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(nagpraclaimtype):item:name(objectOfCulturalPatrimony)'object of cultural patrimony'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(nagpraclaimtype):item:name(objectOfCulturalPatrimony)'object of cultural patrimony'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'nagpraclaimtype', 'unassociated funerary object (UFO)', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(nagpraclaimtype):item:name(ufo)'unassociated funerary object (UFO)'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(nagpraclaimtype):item:name(ufo)'unassociated funerary object (UFO)'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'prodpeoplerole', 'designed after', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(prodpeoplerole):item:name(designedAfter)'designed after'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(prodpeoplerole):item:name(designedAfter)'designed after'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'prodpeoplerole', 'traditional makers', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(prodpeoplerole):item:name(traditionalMakers)'traditional makers'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(prodpeoplerole):item:name(traditionalMakers)'traditional makers'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'publishto', 'DPLA', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(publishto):item:name(dpla)'DPLA'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(publishto):item:name(dpla)'DPLA'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'publishto', 'Omeka', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(publishto):item:name(omeka)'Omeka'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(publishto):item:name(omeka)'Omeka'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'cranialdeformationcategory', 'other (describe)', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(cranialdeformationcategory):item:name(other)'other (describe)'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(cranialdeformationcategory):item:name(other)'other (describe)'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'cranialdeformationcategory', 'tabular', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(cranialdeformationcategory):item:name(tabular)'tabular'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(cranialdeformationcategory):item:name(tabular)'tabular'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'cranialdeformationcategory', 'circumferential', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(cranialdeformationcategory):item:name(circumferential)'circumferential'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(cranialdeformationcategory):item:name(circumferential)'circumferential'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'trepanationcertainty', 'possible trepanation', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(trepanationcertainty):item:name(possible)'possible trepanation'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(trepanationcertainty):item:name(possible)'possible trepanation'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'trepanationcertainty', 'clear evidence of trepanation', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(trepanationcertainty):item:name(clear)'clear evidence of trepanation'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(trepanationcertainty):item:name(clear)'clear evidence of trepanation'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'trepanationtechnique', 'grooving', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(trepanationtechnique):item:name(grooving)'grooving'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(trepanationtechnique):item:name(grooving)'grooving'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'trepanationtechnique', 'grooving', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(trepanationtechnique):item:name(grooving)'grooving'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(trepanationtechnique):item:name(grooving)'grooving'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'trepanationhealing', 'possible healing', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(trepanationhealing):item:name(possible)'possible healing'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(trepanationhealing):item:name(possible)'possible healing'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'trepanationhealing', 'no healing', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(trepanationhealing):item:name(none)'no healing'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(trepanationhealing):item:name(none)'no healing'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'trepanationhealing', 'definite evidence for healing', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(trepanationhealing):item:name(definite)'definite evidence for healing'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(trepanationhealing):item:name(definite)'definite evidence for healing'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'mortuarytreatment', 'excarnated', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(mortuarytreatment):item:name(excarnated)'excarnated'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(mortuarytreatment):item:name(excarnated)'excarnated'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'behrensmeyer', '3 - fibrous texture, extensive exfoliation', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(behrensmeyer):item:name(3)'3 - fibrous texture, extensive exfoliation'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(behrensmeyer):item:name(3)'3 - fibrous texture, extensive exfoliation'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'dateera', 'CE', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'dateera', 'CE', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'dateera', 'CE', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'dateera', 'CE', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'osteocompleteness', 'mandible only', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(osteocompleteness):item:name(mandible)'mandible only'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(osteocompleteness):item:name(mandible)'mandible only'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'behrensmeyer', - '4 - coarsely fibrous texture, splinters of bone loose on the surface, open cracks', { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(behrensmeyer):item:name(4)'4 - coarsely fibrous texture, splinters of bone loose on the surface, open cracks'", csid: '1111-2222-3333-4444' }], + '4 - coarsely fibrous texture, splinters of bone loose on the surface, open cracks', {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(behrensmeyer):item:name(4)'4 - coarsely fibrous texture, splinters of bone loose on the surface, open cracks'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'dentitionscore', 'not applicable', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(dentitionscore):item:name(notapplicable)'not applicable'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(dentitionscore):item:name(notapplicable)'not applicable'", csid: '1111-2222-3333-4444'}], ['personauthorities', 'person', 'sniper', - { refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(sniper1599821165616)'sniper'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(sniper1599821165616)'sniper'", csid: '1111-2222-3333-4444'}], ['personauthorities', 'person', 'fullclip', - { refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(fullclip1599821193344)'fullclip'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(fullclip1599821193344)'fullclip'", csid: '1111-2222-3333-4444'}], ['personauthorities', 'person', 'fullclip', - { refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(fullclip1599821140041)'fullclip'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(fullclip1599821140041)'fullclip'", csid: '1111-2222-3333-4444'}], ['personauthorities', 'person', 'praya', - { refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(praya1599821095120)'praya'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(praya1599821095120)'praya'", csid: '1111-2222-3333-4444'}], ['personauthorities', 'person', 'jijoe', - { refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(jijoe1599821246989)'jijoe'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(jijoe1599821246989)'jijoe'", csid: '1111-2222-3333-4444'}], ] populate(cache, terms) end diff --git a/spec/bonsai_helpers.rb b/spec/bonsai_helpers.rb index dc81187a..0a836d98 100644 --- a/spec/bonsai_helpers.rb +++ b/spec/bonsai_helpers.rb @@ -22,27 +22,27 @@ def bonsai_cache def populate_bonsai(cache) terms = [ ['orgauthorities', 'organization', 'Bonsai Museum', - { refname: "urn:cspace:bonsai.collectionspace.org:orgauthorities:name(organization):item:name(BonsaiMuseum1598919439027)'Bonsai Museum'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:bonsai.collectionspace.org:orgauthorities:name(organization):item:name(BonsaiMuseum1598919439027)'Bonsai Museum'", csid: '1111-2222-3333-4444'}], ['orgauthorities', 'organization', 'Bonsai Store', - { refname: "urn:cspace:bonsai.collectionspace.org:orgauthorities:name(organization):item:name(BonsaiStore1598920297843)'Bonsai Store'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:bonsai.collectionspace.org:orgauthorities:name(organization):item:name(BonsaiStore1598920297843)'Bonsai Store'", csid: '1111-2222-3333-4444'}], ['personauthorities', 'person', 'Ann Authorizer', - { refname: "urn:cspace:bonsai.collectionspace.org:personauthorities:name(person):item:name(AnnAuthorizer1598919551068)'Ann Authorizer'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:bonsai.collectionspace.org:personauthorities:name(person):item:name(AnnAuthorizer1598919551068)'Ann Authorizer'", csid: '1111-2222-3333-4444'}], ['personauthorities', 'person', 'Debbie Depositor', - { refname: "urn:cspace:bonsai.collectionspace.org:personauthorities:name(person):item:name(DebbieDepositor1598919493867)'Debbie Depositor'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:bonsai.collectionspace.org:personauthorities:name(person):item:name(DebbieDepositor1598919493867)'Debbie Depositor'", csid: '1111-2222-3333-4444'}], ['personauthorities', 'person', 'Priscilla Plantsale', - { refname: "urn:cspace:bonsai.collectionspace.org:personauthorities:name(person):item:name(PriscillaPlantsale1598920259864)'Priscilla Plantsale'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:bonsai.collectionspace.org:personauthorities:name(person):item:name(PriscillaPlantsale1598920259864)'Priscilla Plantsale'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'currency', 'Canadian Dollar', - { refname: "urn:cspace:bonsai.collectionspace.org:vocabularies:name(currency):item:name(CAD)'Canadian Dollar'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:bonsai.collectionspace.org:vocabularies:name(currency):item:name(CAD)'Canadian Dollar'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'dateera', 'CE', - { refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:anthro.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'deaccessionapprovalgroup', 'collection committee', - { refname: "urn:cspace:bonsai.collectionspace.org:vocabularies:name(deaccessionapprovalgroup):item:name(collection_committee)'collection committee'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:bonsai.collectionspace.org:vocabularies:name(deaccessionapprovalgroup):item:name(collection_committee)'collection committee'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'deaccessionapprovalstatus', 'approved', - { refname: "urn:cspace:bonsai.collectionspace.org:vocabularies:name(deaccessionapprovalstatus):item:name(approved)'approved'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:bonsai.collectionspace.org:vocabularies:name(deaccessionapprovalstatus):item:name(approved)'approved'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'deaccessionapprovalstatus', 'not required', - { refname: "urn:cspace:bonsai.collectionspace.org:vocabularies:name(deaccessionapprovalstatus):item:name(not_required)'not required'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:bonsai.collectionspace.org:vocabularies:name(deaccessionapprovalstatus):item:name(not_required)'not required'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'disposalmethod', 'public auction', - { refname: "urn:cspace:bonsai.collectionspace.org:vocabularies:name(disposalmethod):item:name(public_auction)'public auction'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:bonsai.collectionspace.org:vocabularies:name(disposalmethod):item:name(public_auction)'public auction'", csid: '1111-2222-3333-4444'}], ] populate(cache, terms) end diff --git a/spec/botgarden_helpers.rb b/spec/botgarden_helpers.rb index 73f901bd..f7aef6e8 100644 --- a/spec/botgarden_helpers.rb +++ b/spec/botgarden_helpers.rb @@ -22,61 +22,61 @@ def botgarden_cache def populate_botgarden(cache) terms = [ ['citationauthorities', 'citation', 'FNA Volume 19', - { refname: "urn:cspace:botgarden.collectionspace.org:citationauthorities:name(citation):item:name(FNAVolume191599238760383)'FNA Volume 19'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:citationauthorities:name(citation):item:name(FNAVolume191599238760383)'FNA Volume 19'", csid: '1111-2222-3333-4444'}], ['citationauthorities', 'citation', 'Sp. Pl. 2: 899. 1753', - { refname: "urn:cspace:botgarden.collectionspace.org:citationauthorities:name(citation):item:name(SpPl289917531599238184211)'Sp. Pl. 2: 899. 1753'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:citationauthorities:name(citation):item:name(SpPl289917531599238184211)'Sp. Pl. 2: 899. 1753'", csid: '1111-2222-3333-4444'}], ['citationauthorities', 'worldcat', 'Bull. Torrey Bot. Club', - { refname: "urn:cspace:botgarden.collectionspace.org:citationauthorities:name(worldcat):item:name(BullTorreyBotClub331599245358364)'Bull. Torrey Bot. Club 33'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:citationauthorities:name(worldcat):item:name(BullTorreyBotClub331599245358364)'Bull. Torrey Bot. Club 33'", csid: '1111-2222-3333-4444'}], ['conceptauthorities', 'concept', 'Official', - { refname: "urn:cspace:botgarden.collectionspace.org:conceptauthorities:name(concept):item:name(Official1599737276242)'Official'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:conceptauthorities:name(concept):item:name(Official1599737276242)'Official'", csid: '1111-2222-3333-4444'}], ['locationauthorities', 'location', 'Corner', - { refname: "urn:cspace:botgarden.collectionspace.org:locationauthorities:name(location):item:name(Corner1599737289184)'Corner'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:locationauthorities:name(location):item:name(Corner1599737289184)'Corner'", csid: '1111-2222-3333-4444'}], ['orgauthorities', 'organization', 'FVA', - { refname: "urn:cspace:botgarden.collectionspace.org:orgauthorities:name(organization):item:name(FVA1599246022216)'FVA'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:orgauthorities:name(organization):item:name(FVA1599246022216)'FVA'", csid: '1111-2222-3333-4444'}], ['personauthorities', 'person', 'Linnaeus, Carl', - { refname: "urn:cspace:botgarden.collectionspace.org:personauthorities:name(person):item:name(LinnaeusCarl1599238374086)'Linnaeus, Carl'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:personauthorities:name(person):item:name(LinnaeusCarl1599238374086)'Linnaeus, Carl'", csid: '1111-2222-3333-4444'}], ['taxonomyauthority', 'taxon', 'Domestic', - { refname: "urn:cspace:botgarden.collectionspace.org:taxonomyauthority:name(taxon):item:name(Domestic1599750187683)'Domestic'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:taxonomyauthority:name(taxon):item:name(Domestic1599750187683)'Domestic'", csid: '1111-2222-3333-4444'}], ['taxonomyauthority', 'taxon', 'Tropez', - { refname: "urn:cspace:botgarden.collectionspace.org:taxonomyauthority:name(taxon):item:name(Tropez1599750195530)'Tropez'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:taxonomyauthority:name(taxon):item:name(Tropez1599750195530)'Tropez'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'cuttingtype', 'hardwood', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(cuttingtype):item:name(hardwood)'hardwood'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(cuttingtype):item:name(hardwood)'hardwood'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'dateera', 'CE', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'durationunit', 'Days', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(durationunit):item:name(days)'Days'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(durationunit):item:name(days)'Days'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'durationunit', 'Hours', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(durationunit):item:name(hours)'Hours'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(durationunit):item:name(hours)'Hours'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'languages', 'English', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(languages):item:name(eng)'English'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(languages):item:name(eng)'English'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'languages', 'French', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(languages):item:name(fra)'French'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(languages):item:name(fra)'French'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'languages', 'Latin', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(languages):item:name(lat)'Latin'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(languages):item:name(lat)'Latin'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'potsize', '1 gal. pot', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(potsize):item:name(OneGalPot)'1 gal. pot'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(potsize):item:name(OneGalPot)'1 gal. pot'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'propActivityType', 'benlate and captan', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(propActivityType):item:name(benlateAndCaptan)'benlate and captan'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(propActivityType):item:name(benlateAndCaptan)'benlate and captan'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'propChemicals', 'benlate and physan', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(propChemicals):item:name(benlateAndPhysan)'benlate and physan'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(propChemicals):item:name(benlateAndPhysan)'benlate and physan'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'propConditions', 'glass cover', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(propConditions):item:name(glassCover)'glass cover'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(propConditions):item:name(glassCover)'glass cover'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'propHormones', 'hormone', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(propHormones):item:name(hormone)'hormone'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(propHormones):item:name(hormone)'hormone'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'propPlantType', 'bulbs', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(propPlantType):item:name(bulbs)'bulbs'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(propPlantType):item:name(bulbs)'bulbs'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'propreason', 'conservation', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(propreason):item:name(conservation)'conservation'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(propreason):item:name(conservation)'conservation'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'proptype', 'Division', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(proptype):item:name(division)'Division'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(proptype):item:name(division)'Division'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'scarstrat', 'boiling water', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(scarstrat):item:name(boilingwater)'boiling water'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(scarstrat):item:name(boilingwater)'boiling water'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'scarstrat', 'cold strat', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(scarstrat):item:name(coldstrat)'cold strat'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(scarstrat):item:name(coldstrat)'cold strat'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'taxontermflag', 'invalid', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(taxontermflag):item:name(invalid)'invalid'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(taxontermflag):item:name(invalid)'invalid'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'taxontermflag', 'valid', - { refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(taxontermflag):item:name(valid)'valid'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:botgarden.collectionspace.org:vocabularies:name(taxontermflag):item:name(valid)'valid'", csid: '1111-2222-3333-4444'}], ] populate(cache, terms) end diff --git a/spec/collectionspace/mapper/column_mapping_spec.rb b/spec/collectionspace/mapper/column_mapping_spec.rb index ad9cec41..05785faa 100644 --- a/spec/collectionspace/mapper/column_mapping_spec.rb +++ b/spec/collectionspace/mapper/column_mapping_spec.rb @@ -27,10 +27,10 @@ end describe '#fullpath' do - let(:hash) { { + let(:hash) do { namespace: 'collectionobjects_common', xpath: ['otherNumberList', 'otherNumber'], - } } + } end it 'returns full xpath to target CollectionSpace field' do expected = 'collectionobjects_common/otherNumberList/otherNumber' expect(mapping.fullpath).to eq(expected) diff --git a/spec/collectionspace/mapper/column_mappings_spec.rb b/spec/collectionspace/mapper/column_mappings_spec.rb index cbe63da9..b981d742 100644 --- a/spec/collectionspace/mapper/column_mappings_spec.rb +++ b/spec/collectionspace/mapper/column_mappings_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' RSpec.describe CollectionSpace::Mapper::ColumnMappings do - let(:mappings) { [ + let(:mappings) do [ {fieldname: 'objectNumber', transforms: {}, source_type: 'na', @@ -54,14 +54,14 @@ required: 'n'}, {datacolumn: 'otherRequired', required: 'y'} - ] } + ] end let(:recordmapper){ instance_double('CS::Mapper::RecordMapper') } let(:mapperconfig){ instance_double('CS::Mapper::RecordMapperConfig') } let(:mappingsobj){ dc = described_class.new(mappings: mappings, mapper: recordmapper) } - let(:added_field) { { + let(:added_field) do { fieldname: 'addedField', namespace: 'persons_common', data_type: 'string', @@ -70,7 +70,7 @@ repeats: 'n', in_repeating_group: 'n/a', datacolumn: 'addedfield' - } } + } end before do allow(recordmapper).to receive(:config).and_return(mapperconfig) @@ -94,7 +94,7 @@ end context 'when initialized from media RecordMapper' do - let(:mappings) { [ + let(:mappings) do [ {fieldname: 'identificationNumber', transforms: {}, source_type: 'na', @@ -119,7 +119,7 @@ opt_list_values: [], datacolumn: 'title', required: 'n'} - ] } + ] end it 'adds mediaFileURI to mappings' do allow(mapperconfig).to receive(:common_namespace).and_return('media_common') diff --git a/spec/collectionspace/mapper/column_value_spec.rb b/spec/collectionspace/mapper/column_value_spec.rb index bfe2d90a..f92760f2 100644 --- a/spec/collectionspace/mapper/column_value_spec.rb +++ b/spec/collectionspace/mapper/column_value_spec.rb @@ -6,16 +6,16 @@ let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_collectionobject.json'} let(:recmapper){ get_record_mapper_object(mapperpath, core_cache) } let(:mapping){ recmapper.mappings.lookup(colname) } - let(:colval) { described_class.new(column: colname, - value: colvalue, - recmapper: recmapper, - mapping: mapping) } + let(:colval) do described_class.new(column: colname, + value: colvalue, + recmapper: recmapper, + mapping: mapping) end describe '.create' do - let(:creator) { described_class.create(column: colname, - value: colvalue, - recmapper: recmapper, - mapping: mapping) } + let(:creator) do described_class.create(column: colname, + value: colvalue, + recmapper: recmapper, + mapping: mapping) end context 'given core collectionobject collection value' do let(:colname){ 'collection' } diff --git a/spec/collectionspace/mapper/config_spec.rb b/spec/collectionspace/mapper/config_spec.rb index 2ccfc1a0..d38b07bc 100644 --- a/spec/collectionspace/mapper/config_spec.rb +++ b/spec/collectionspace/mapper/config_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' RSpec.describe CollectionSpace::Mapper::Config do - let(:configstr) { '{ + let(:configstr) do '{ "delimiter": ";", "subgroup_delimiter": "^^", "response_mode": "verbose", @@ -29,15 +29,17 @@ "collection": "library-collection" } }' - } - let(:with_string) { described_class.new(config: configstr) } - let(:confighash) { JSON.parse(configstr) } - let(:with_hash) { described_class.new(config: confighash) } - let(:with_nothing) { described_class.new } - let(:with_array) { described_class.new(config: [2, 3]) } - let(:expected_hash) { {:delimiter=>";", :subgroup_delimiter=>"^^", :response_mode=>"verbose", :strip_id_values=>true, :multiple_recs_found=>'fail', :force_defaults=>false, :check_record_status=>true, :check_terms=>true, :date_format=>"month day year", :two_digit_year_handling=>"convert to four digit", :transforms=>{"collection"=>{:special=>["downcase_value"], :replacements=>[{:find=>" ", :replace=>"-", :type=>"plain"}]}}, :default_values=>{"publishto"=>"DPLA;Omeka", "collection"=>"library-collection"}} } - let(:invalid_response) { {response_mode: 'mouthy'} } - let(:with_invalid_response) { described_class.new(config: invalid_response) } + end + let(:with_string){ described_class.new(config: configstr) } + let(:confighash){ JSON.parse(configstr) } + let(:with_hash){ described_class.new(config: confighash) } + let(:with_nothing){ described_class.new } + let(:with_array){ described_class.new(config: [2, 3]) } + let(:expected_hash) do + {delimiter: ';', subgroup_delimiter: '^^', response_mode: 'verbose', strip_id_values: true, + multiple_recs_found: 'fail', force_defaults: false, check_record_status: true, check_terms: true, date_format: 'month day year', two_digit_year_handling: 'convert to four digit', transforms: {'collection' => {special: ['downcase_value'], replacements: [{find: ' ', replace: '-', type: 'plain'}]}}, default_values: {'publishto' => 'DPLA;Omeka', 'collection' => 'library-collection'}} end + let(:invalid_response){ {response_mode: 'mouthy'} } + let(:with_invalid_response){ described_class.new(config: invalid_response) } context 'when initialized with JSON string' do it 'is created' do diff --git a/spec/collectionspace/mapper/data_handler_spec.rb b/spec/collectionspace/mapper/data_handler_spec.rb index 645250d0..880a91a3 100644 --- a/spec/collectionspace/mapper/data_handler_spec.rb +++ b/spec/collectionspace/mapper/data_handler_spec.rb @@ -3,22 +3,22 @@ require 'spec_helper' RSpec.describe CollectionSpace::Mapper::DataHandler do - let(:client) { core_client } - let(:cache) { core_cache_search } - let(:mapperpath) { 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_collectionobject.json' } - let(:mapper) { get_json_record_mapper(mapperpath) } - let(:config) { {"delimiter": "|"} } + let(:client){ core_client } + let(:cache){ core_cache_search } + let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_collectionobject.json' } + let(:mapper){ get_json_record_mapper(mapperpath) } + let(:config){ {"delimiter": '|'} } let(:handler) do CollectionSpace::Mapper::DataHandler.new(record_mapper: mapper, client: client, cache: cache, config: config) end - + # these make services api calls to find terms not in cache context 'when config has check_terms = false', services_call: true do - let(:config) { '{"check_terms": false}' } - let(:result) { handler.process(data).terms.reject{ |t| t[:found] } } + let(:config){ '{"check_terms": false}' } + let(:result){ handler.process(data).terms.reject{ |t| t[:found] } } context 'with terms in instance but not in cache' do let(:data) do @@ -68,7 +68,6 @@ 'contentConceptAssociated' => 'Birds' # authority - not in instance, not in cache } - handler.process(data1) result = handler.process(data2).terms.select{ |t| t[:found] == false } expect(result.length).to eq(1) @@ -76,12 +75,12 @@ describe '#is_authority' do context 'anthro profile' do - let(:client) { anthro_client } - let(:cache) { anthro_cache } + let(:client){ anthro_client } + let(:cache){ anthro_cache } context 'place record' do - let(:mapperpath) { 'spec/fixtures/files/mappers/release_6_1/anthro/anthro_4-1-2_place-local.json' } - + let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/anthro/anthro_4-1-2_place-local.json' } + it 'adds a xphash entry for shortIdentifier' do result = handler.mapper.xpath['places_common'][:mappings].select do |mapping| mapping.fieldname == 'shortIdentifier' @@ -94,13 +93,13 @@ describe '#service_type' do let(:servicetype){ handler.service_type } - + context 'anthro profile' do - let(:client) { anthro_client } - let(:cache) { anthro_cache } + let(:client){ anthro_client } + let(:cache){ anthro_cache } context 'collectionobject record' do - let(:mapperpath) { 'spec/fixtures/files/mappers/release_6_1/anthro/anthro_4-1-2_collectionobject.json' } + let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/anthro/anthro_4-1-2_collectionobject.json' } it 'returns object' do expect(servicetype).to eq('object') @@ -108,7 +107,7 @@ end context 'place record' do - let(:mapperpath) { 'spec/fixtures/files/mappers/release_6_1/anthro/anthro_4-1-2_place-local.json' } + let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/anthro/anthro_4-1-2_place-local.json' } it 'returns authority' do expect(servicetype).to eq('authority') @@ -117,11 +116,11 @@ end context 'bonsai profile' do - let(:client) { bonsai_client } - let(:cache) { bonsai_cache } + let(:client){ bonsai_client } + let(:cache){ bonsai_cache } context 'conservation record' do - let(:mapperpath) { 'spec/fixtures/files/mappers/release_6_1/bonsai/bonsai_4-1-1_conservation.json' } + let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/bonsai/bonsai_4-1-1_conservation.json' } it 'returns procedure' do expect(servicetype).to eq('procedure') @@ -148,17 +147,17 @@ # end describe '#xpath_hash' do - let(:result) { handler.mapper.xpath[xpath] } - + let(:result){ handler.mapper.xpath[xpath] } + context 'anthro profile' do - let(:client) { anthro_client } - let(:cache) { anthro_cache } + let(:client){ anthro_client } + let(:cache){ anthro_cache } context 'collectionobject record' do - let(:mapperpath) { 'spec/fixtures/files/mappers/release_6_1/anthro/anthro_4-1-2_collectionobject.json' } + let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/anthro/anthro_4-1-2_collectionobject.json' } context 'xpath ending with commingledRemainsGroup' do - let(:xpath) { 'collectionobjects_anthro/commingledRemainsGroupList/commingledRemainsGroup' } + let(:xpath){ 'collectionobjects_anthro/commingledRemainsGroupList/commingledRemainsGroup' } it 'is_group = true' do expect(result[:is_group]).to be true @@ -175,7 +174,8 @@ end context 'xpath ending with mortuaryTreatmentGroup' do - let(:xpath) { 'collectionobjects_anthro/commingledRemainsGroupList/commingledRemainsGroup/mortuaryTreatmentGroupList/mortuaryTreatmentGroup' } + let(:xpath) do + 'collectionobjects_anthro/commingledRemainsGroupList/commingledRemainsGroup/mortuaryTreatmentGroupList/mortuaryTreatmentGroup' end it 'is_group = true' do expect(result[:is_group]).to be true @@ -192,7 +192,7 @@ end context 'xpath ending with collectionobjects_nagpra' do - let(:xpath) { 'collectionobjects_nagpra' } + let(:xpath){ 'collectionobjects_nagpra' } it 'has 5 children' do expect(result[:children].size).to eq(5) @@ -200,23 +200,23 @@ end end end - + context 'bonsai profile' do - let(:client) { bonsai_client } - let(:cache) { bonsai_cache } + let(:client){ bonsai_client } + let(:cache){ bonsai_cache } context 'conservation record' do - let(:mapperpath) { 'spec/fixtures/files/mappers/release_6_1/bonsai/bonsai_4-1-1_conservation.json' } + let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/bonsai/bonsai_4-1-1_conservation.json' } context 'xpath ending with fertilizersToBeUsed' do - let(:xpath) { 'conservation_livingplant/fertilizationGroupList/fertilizationGroup/fertilizersToBeUsed' } + let(:xpath){ 'conservation_livingplant/fertilizationGroupList/fertilizationGroup/fertilizersToBeUsed' } it 'is a repeating group' do expect(result[:is_group]).to be true end end - + context 'xpath ending with conservators' do - let(:xpath) { 'conservation_common/conservators' } + let(:xpath){ 'conservation_common/conservators' } it 'is a repeating group' do expect(result[:is_group]).to be false end @@ -234,13 +234,13 @@ end describe '#check_fields' do - let(:result) { handler.check_fields(data) } + let(:result){ handler.check_fields(data) } context 'bonsai profile' do - let(:client) { bonsai_client } - let(:cache) { bonsai_cache } + let(:client){ bonsai_client } + let(:cache){ bonsai_cache } context 'conservation record' do - let(:mapperpath) { 'spec/fixtures/files/mappers/release_6_1/bonsai/bonsai_4-1-1_conservation.json' } + let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/bonsai/bonsai_4-1-1_conservation.json' } let(:data) do { 'conservationNumber' => '123', @@ -260,34 +260,33 @@ end end - describe '#prep' do - let(:data) { {'objectNumber' => '123'} } - + let(:data){ {'objectNumber' => '123'} } + it 'can be called with response from validation' do vresult = handler.validate(data) result = handler.prep(vresult).response expect(result).to be_a(CollectionSpace::Mapper::Response) end - + it 'can be called with just data' do result = handler.prep(data).response expect(result).to be_a(CollectionSpace::Mapper::Response) end - + context 'when response_mode = normal' do - let(:config) { {response_mode: 'normal'} } - + let(:config){ {response_mode: 'normal'} } + it 'returned response includes detailed data transformation info needed for mapping' do result = handler.prep(data).response expect(result.transformed_data).not_to be_empty end end - + context 'when response_mode = verbose' do - let(:config) { {response_mode: 'verbose'} } - + let(:config){ {response_mode: 'verbose'} } + it 'returned response includes detailed data transformation info' do result = handler.prep(data).response expect(result.transformed_data).not_to be_empty @@ -296,29 +295,29 @@ end describe '#process', services_call: true do - let(:data) { {'objectNumber' => '123'} } + let(:data){ {'objectNumber' => '123'} } it 'can be called with response from validation' do vresult = handler.validate(data) result = handler.process(vresult) expect(result).to be_a(CollectionSpace::Mapper::Response) end - + it 'can be called with just data' do result = handler.process(data) expect(result).to be_a(CollectionSpace::Mapper::Response) end - + context 'when response_mode = normal' do it 'returned response omits detailed data transformation info' do result = handler.process(data) expect(result.transformed_data).to be_empty end end - + context 'when response_mode = verbose' do - let(:config) { {response_mode: 'verbose'} } - + let(:config){ {response_mode: 'verbose'} } + it 'returned response includes detailed data transformation info' do result = handler.process(data) expect(result.transformed_data).not_to be_empty @@ -327,11 +326,10 @@ end describe '#map', services_call: true do - let(:data) { {'objectNumber' => '123'} } - let(:prepper) { CollectionSpace::Mapper::DataPrepper.new(data, handler) } - let(:prepped) { handler.prep(data).response } - let(:result) { handler.map(prepped, prepper.xphash) } - + let(:data){ {'objectNumber' => '123'} } + let(:prepper){ CollectionSpace::Mapper::DataPrepper.new(data, handler) } + let(:prepped){ handler.prep(data).response } + let(:result){ handler.map(prepped, prepper.xphash) } it 'returns CollectionSpace::Mapper::Response object' do expect(result).to be_a(CollectionSpace::Mapper::Response) @@ -346,7 +344,7 @@ end end context 'when response_mode = verbose' do - let(:config) { {'response_mode' => 'verbose'} } + let(:config){ {'response_mode' => 'verbose'} } it 'returned response includes detailed data transformation info' do expect(result.transformed_data).not_to be_empty end diff --git a/spec/collectionspace/mapper/data_mapper_core_spec.rb b/spec/collectionspace/mapper/data_mapper_core_spec.rb index 44d2ccc1..9d9789e2 100644 --- a/spec/collectionspace/mapper/data_mapper_core_spec.rb +++ b/spec/collectionspace/mapper/data_mapper_core_spec.rb @@ -8,10 +8,10 @@ context 'core profile' do let(:client){ core_client } let(:cache){ core_cache } - let(:handler) { CollectionSpace::Mapper::DataHandler.new(record_mapper: mapper, - client: client, - cache: cache, - config: config) } + let(:handler) do CollectionSpace::Mapper::DataHandler.new(record_mapper: mapper, + client: client, + cache: cache, + config: config) end let(:datahash){ get_datahash(path: hashpath) } let(:response){ handler.process(datahash) } let(:mapped_doc){ remove_namespaces(response.doc) } @@ -25,9 +25,9 @@ # These tests are prone to failing if one of the records used in the test in core.dev is deleted # If a UUID is expected but you get blank, recreate the record in core.dev, rerun the test to # get the UUID for the new record, and replace the old UUID in both fixture XML files used. - let(:mapper) { get_json_record_mapper( + let(:mapper) do get_json_record_mapper( 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_nonhierarchicalrelationship.json' - ) } + ) end context 'when all IDs found' do let(:hashpath){ 'spec/fixtures/files/datahashes/core/nonHierarchicalRelationship1.json' } @@ -131,8 +131,8 @@ end context 'authority hierarchy record', services_call: true do - let(:mapper){ - get_json_record_mapper('spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_authorityhierarchy.json') } + let(:mapper) do + get_json_record_mapper('spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_authorityhierarchy.json') end context 'with existing terms' do let(:hashpath){ 'spec/fixtures/files/datahashes/core/authorityHierarchy1.json' } @@ -183,13 +183,13 @@ end context 'with existing records' do - let(:hashpath) { 'spec/fixtures/files/datahashes/core/objectHierarchy1.json' } - let(:fixturepath) { 'core/objectHierarchy1.xml' } + let(:hashpath){ 'spec/fixtures/files/datahashes/core/objectHierarchy1.json' } + let(:fixturepath){ 'core/objectHierarchy1.xml' } it 'sets response id field as expected' do expect(response.identifier).to eq('2020.1.105 > 2020.1.1055') end - + it 'does not map unexpected fields' do expect(diff).to eq([]) end @@ -204,13 +204,13 @@ end context 'with missing record' do - let(:hashpath) { 'spec/fixtures/files/datahashes/core/objectHierarchy2.json' } - let(:fixturepath) { 'core/objectHierarchy2.xml' } + let(:hashpath){ 'spec/fixtures/files/datahashes/core/objectHierarchy2.json' } + let(:fixturepath){ 'core/objectHierarchy2.xml' } it 'sets response id field as expected' do expect(response.identifier).to eq('2020.1.105 > MISSING') end - + it 'does not map unexpected fields' do expect(diff).to eq([]) end @@ -247,8 +247,8 @@ end context 'collectionobject record' do - let(:mapper){ - get_json_record_mapper('spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_collectionobject.json') } + let(:mapper) do + get_json_record_mapper('spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_collectionobject.json') end context 'record 1' do let(:hashpath){ 'spec/fixtures/files/datahashes/core/collectionobject1.json' } @@ -304,8 +304,8 @@ end context 'conditioncheck record', services_call: true do - let(:mapper){ - get_json_record_mapper('spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_conditioncheck.json') } + let(:mapper) do + get_json_record_mapper('spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_conditioncheck.json') end context 'record 1' do let(:hashpath){ 'spec/fixtures/files/datahashes/core/conditioncheck1.json' } @@ -326,8 +326,8 @@ end context 'conservation record', services_call: true do - let(:mapper){ - get_json_record_mapper('spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_conservation.json') } + let(:mapper) do + get_json_record_mapper('spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_conservation.json') end context 'record 1' do let(:hashpath){ 'spec/fixtures/files/datahashes/core/conservation1.json' } diff --git a/spec/collectionspace/mapper/data_mapper_spec.rb b/spec/collectionspace/mapper/data_mapper_spec.rb index 69c15ebe..a09ddb77 100644 --- a/spec/collectionspace/mapper/data_mapper_spec.rb +++ b/spec/collectionspace/mapper/data_mapper_spec.rb @@ -26,8 +26,8 @@ data3 = JSON.parse('{"creditline":"Gift of Elizabeth, 1985","accessiondategroup":"1985","acquisitionmethod":"gift","acquisitionreferencenumber":"ACC208 (migrated accession)","acquisitionsourceperson":"Elizabeth","acquisitionsourceorganization":"","acquisitionauthorizer":"","acquisitionnote":"Acquisition source role(s): Donor"}') data = [data1, data2, data3] preppers = data.map{ |d| CollectionSpace::Mapper::DataPrepper.new(d, @handler) } - mappers = preppers.map{ |prepper| - CollectionSpace::Mapper::DataMapper.new(prepper.prep.response, @handler, prepper.xphash) } + mappers = preppers.map do |prepper| + CollectionSpace::Mapper::DataMapper.new(prepper.prep.response, @handler, prepper.xphash) end docs = mappers.map{ |mapper| remove_namespaces(mapper.response.doc) } docxpaths = docs.map{ |doc| list_xpaths(doc) } diff --git a/spec/collectionspace/mapper/data_prepper_spec.rb b/spec/collectionspace/mapper/data_prepper_spec.rb index 619a0b9b..4a2e8861 100644 --- a/spec/collectionspace/mapper/data_prepper_spec.rb +++ b/spec/collectionspace/mapper/data_prepper_spec.rb @@ -3,11 +3,11 @@ require 'spec_helper' RSpec.describe CollectionSpace::Mapper::DataPrepper do - let(:delimiter) { ';' } - let(:client) { anthro_client } - let(:cache) { anthro_cache } - let(:mapperpath) { 'spec/fixtures/files/mappers/release_6_1/anthro/anthro_4-1-2_collectionobject.json' } - let(:mapper) { get_json_record_mapper(mapperpath) } + let(:delimiter){ ';' } + let(:client){ anthro_client } + let(:cache){ anthro_cache } + let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/anthro/anthro_4-1-2_collectionobject.json' } + let(:mapper){ get_json_record_mapper(mapperpath) } let(:config) do { delimiter: delimiter, @@ -19,8 +19,8 @@ cache: cache, config: config) end - let(:prepper) { CollectionSpace::Mapper::DataPrepper.new(datahash, handler) } - let(:datahash) { { 'objectNumber' => '123' } } + let(:prepper){ CollectionSpace::Mapper::DataPrepper.new(datahash, handler) } + let(:datahash){ {'objectNumber' => '123'} } describe '#merge_default_values' do let(:datahash) do @@ -69,7 +69,7 @@ expect(res).to eq(ex) end end - + context 'and :force_defaults = true' do let(:config) do { @@ -92,10 +92,10 @@ describe '#process_xpaths' do context 'when authority record' do - let(:client) { core_client } - let(:cache) { core_cache } - let(:mapperpath) { 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_place-local.json' } - let(:datahash) { {'termdisplayname'=>'Silk Hope' } } + let(:client){ core_client } + let(:cache){ core_cache } + let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_place-local.json' } + let(:datahash){ {'termdisplayname' => 'Silk Hope'} } it 'keeps mapping for shortIdentifier in xphash' do result = prepper.prep.xphash['places_common'][:mappings].select do |mapping| @@ -109,7 +109,7 @@ describe '#handle_term_fields' do let(:datahash) do { - 'objectnumber'=>'123', + 'objectnumber' => '123', 'title' => 'A "Man";A Woman', 'titleLanguage' => 'English;English', 'titleTranslation' => 'Un Homme^^Hombre; Une Femme^^Fraulein', @@ -125,7 +125,7 @@ "urn:cspace:anthro.collectionspace.org:vocabularies:name(languages):item:name(deu)'German'"]] expect(res).to eq(expected) end - + it 'adds expected term Hashes to response.terms' do chk = prepper.prep.response.terms.select{ |t| t[:field] == 'titletranslationlanguage' } expect(chk.length).to eq(4) @@ -135,7 +135,7 @@ describe '#transform_date_fields' do let(:datahash) do { - 'objectnumber'=>'123', + 'objectnumber' => '123', 'annotationdate' => '12/19/2019;12/10/2019', 'identdategroup' => '2019-09-30;4/5/2020', } @@ -159,7 +159,7 @@ describe '#combine_data_values' do let(:datahash) do { - 'objectnumber'=>'123', + 'objectnumber' => '123', 'fieldCollectorPerson' => 'Ann Analyst;Gabriel Solares', 'fieldCollectorOrganization' => 'Organization 1', 'objectProductionPeopleArchculture' => 'Blackfoot', @@ -191,9 +191,9 @@ end context 'and one or more combined field values is blank' do - let(:client) { core_client } - let(:cache) { core_cache } - let(:mapperpath) { 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_conservation.json' } + let(:client){ core_client } + let(:cache){ core_cache } + let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_conservation.json' } let(:datahash) do { 'conservationNumber' => 'CT2020.7', @@ -201,25 +201,25 @@ 'statusDate' => '' } end - let(:xpath) { 'conservation_common/conservationStatusGroupList/conservationStatusGroup' } + let(:xpath){ 'conservation_common/conservationStatusGroupList/conservationStatusGroup' } it 'removes empty fields from combined data response' do result = prepper.prep.response.combined_data[xpath].keys expect(result).to_not include('statusDate') end - + it 'removes empty fields from fieldmapping list passed on for mapping' do result = prepper.prep.xphash[xpath][:mappings] expect(result.length).to eq(1) end end end - + context 'when multi-authority field is part of repeating field subgroup' do - let(:client) { core_client } - let(:cache) { core_cache } - let(:mapperpath) { 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_media.json' } - let(:xpath) { 'media_common/measuredPartGroupList/measuredPartGroup/dimensionSubGroupList/dimensionSubGroup' } + let(:client){ core_client } + let(:cache){ core_cache } + let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_media.json' } + let(:xpath){ 'media_common/measuredPartGroupList/measuredPartGroup/dimensionSubGroupList/dimensionSubGroup' } context 'when there is more than one group' do let(:datahash) do @@ -237,7 +237,7 @@ 'valueDate' => '2020-09-23^^2020-09-28^^2020-09-25^^2020-09-30;2020-07-21^^^2020-07-21' } end - + # todo: why does this call services api? it 'combines values properly', services_call: true do result = prepper.prep.response.combined_data[xpath]['measuredBy'] @@ -255,7 +255,7 @@ expect(result).to eq(expected) end end - + context 'when there is only one group' do let(:datahash) do { @@ -272,7 +272,7 @@ 'valueDate' => '2020-09-23^^2020-09-28^^2020-09-25^^2020-09-30' } end - + it 'combines values properly' do result = prepper.prep.response.combined_data[xpath]['measuredBy'] expected = [ @@ -289,7 +289,7 @@ end describe '#prep' do - let(:res) { prepper.prep } + let(:res){ prepper.prep } it 'returns self' do expect(res).to be_a(CollectionSpace::Mapper::DataPrepper) end @@ -317,9 +317,9 @@ end describe 'leading/trailing space stripping' do - let(:datahash) { { 'objectNumber' => '123 ' } } - let(:result) { prepper.prep.response.transformed_data['objectnumber'] } - + let(:datahash){ {'objectNumber' => '123 '} } + let(:result){ prepper.prep.response.transformed_data['objectnumber'] } + context 'with strip_id_values = true (the default)' do it 'strips leading/trailing spaces from id field(s)' do expect(result).to eq(['123']) @@ -332,7 +332,7 @@ strip_id_values: false } end - + it 'does not strip leading/trailing spaces from id field(s)' do expect(result).to eq(['123 ']) end diff --git a/spec/collectionspace/mapper/data_quality_checker_spec.rb b/spec/collectionspace/mapper/data_quality_checker_spec.rb index 5b62779d..560aa333 100644 --- a/spec/collectionspace/mapper/data_quality_checker_spec.rb +++ b/spec/collectionspace/mapper/data_quality_checker_spec.rb @@ -7,18 +7,18 @@ let(:mapping){ CollectionSpace::Mapper::ColumnMapping.new(maphash, recordmapper) } context 'when source_type = optionlist' do - let(:maphash) { { - fieldname: 'collection', - datacolumn: 'collection', - transforms: {}, - source_type: 'optionlist', - opt_list_values: [ - 'library-collection', - 'permanent-collection', - 'study-collection', - 'teaching-collection' - ] - } } + let(:maphash) do { + fieldname: 'collection', + datacolumn: 'collection', + transforms: {}, + source_type: 'optionlist', + opt_list_values: [ + 'library-collection', + 'permanent-collection', + 'study-collection', + 'teaching-collection' + ] + } end it 'returns expected warnings' do data = [ 'Permanent Collection', # not a valid option, should return warning @@ -33,13 +33,13 @@ context 'when datacolumn contains `refname`' do context 'and source_type = vocabulary' do - let(:maphash) { { + let(:maphash) do { fieldname: 'nagprainventoryname', datacolumn: 'nagprainventorynamerefname', transforms: {}, source_type: 'vocabulary', opt_list_values: [] - } } + } end context 'and value is not well-formed refname' do it 'returns warning' do data = ["urn:pahma.cspace.berkeley.edu:vocabularies:name(nagpraPahmaInventoryNames):item:name(nagpraPahmaInventoryNames01)'AK-Alaska'"] @@ -57,13 +57,13 @@ end context 'and source_type = authority' do - let(:maphash) { { + let(:maphash) do { fieldname: 'nagpradetermculture', datacolumn: 'nagpradetermculturerefname', transforms: {}, source_type: 'authority', opt_list_values: [] - } } + } end context 'and value is not well-formed refname' do it 'returns warning' do data = ["urn:cspace:pahma.cspace.berkeley.edu:orgauthorities:name(organization):item:name(Chumash1607458832492)'Chumash"] diff --git a/spec/collectionspace/mapper/find_replace_transformer_spec.rb b/spec/collectionspace/mapper/find_replace_transformer_spec.rb index 9b015b73..f15f2fc4 100644 --- a/spec/collectionspace/mapper/find_replace_transformer_spec.rb +++ b/spec/collectionspace/mapper/find_replace_transformer_spec.rb @@ -3,10 +3,10 @@ require 'spec_helper' RSpec.describe CollectionSpace::Mapper::FindReplaceTransformer do - let(:transform) { [ + let(:transform) do [ {find: ' ', replace:'-', type: 'plain'}, {find: '(\d)-A', replace: '\1 A', type: 'regex'} - ] } + ] end let(:transformer){ described_class.new(transform: transform) } describe '#precedence' do diff --git a/spec/collectionspace/mapper/group_column_value_spec.rb b/spec/collectionspace/mapper/group_column_value_spec.rb index a6833fc0..503432d5 100644 --- a/spec/collectionspace/mapper/group_column_value_spec.rb +++ b/spec/collectionspace/mapper/group_column_value_spec.rb @@ -5,14 +5,14 @@ RSpec.describe CollectionSpace::Mapper::GroupColumnValue do let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_collectionobject.json' } let(:config){ {delimiter: '|', subgroup_delimiter: '^^'} } - let(:recmapper) { CS::Mapper::RecordMapper.new(mapper: get_json_record_mapper(mapperpath), - batchconfig: config, - termcache: core_cache) } + let(:recmapper) do CS::Mapper::RecordMapper.new(mapper: get_json_record_mapper(mapperpath), + batchconfig: config, + termcache: core_cache) end let(:mapping){ recmapper.mappings.lookup(colname) } - let(:colval) { described_class.new(column: colname, - value: colvalue, - recmapper: recmapper, - mapping: mapping) } + let(:colval) do described_class.new(column: colname, + value: colvalue, + recmapper: recmapper, + mapping: mapping) end describe '#split' do let(:colname){ 'title' } diff --git a/spec/collectionspace/mapper/group_multival_column_value_spec.rb b/spec/collectionspace/mapper/group_multival_column_value_spec.rb index cfcb807a..b13d21ea 100644 --- a/spec/collectionspace/mapper/group_multival_column_value_spec.rb +++ b/spec/collectionspace/mapper/group_multival_column_value_spec.rb @@ -5,14 +5,14 @@ RSpec.describe CollectionSpace::Mapper::GroupMultivalColumnValue do let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/bonsai/bonsai_4-1-1_conservation.json' } let(:config){ {delimiter: '|', subgroup_delimiter: '^^'} } - let(:recmapper) { CS::Mapper::RecordMapper.new(mapper: get_json_record_mapper(mapperpath), - batchconfig: config, - termcache: bonsai_cache) } + let(:recmapper) do CS::Mapper::RecordMapper.new(mapper: get_json_record_mapper(mapperpath), + batchconfig: config, + termcache: bonsai_cache) end let(:mapping){ recmapper.mappings.lookup(colname) } - let(:colval) { described_class.new(column: colname, - value: colvalue, - recmapper: recmapper, - mapping: mapping) } + let(:colval) do described_class.new(column: colname, + value: colvalue, + recmapper: recmapper, + mapping: mapping) end describe '#split' do let(:colname){ 'fertilizerToBeUsed' } diff --git a/spec/collectionspace/mapper/multival_column_value_spec.rb b/spec/collectionspace/mapper/multival_column_value_spec.rb index 215d7377..ec9e7f16 100644 --- a/spec/collectionspace/mapper/multival_column_value_spec.rb +++ b/spec/collectionspace/mapper/multival_column_value_spec.rb @@ -5,14 +5,14 @@ RSpec.describe CollectionSpace::Mapper::MultivalColumnValue do let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_collectionobject.json' } let(:config){ {delimiter: '|', subgroup_delimiter: '^^'} } - let(:recmapper) { CS::Mapper::RecordMapper.new(mapper: get_json_record_mapper(mapperpath), - batchconfig: config, - termcache: core_cache) } + let(:recmapper) do CS::Mapper::RecordMapper.new(mapper: get_json_record_mapper(mapperpath), + batchconfig: config, + termcache: core_cache) end let(:mapping){ recmapper.mappings.lookup(colname) } - let(:colval) { described_class.new(column: colname, - value: colvalue, - recmapper: recmapper, - mapping: mapping) } + let(:colval) do described_class.new(column: colname, + value: colvalue, + recmapper: recmapper, + mapping: mapping) end describe '#split' do let(:colname){ 'collection' } diff --git a/spec/collectionspace/mapper/record_mapper_config_spec.rb b/spec/collectionspace/mapper/record_mapper_config_spec.rb index 5011d1cf..ca4a2f28 100644 --- a/spec/collectionspace/mapper/record_mapper_config_spec.rb +++ b/spec/collectionspace/mapper/record_mapper_config_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' RSpec.describe CollectionSpace::Mapper::RecordMapperConfig do - let(:hash) { {'ns_uri' => { + let(:hash) do {'ns_uri' => { 'collectionobjects_common' => 'http://collectionspace.org/services/collectionobject', 'collectionobjects_anthro' => 'http://collectionspace.org/services/collectionobject/domain/anthro', 'collectionobjects_annotation' => 'http://collectionspace.org/services/collectionobject/domain/annotation', @@ -11,7 +11,7 @@ 'collectionobjects_nagpra' => 'http://collectionspace.org/services/collectionobject/domain/nagpra', 'collectionobjects_naturalhistory_extension' => 'http://collectionspace.org/services/collectionobject/domain/naturalhistory_extension', 'somethingelse_common' => 'http://collectionspace.org/services/collectionobject/domain/nagpra' - }} } + }} end let(:config){ described_class.new(hash) } describe '#namespaces' do it 'returns Array of namespace names' do diff --git a/spec/collectionspace/mapper/row_data_spec.rb b/spec/collectionspace/mapper/row_data_spec.rb index ffb8f521..5c034a8d 100644 --- a/spec/collectionspace/mapper/row_data_spec.rb +++ b/spec/collectionspace/mapper/row_data_spec.rb @@ -4,12 +4,12 @@ RSpec.describe CollectionSpace::Mapper::RowData do let(:recmapper){ core_object_mapper} - let(:data_hash) { { + let(:data_hash) do { 'objectNumber' => '123', 'comment' => 'blah', 'title' => 'The title', 'titleTranslation' => 'La title' - } } + } end let(:row){ CollectionSpace::Mapper::RowData.new(data_hash, recmapper) } diff --git a/spec/collectionspace/mapper/subgroup_column_value_spec.rb b/spec/collectionspace/mapper/subgroup_column_value_spec.rb index 6da9b59e..1643c0b7 100644 --- a/spec/collectionspace/mapper/subgroup_column_value_spec.rb +++ b/spec/collectionspace/mapper/subgroup_column_value_spec.rb @@ -5,14 +5,14 @@ RSpec.describe CollectionSpace::Mapper::SubgroupColumnValue do let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_collectionobject.json' } let(:config){ {delimiter: '|', subgroup_delimiter: '^^'} } - let(:recmapper) { CS::Mapper::RecordMapper.new(mapper: get_json_record_mapper(mapperpath), - batchconfig: config, - termcache: core_cache) } + let(:recmapper) do CS::Mapper::RecordMapper.new(mapper: get_json_record_mapper(mapperpath), + batchconfig: config, + termcache: core_cache) end let(:mapping){ recmapper.mappings.lookup(colname) } - let(:colval) { described_class.new(column: colname, - value: colvalue, - recmapper: recmapper, - mapping: mapping) } + let(:colval) do described_class.new(column: colname, + value: colvalue, + recmapper: recmapper, + mapping: mapping) end describe '#split' do let(:colname){ 'titleTranslation' } diff --git a/spec/collectionspace/mapper/term_handler_spec.rb b/spec/collectionspace/mapper/term_handler_spec.rb index 2181da86..cc11aec8 100644 --- a/spec/collectionspace/mapper/term_handler_spec.rb +++ b/spec/collectionspace/mapper/term_handler_spec.rb @@ -6,15 +6,15 @@ let(:client){ core_client } let(:termcache){ core_cache } let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_collectionobject.json' } - let(:recmapper) { CS::Mapper::RecordMapper.new(mapper: File.read(mapperpath), - csclient: client, - termcache: termcache) } + let(:recmapper) do CS::Mapper::RecordMapper.new(mapper: File.read(mapperpath), + csclient: client, + termcache: termcache) end let(:colmapping){ recmapper.mappings.lookup(colname) } - let(:th) { CS::Mapper::TermHandler.new(mapping: colmapping, - data: data, - client: client, - cache: termcache, - mapper: recmapper) } + let(:th) do CS::Mapper::TermHandler.new(mapping: colmapping, + data: data, + client: client, + cache: termcache, + mapper: recmapper) end # before(:all) do # @config = @handler.mapper.batchconfig # @ref_mapping = CollectionSpace::Mapper::ColumnMapping.new({ diff --git a/spec/collectionspace/mapper/term_searchable_spec.rb b/spec/collectionspace/mapper/term_searchable_spec.rb index a857fa2b..d78a2239 100644 --- a/spec/collectionspace/mapper/term_searchable_spec.rb +++ b/spec/collectionspace/mapper/term_searchable_spec.rb @@ -14,13 +14,13 @@ def initialize(cache, client, type, subtype) @subtype = subtype @errors = [] end - + end RSpec.describe CollectionSpace::Mapper::TermSearchable do - let(:cache) { core_cache } - let(:termtype) { 'conceptauthorities' } - let(:termsubtype) { 'concept' } + let(:cache){ core_cache } + let(:termtype){ 'conceptauthorities' } + let(:termsubtype){ 'concept' } let(:term){ TermClass.new(cache, core_client, termtype, termsubtype) } describe '#in_cache?' do @@ -48,7 +48,7 @@ def initialize(cache, client, type, subtype) end describe '#cached_as_unknown?' do - let(:result) { term.cached_as_unknown?(val) } + let(:result){ term.cached_as_unknown?(val) } let(:val){ 'blahblahblah' } context 'when not cached as unknown value' do @@ -64,7 +64,7 @@ def initialize(cache, client, type, subtype) end end end - + describe '#cached_term' do let(:result){ term.cached_term(val) } context 'when not in cache' do @@ -92,12 +92,12 @@ def initialize(cache, client, type, subtype) end describe '#searched_term' do - let(:termtype) { 'vocabularies' } - let(:termsubtype) { 'publishto' } + let(:termtype){ 'vocabularies' } + let(:termsubtype){ 'publishto' } let(:result){ term.searched_term(val) } context 'when val exists in instance' do - let(:val) { 'All' } + let(:val){ 'All' } it 'returns refname urn' do expected = "urn:cspace:core.collectionspace.org:vocabularies:name(publishto):item:name(all)'All'" expect(result).to eq(expected) @@ -105,7 +105,7 @@ def initialize(cache, client, type, subtype) end context 'when case-swapped val exists in instance' do - let(:val) { 'all' } + let(:val){ 'all' } it 'returns refname urn' do expected = "urn:cspace:core.collectionspace.org:vocabularies:name(publishto):item:name(all)'All'" expect(result).to eq(expected) @@ -119,7 +119,7 @@ def initialize(cache, client, type, subtype) let(:result){ term.obj_csid(objnum, type) } context 'when in cache' do let(:objnum){ 'Hierarchy Test 001' } - + it 'returns csid' do expect(result).to eq('16161bff-b01a-4b55-95aa') end @@ -138,7 +138,7 @@ def initialize(cache, client, type, subtype) context 'when in cache' do let(:val){ 'Sample Concept 1' } it 'returns csid' do - #it 'returns csid', :skip => 'does not cause mapping to fail, so we live with technical incorrectness for now' do + # it 'returns csid', :skip => 'does not cause mapping to fail, so we live with technical incorrectness for now' do expect(result).to eq('1111-2222-3333-4444') end end diff --git a/spec/collectionspace/mapper/tools/record_status_service_spec.rb b/spec/collectionspace/mapper/tools/record_status_service_spec.rb index 26866eb5..d526e9b6 100644 --- a/spec/collectionspace/mapper/tools/record_status_service_spec.rb +++ b/spec/collectionspace/mapper/tools/record_status_service_spec.rb @@ -7,21 +7,21 @@ let(:service){ CollectionSpace::Mapper::Tools::RecordStatusService.new(client, mapper) } context 'when mapper service_path not handled by collectionspace-client' do - let(:mapper) { CS::Mapper::RecordMapper.new(mapper: get_json_record_mapper( + let(:mapper) do CS::Mapper::RecordMapper.new(mapper: get_json_record_mapper( 'spec/fixtures/files/mappers/core_6-1-0_aardvark.json' - ), termcache: core_cache) } + ), termcache: core_cache) end it 'raises NoClientServiceError' do - expect{ - CS::Mapper::Tools::RecordStatusService.new(client, mapper) }.to raise_error(CS::Mapper::NoClientServiceError) + expect do + CS::Mapper::Tools::RecordStatusService.new(client, mapper) end.to raise_error(CS::Mapper::NoClientServiceError) end end describe '#lookup' do context 'when mapper is for an authority' do - let(:mapper) { CollectionSpace::Mapper::RecordMapper.new(mapper: get_json_record_mapper( + let(:mapper) do CollectionSpace::Mapper::RecordMapper.new(mapper: get_json_record_mapper( 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_person-local.json' - ), termcache: core_cache) } + ), termcache: core_cache) end context 'and one result is found' do let(:report){ service.lookup('John Doe') } @@ -54,7 +54,8 @@ # you may need to re-create them if they have been removed context 'with default config' do it 'raises error because we cannot know what to do with imported record' do - expect{ service.lookup('Inkpot Guineafowl') }.to raise_error(CollectionSpace::Mapper::MultipleCsRecordsFoundError) + expect do + service.lookup('Inkpot Guineafowl') end.to raise_error(CollectionSpace::Mapper::MultipleCsRecordsFoundError) end end @@ -66,10 +67,10 @@ let(:mapper) do CollectionSpace::Mapper::RecordMapper.new( mapper: json, - batchconfig: { multiple_recs_found: 'use_first' } + batchconfig: {multiple_recs_found: 'use_first'} ) end - let(:result) { service.lookup('Inkpot Guineafowl').keys.any?(:multiple_recs_found) } + let(:result){ service.lookup('Inkpot Guineafowl').keys.any?(:multiple_recs_found) } it 'returns result with count of records found' do expect(result).to be true end @@ -78,9 +79,9 @@ end context 'when mapper is for an object' do - let(:mapper) { CollectionSpace::Mapper::RecordMapper.new(mapper: get_json_record_mapper( + let(:mapper) do CollectionSpace::Mapper::RecordMapper.new(mapper: get_json_record_mapper( 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_collectionobject.json' - ), termcache: core_cache) } + ), termcache: core_cache) end it 'works the same' do res = service.lookup('2000.1') @@ -89,9 +90,9 @@ end context 'when mapper is for a procedure' do - let(:mapper) { CollectionSpace::Mapper::RecordMapper.new(mapper: get_json_record_mapper( + let(:mapper) do CollectionSpace::Mapper::RecordMapper.new(mapper: get_json_record_mapper( 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_acquisition.json' - ), termcache: core_cache) } + ), termcache: core_cache) end it 'works the same' do res = service.lookup('2000.001') @@ -100,9 +101,9 @@ end context 'when mapper is for a relationship' do - let(:mapper) { CollectionSpace::Mapper::RecordMapper.new(mapper: get_json_record_mapper( + let(:mapper) do CollectionSpace::Mapper::RecordMapper.new(mapper: get_json_record_mapper( 'spec/fixtures/files/mappers/release_6_1/core/core_6-1-0_objecthierarchy.json' - )) } + )) end it 'works the same' do res = service.lookup({sub: '56c04f5f-32b9-4f1d-8a4b', obj: '6f0ce7b3-0130-444d-8633'}) diff --git a/spec/collectionspace/mapper/tools/refname_spec.rb b/spec/collectionspace/mapper/tools/refname_spec.rb index 30c9e378..da906255 100644 --- a/spec/collectionspace/mapper/tools/refname_spec.rb +++ b/spec/collectionspace/mapper/tools/refname_spec.rb @@ -79,8 +79,8 @@ args = { urn: 'urn:cspace:core.collectionspace.org:weird' } - expect{ - CollectionSpace::Mapper::Tools::RefName.new(args) }.to raise_error(CollectionSpace::Mapper::Tools::UnparseableUrnError) + expect do + CollectionSpace::Mapper::Tools::RefName.new(args) end.to raise_error(CollectionSpace::Mapper::Tools::UnparseableUrnError) end end end @@ -91,8 +91,8 @@ urn: "urn:cspace:anthro.collectionspace.org:personauthorities:name(person):item:name(MaryPoole1796320156)'Mary Poole'", cache: @cache } - expect{ - CollectionSpace::Mapper::Tools::RefName.new(args) }.to raise_error(CollectionSpace::Mapper::Tools::RefNameArgumentError) + expect do + CollectionSpace::Mapper::Tools::RefName.new(args) end.to raise_error(CollectionSpace::Mapper::Tools::RefNameArgumentError) end end end diff --git a/spec/collectionspace/mapper/tools/symbolizable_spec.rb b/spec/collectionspace/mapper/tools/symbolizable_spec.rb index 96c1d734..e29ee50c 100644 --- a/spec/collectionspace/mapper/tools/symbolizable_spec.rb +++ b/spec/collectionspace/mapper/tools/symbolizable_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' RSpec.describe CS::Mapper::Tools::Symbolizable do - let(:config) { JSON.parse('{ + let(:config) do JSON.parse('{ "delimiter": ";", "subgroup_delimiter": "^^", "response_mode": "verbose", @@ -29,7 +29,7 @@ "collection": "library-collection" } }') - } + end let(:symconfig){ CS::Mapper::Tools::Symbolizable.symbolize(config) } describe '#symbolize' do @@ -42,10 +42,10 @@ describe '#symbolize_transforms' do let(:transforms){ symconfig[:transforms] } - let(:expected) { {'collection' => {special: ['downcase_value'], - replacements: [{find: ' ', replace: '-', type: 'plain'}] + let(:expected) do {'collection' => {special: ['downcase_value'], + replacements: [{find: ' ', replace: '-', type: 'plain'}] }} - } + end it 'transforms as expected' do expect(CS::Mapper::Tools::Symbolizable.symbolize_transforms(transforms)).to eq(expected) end diff --git a/spec/collectionspace/mapper/transformer_spec.rb b/spec/collectionspace/mapper/transformer_spec.rb index aeadd034..57f6bd26 100644 --- a/spec/collectionspace/mapper/transformer_spec.rb +++ b/spec/collectionspace/mapper/transformer_spec.rb @@ -6,14 +6,14 @@ let(:client){ anthro_client } let(:cache){ anthro_cache } let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/anthro/anthro_4-1-2_collectionobject_transforms.json'} - let(:recmapper) { CS::Mapper::RecordMapper.new(mapper: File.read(mapperpath), - csclient: client, - termcache: cache) } + let(:recmapper) do CS::Mapper::RecordMapper.new(mapper: File.read(mapperpath), + csclient: client, + termcache: cache) end describe '.create' do - let(:creator) { described_class.create(recmapper: recmapper, - type: type, - transform: transform) } + let(:creator) do described_class.create(recmapper: recmapper, + type: type, + transform: transform) end context 'given an authority transform' do let(:type){ :authority } diff --git a/spec/collectionspace/mapper/transformers_spec.rb b/spec/collectionspace/mapper/transformers_spec.rb index 229dec1d..6d9804af 100644 --- a/spec/collectionspace/mapper/transformers_spec.rb +++ b/spec/collectionspace/mapper/transformers_spec.rb @@ -6,13 +6,13 @@ let(:client){ anthro_client } let(:cache){ anthro_cache } let(:mapperpath){ 'spec/fixtures/files/mappers/release_6_1/anthro/anthro_4-1-2_collectionobject_transforms.json'} - let(:recmapper) { CS::Mapper::RecordMapper.new(mapper: File.read(mapperpath), - csclient: client, - termcache: cache) } + let(:recmapper) do CS::Mapper::RecordMapper.new(mapper: File.read(mapperpath), + csclient: client, + termcache: cache) end let(:mapping){ recmapper.mappings.lookup(colname) } - let(:xforms) { described_class.new(colmapping: mapping, - transforms: mapping.transforms, - recmapper: recmapper) } + let(:xforms) do described_class.new(colmapping: mapping, + transforms: mapping.transforms, + recmapper: recmapper) end describe '#queue' do context 'when measuredByPerson column' do diff --git a/spec/collectionspace/mapper_spec.rb b/spec/collectionspace/mapper_spec.rb index c5a3e091..99fadf5e 100644 --- a/spec/collectionspace/mapper_spec.rb +++ b/spec/collectionspace/mapper_spec.rb @@ -27,9 +27,9 @@ context 'when passed other class of object' do it 'returns a CollectionSpace::Mapper::Response' do data = ['objectNumber', '123'] - expect{ - CollectionSpace::Mapper::setup_data(data) }.to raise_error(CollectionSpace::Mapper::Errors::UnprocessableDataError, - 'Cannot process a Array. Need a Hash or Mapper::Response') + expect do + CollectionSpace::Mapper::setup_data(data) end.to raise_error(CollectionSpace::Mapper::Errors::UnprocessableDataError, + 'Cannot process a Array. Need a Hash or Mapper::Response') end end end diff --git a/spec/core_helpers.rb b/spec/core_helpers.rb index b9e58e09..6df0e4a2 100644 --- a/spec/core_helpers.rb +++ b/spec/core_helpers.rb @@ -39,189 +39,372 @@ def core_object_mapper def populate_core(cache) terms = [ - ['citationauthorities', 'citation', 'Arthur', { refname: "urn:cspace:core.collectionspace.org:citationauthorities:name(citation):item:name(Arthur62605812848)'Arthur'", csid: '1111-2222-3333-4444' }], - ['citationauthorities', 'citation', 'Harding', { refname: "urn:cspace:core.collectionspace.org:citationauthorities:name(citation):item:name(Harding2510592089)'Harding'", csid: '1111-2222-3333-4444' }], - ['citationauthorities', 'citation', 'Wanting', { refname: "urn:cspace:core.collectionspace.org:citationauthorities:name(citation):item:name(Wanting1599560009399)'Wanting'", csid: '1111-2222-3333-4444' }], - ['citationauthorities', 'citation', 'makasi', { refname: "urn:cspace:core.collectionspace.org:citationauthorities:name(citation):item:name(makasi1599645537547)'makasi'", csid: '1111-2222-3333-4444' }], - ['citationauthorities', 'worldcat', 'Chelse', { refname: "urn:cspace:core.collectionspace.org:citationauthorities:name(worldcat):item:name(Chelse1599645525740)'Chelse'", csid: '1111-2222-3333-4444' }], - ['citationauthorities', 'worldcat', 'Patiently', { refname: "urn:cspace:core.collectionspace.org:citationauthorities:name(worldcat):item:name(Patiently1599559993332)'Patiently'", csid: '1111-2222-3333-4444' }], - ['collectionobjects', '', 'Hierarchy Test 001', { refname: "urn:cspace:core.collectionspace.org:collectionobjects:id(16161bff-b01a-4b55-95aa)'Hierarchy Test 001'", csid: '16161bff-b01a-4b55-95aa' }], - ['conceptauthorities', 'concept', 'Test', { refname: "urn:cspace:core.collectionspace.org:conceptauthorities:name(concept):item:name(Test1599650854716)'Test'", csid: '1111-2222-3333-4444' }], - ['conceptauthorities', 'concept', 'Sample Concept 1', { refname: "urn:cspace:core.collectionspace.org:conceptauthorities:name(concept):item:name(SampleConcept11581354228875)'Sample Concept 1'", csid: '1111-2222-3333-4444' }], - ['conceptauthorities', 'concept', 'Uno', { refname: "urn:cspace:core.collectionspace.org:conceptauthorities:name(concept):item:name(Uno1599645111177)'Uno'", csid: '1111-2222-3333-4444' }], - ['conceptauthorities', 'occasion', 'Computer', { refname: "urn:cspace:core.collectionspace.org:conceptauthorities:name(occasion):item:name(Computer1599734104251)'Computer'", csid: '1111-2222-3333-4444' }], - ['locationauthorities', 'indeterminate', '~Indeterminate Location~', { refname: "urn:cspace:indeterminate:locationauthorities:name(indeterminate):item:name(indeterminate)'~Indeterminate Location~'", csid: '1111-2222-3333-4444' }], - ['locationauthorities', 'location', 'Abardares', { refname: "urn:cspace:core.collectionspace.org:locationauthorities:name(location):item:name(Abardares1599557570049)'Abardares'", csid: '1111-2222-3333-4444' }], - ['locationauthorities', 'location', 'Kalif', { refname: "urn:cspace:core.collectionspace.org:locationauthorities:name(location):item:name(Kalif1599734233745)'Kalif'", csid: '1111-2222-3333-4444' }], - ['locationauthorities', 'location', 'Khago', { refname: "urn:cspace:core.collectionspace.org:locationauthorities:name(location):item:name(Khago1599559772718)'Khago'", csid: '1111-2222-3333-4444' }], - ['locationauthorities', 'location', 'Stay', { refname: "urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Stay1599559824865)'Stay'", csid: '1111-2222-3333-4444' }], - ['locationauthorities', 'offsite_sla', 'Lavington', { refname: "urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Lavington1599144699983)'Lavington'", csid: '1111-2222-3333-4444' }], - ['locationauthorities', 'offsite_sla', 'Ngong', { refname: "urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Ngong1599557586466)'Ngong'", csid: '1111-2222-3333-4444' }], - ['locationauthorities', 'offsite_sla', 'Stay', { refname: "urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Stay)'Stay'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', '2021', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(20211599147173971)'2021'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'Astroworld', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Astroworld1599650794829)'Astroworld'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'Broker', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Broker1599221487572)'Broker'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'But Ohh', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(ButOhh1599665031368)'But Ohh'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'Cuckoo', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Cuckoo1599463786824)'Cuckoo'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'Ibiza', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Ibiza1599650806827)'Ibiza'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'Joseph Hills', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(JosephHills1599463935463)'Joseph Hills'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'Kremling', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Kremling1599464161204)'Kremling'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'MMG', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(MMG1599569514486)'MMG'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'Martin', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Martin1599559712783)'Martin'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'Ninja', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Ninja1599147339325)'Ninja'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'Oval', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Oval1599650891221)'Oval'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'Podoa', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Podoa1599645346399)'Podoa'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'Rock Nation', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(RockNation1599569481908)'Rock Nation'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'Sidarec', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Sidarec1599210955079)'Sidarec'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'TIm Herod', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(TImHerod1599144655199)'TIm Herod'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'Tasia', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Tasia1599734050597)'Tasia'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'Tesla', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Tesla1599144565539)'Tesla'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'Walai', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Walai1599645181370)'Walai'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'breakup', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(breakup1599559909048)'breakup'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'fggf', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(fggf1599552009173)'fggf'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'pandemic', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(pandemic1599645036126)'pandemic'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'pop', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(pop1599664789385)'pop'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'pupu', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(pupu1599645415676)'pupu'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'organization', 'tent', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(tent1599664807586)'tent'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'ulan_oa', 'Again', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(ulan_oa):item:name(Again1599559881266)'Again'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'ulan_oa', 'Signal', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(ulan_oa):item:name(Signal1599559737158)'Signal'", csid: '1111-2222-3333-4444' }], - ['orgauthorities', 'ulan_oa', 'Very fats', { refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(ulan_oa):item:name(Veryfats1599645188567)'Very fats'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Broooks', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Broooks1599221558583)'Broooks'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', '2020', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(20201599147149106)'2020'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', '254Glock', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(254Glock1599569494651)'254Glock'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Abel', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Abel1599464025893)'Abel'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Alexa', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Alexa1599557607978)'Alexa'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Andrew Watts', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(AndrewWatts1599144553996)'Andrew Watts'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Busy', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Busy1599559723432)'Busy'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Cardi', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Cardi1599569468209)'Cardi'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Clemo', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Clemo1599221473000)'Clemo'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Clon', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Clon1599569543362)'Clon'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Comodore', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Comodore1599463826401)'Comodore'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Comrade', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Comrade1599664745661)'Comrade'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Cooper Phil', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(CooperPhil1599144599479)'Cooper Phil'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Disturb', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Disturb1599665062738)'Disturb'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Dudu', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Dudu1599645410044)'Dudu'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Erick', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Erick1599734121151)'Erick'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'First Layer', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(FirstLayer1599463905818)'First Layer'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Glock', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Glock1599580905730)'Glock'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Gomongo', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Gomongo1599463746195)'Gomongo'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Grace', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Grace1599569599918)'Grace'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Henry', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Henry1599210937770)'Henry'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Home Alone', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(HomeAlone1599144524188)'Home Alone'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'James', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(James1599210943727)'James'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Jamo', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Jamo1599221465693)'Jamo'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Joel', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Joel1599557736045)'Joel'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'John Allen', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(JohnAllen1599144390263)'John Allen'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'John Kay', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(JohnKay1599210868122)'John Kay'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Kali', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Kali1599221504661)'Kali'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Karanja', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Karanja1599211015378)'Karanja'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Kev', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Kev1599058769862)'Kev'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Kimani', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Kimani1599210926973)'Kimani'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Kimonda', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Kimonda1599211004900)'Kimonda'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'King Kosa', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(KingKosa1599569726990)'King Kosa'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Kinuthia', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Kinuthia1599734017515)'Kinuthia'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Lebron', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Lebron1599557725925)'Lebron'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Lima', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Lima1599645323459)'Lima'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Loan', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Loan1599210896616)'Loan'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Mark Smith', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(MarkSmith)'Mark Smith'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Meghan', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Meghan1599569567326)'Meghan'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Nyauma', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Nyauma1599210983879)'Nyauma'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Scribe', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Scribe1599645240974)'Scribe'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Shen Yeng', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(ShenYeng1599569685887)'Shen Yeng'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Soi', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Soi1599734190999)'Soi'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Switch', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Switch1599645085995)'Switch'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Tim Joes', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(TimJoes1599144424859)'Tim Joes'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Trepoz', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Trepoz1599221497512)'Trepoz'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Trevor', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Trevor1599144536281)'Trevor'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'Troy', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Troy1599144360617)'Troy'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'afa', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(afa1599645004939)'afa'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'cxcx', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(cxcx1599551790384)'cxcx'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'dfdd', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(dfdd1599551799173)'dfdd'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'dssd', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(dssd1599552004115)'dssd'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'fgfgf', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(fgfgf1599551987166)'fgfgf'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'giri', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(giri1599645613143)'giri'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'high grade', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(highgrade1599645597889)'high grade'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'malik', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(malik1599664876144)'malik'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'marcus', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(marcus1599650918612)'marcus'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'marley', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(marley1599650874712)'marley'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'rights', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(rights1599650868011)'rights'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'rudelyt', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(rudelyt1599664917218)'rudelyt'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'sasa', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(sasa1599551852678)'sasa'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'tint', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(tint1599664800144)'tint'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'person', 'tonight', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(tonight1599664781376)'tonight'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'ulan_pa', 'Chrus', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(ulan_pa):item:name(Chrus1599559702930)'Chrus'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'ulan_pa', 'We go', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(ulan_pa):item:name(Wego1599559866517)'We go'", csid: '1111-2222-3333-4444' }], - ['personauthorities', 'ulan_pa', 'panda nayo', { refname: "urn:cspace:core.collectionspace.org:personauthorities:name(ulan_pa):item:name(pandanayo1599645094507)'panda nayo'", csid: '1111-2222-3333-4444' }], - ['placeauthorities', 'place', 'Chillspot', { refname: "urn:cspace:core.collectionspace.org:placeauthorities:name(place):item:name(Chillspot1599145441945)'Chillspot'", csid: '1111-2222-3333-4444' }], - ['placeauthorities', 'tgn_place', 'mzingga', { refname: "urn:cspace:core.collectionspace.org:placeauthorities:name(tgn_place):item:name(mzingga1599645587502)'mzingga'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'agequalifier', 'older than', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(agequalifier):item:name(olderthan)'older than'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'collectionmethod', 'donation', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(collectionmethod):item:name(donation)'donation'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'collectionmethod', 'excavation', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(collectionmethod):item:name(excavation)'excavation'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'conditioncheckmethod', 'Observed', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(conditioncheckmethod):item:name(observed)'Observed'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'conditioncheckreason', 'Damaged in transit', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(conditioncheckreason):item:name(damagedintransit)'Damaged in transit'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'conditionfitness', 'Reasonable', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(conditionfitness):item:name(reasonable)'Reasonable'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'conservationstatus', 'Analysis complete', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(conservationstatus):item:name(analysiscomplete)'Analysis complete'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'conservationstatus', 'Treatment approved', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(conservationstatus):item:name(treatmentapproved)'Treatment approved'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'conservationstatus', 'Treatment in progress', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(conservationstatus):item:name(treatmentinprogress)'Treatment in progress'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'currency', 'Canadian Dollar', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(currency):item:name(CAD)'Canadian Dollar'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'currency', 'Danish Krone', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(currency):item:name(DKK)'Danish Krone'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'currency', 'Euro', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(currency):item:name(EUR)'Euro'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'currency', 'Pound Sterling', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(currency):item:name(GBP)'Pound Sterling'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'currency', 'Swedish Krona', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(currency):item:name(SEK)'Swedish Krona'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'currency', 'Swiss Franc', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(currency):item:name(CHF)'Swiss Franc'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'datecertainty', 'Circa', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(datecertainty):item:name(circa)'Circa'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'dateera', 'BCE', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(dateera):item:name(bce)'BCE'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'dateera', 'CE', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'datequalifier', 'Day(s)', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(datequalifier):item:name(days)'Day(s)'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'datequalifier', 'Year(s)', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(datequalifier):item:name(years)'Year(s)'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'deaccessionapprovalgroup', 'board of trustees', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(deaccessionapprovalgroup):item:name(board_of_trustees)'board of trustees'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'deaccessionapprovalgroup', 'collection committee', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(deaccessionapprovalgroup):item:name(collection_committee)'collection committee'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'deaccessionapprovalgroup', 'executive committee', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(deaccessionapprovalgroup):item:name(executive_committee)'executive committee'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'deaccessionapprovalstatus', 'approved', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(deaccessionapprovalstatus):item:name(approved)'approved'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'deaccessionapprovalstatus', 'not approved', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(deaccessionapprovalstatus):item:name(not_approved)'not approved'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'deaccessionapprovalstatus', 'not required', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(deaccessionapprovalstatus):item:name(not_required)'not required'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'disposalmethod', 'destruction', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(disposalmethod):item:name(destruction)'destruction'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'entrymethod', 'Found on doorstep', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(entrymethod):item:name(foundondoorstep)'Found on doorstep'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'entrymethod', 'Post', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(entrymethod):item:name(post)'Post'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'examinationphase', 'before treatment', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(examinationphase):item:name(beforetreatment)'before treatment'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'examinationphase', 'during treatment', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(examinationphase):item:name(duringtreatment)'during treatment'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'exhibitionpersonrole', 'Educator', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(exhibitionpersonrole):item:name(educator)'Educator'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'exhibitionpersonrole', 'Public programs coordinator', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(exhibitionpersonrole):item:name(publicprogramscoordinator)'Public programs coordinator'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'exhibitionreferencetype', 'News article', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(exhibitionreferencetype):item:name(newsarticle)'News article'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'exhibitionreferencetype', 'Press release', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(exhibitionreferencetype):item:name(pressrelease)'Press release'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'exhibitionstatus', 'Preliminary object list created', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(exhibitionstatus):item:name(preliminaryobjectlistcreated)'Preliminary object list created'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'exhibitiontype', 'Temporary', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(exhibitiontype):item:name(temporary)'Temporary'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'inventorystatus', 'accession status unclear', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(inventorystatus):item:name(accessionstatusunclear)'accession status unclear'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'inventorystatus', 'destroyed', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(inventorystatus):item:name(destroyed)'destroyed'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'inventorystatus', 'unknown', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(inventorystatus):item:name(unknown)'unknown'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'languages', 'Ancient Greek', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(languages):item:name(grc)'Ancient Greek'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'languages', 'Armenian', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(languages):item:name(hye)'Armenian'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'languages', 'English', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(languages):item:name(eng)'English'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'languages', 'French', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(languages):item:name(fra)'French'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'languages', 'Malaysian', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(languages):item:name(mal)'Malaysian'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'languages', 'Spanish', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(languages):item:name(spa)'Spanish'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'languages', 'Swahili', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(languages):item:name(swa)'Swahili'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'loanoutstatus', 'Authorized', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(loanoutstatus):item:name(authorized)'Authorized'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'loanoutstatus', 'Photography requested', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(loanoutstatus):item:name(photographyrequested)'Photography requested'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'loanoutstatus', 'Refused', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(loanoutstatus):item:name(refused)'Refused'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'loanoutstatus', 'Returned', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(loanoutstatus):item:name(returned)'Returned'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'newsarticle', 'News article', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(exhibitionreferencetype):item:name(newsarticle)'News article'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'otherpartyrole', 'Preparator', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(otherpartyrole):item:name(preparator)'Preparator'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'otherpartyrole', 'Technician', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(otherpartyrole):item:name(technician)'Technician'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'publishto', 'CollectionSpace Public Browser', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(publishto):item:name(cspacepub)'CollectionSpace Public Browser'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'publishto', 'Culture Object', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(publishto):item:name(cultureobject)'Culture Object'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'publishto', 'None', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(publishto):item:name(none)'None'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'publishto', 'Omeka', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(publishto):item:name(omeka)'Omeka'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'treatmentpurpose', 'Exhibition', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(treatmentpurpose):item:name(exhibition)'Exhibition'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'uocauthorizationstatuses', 'Approved', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(uocauthorizationstatuses):item:name(approved)'Approved'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'uoccollectiontypes', 'archeology', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(uoccollectiontypes):item:name(uocarcheology)'archeology'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'uocmaterialtypes', 'bulb', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(uocmaterialtypes):item:name(bulb)'bulb'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'uocmethods', 'class', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(uocmethods):item:name(class)'class'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'uocstaffroles', 'greeter', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(uocstaffroles):item:name(greeter)'greeter'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'uocsubcollections', 'Asia', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(uocsubcollections):item:name(uocsubcollection02)'Asia'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'uocuserroles', 'faculty', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(uocuserroles):item:name(faculty)'faculty'", csid: '1111-2222-3333-4444' }], - ['vocabularies', 'uocusertypes', 'lecturer', { refname: "urn:cspace:core.collectionspace.org:vocabularies:name(uocusertypes):item:name(lecturer)'lecturer'", csid: '1111-2222-3333-4444' }], - ['workauthorities', 'work', 'Makeup', { refname: "urn:cspace:core.collectionspace.org:workauthorities:name(work):item:name(Makeup1608768998350)'Makeup'", csid: '1111-2222-3333-4444' }], + ['citationauthorities', 'citation', 'Arthur', + {refname: "urn:cspace:core.collectionspace.org:citationauthorities:name(citation):item:name(Arthur62605812848)'Arthur'", csid: '1111-2222-3333-4444'}], + ['citationauthorities', 'citation', 'Harding', + {refname: "urn:cspace:core.collectionspace.org:citationauthorities:name(citation):item:name(Harding2510592089)'Harding'", csid: '1111-2222-3333-4444'}], + ['citationauthorities', 'citation', 'Wanting', + {refname: "urn:cspace:core.collectionspace.org:citationauthorities:name(citation):item:name(Wanting1599560009399)'Wanting'", csid: '1111-2222-3333-4444'}], + ['citationauthorities', 'citation', 'makasi', + {refname: "urn:cspace:core.collectionspace.org:citationauthorities:name(citation):item:name(makasi1599645537547)'makasi'", csid: '1111-2222-3333-4444'}], + ['citationauthorities', 'worldcat', 'Chelse', + {refname: "urn:cspace:core.collectionspace.org:citationauthorities:name(worldcat):item:name(Chelse1599645525740)'Chelse'", csid: '1111-2222-3333-4444'}], + ['citationauthorities', 'worldcat', 'Patiently', + {refname: "urn:cspace:core.collectionspace.org:citationauthorities:name(worldcat):item:name(Patiently1599559993332)'Patiently'", csid: '1111-2222-3333-4444'}], + ['collectionobjects', '', 'Hierarchy Test 001', + {refname: "urn:cspace:core.collectionspace.org:collectionobjects:id(16161bff-b01a-4b55-95aa)'Hierarchy Test 001'", csid: '16161bff-b01a-4b55-95aa'}], + ['conceptauthorities', 'concept', 'Test', + {refname: "urn:cspace:core.collectionspace.org:conceptauthorities:name(concept):item:name(Test1599650854716)'Test'", csid: '1111-2222-3333-4444'}], + ['conceptauthorities', 'concept', 'Sample Concept 1', + {refname: "urn:cspace:core.collectionspace.org:conceptauthorities:name(concept):item:name(SampleConcept11581354228875)'Sample Concept 1'", csid: '1111-2222-3333-4444'}], + ['conceptauthorities', 'concept', 'Uno', + {refname: "urn:cspace:core.collectionspace.org:conceptauthorities:name(concept):item:name(Uno1599645111177)'Uno'", csid: '1111-2222-3333-4444'}], + ['conceptauthorities', 'occasion', 'Computer', + {refname: "urn:cspace:core.collectionspace.org:conceptauthorities:name(occasion):item:name(Computer1599734104251)'Computer'", csid: '1111-2222-3333-4444'}], + ['locationauthorities', 'indeterminate', '~Indeterminate Location~', + {refname: "urn:cspace:indeterminate:locationauthorities:name(indeterminate):item:name(indeterminate)'~Indeterminate Location~'", csid: '1111-2222-3333-4444'}], + ['locationauthorities', 'location', 'Abardares', + {refname: "urn:cspace:core.collectionspace.org:locationauthorities:name(location):item:name(Abardares1599557570049)'Abardares'", csid: '1111-2222-3333-4444'}], + ['locationauthorities', 'location', 'Kalif', + {refname: "urn:cspace:core.collectionspace.org:locationauthorities:name(location):item:name(Kalif1599734233745)'Kalif'", csid: '1111-2222-3333-4444'}], + ['locationauthorities', 'location', 'Khago', + {refname: "urn:cspace:core.collectionspace.org:locationauthorities:name(location):item:name(Khago1599559772718)'Khago'", csid: '1111-2222-3333-4444'}], + ['locationauthorities', 'location', 'Stay', + {refname: "urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Stay1599559824865)'Stay'", csid: '1111-2222-3333-4444'}], + ['locationauthorities', 'offsite_sla', 'Lavington', + {refname: "urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Lavington1599144699983)'Lavington'", csid: '1111-2222-3333-4444'}], + ['locationauthorities', 'offsite_sla', 'Ngong', + {refname: "urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Ngong1599557586466)'Ngong'", csid: '1111-2222-3333-4444'}], + ['locationauthorities', 'offsite_sla', 'Stay', + {refname: "urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Stay)'Stay'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', '2021', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(20211599147173971)'2021'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'Astroworld', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Astroworld1599650794829)'Astroworld'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'Broker', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Broker1599221487572)'Broker'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'But Ohh', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(ButOhh1599665031368)'But Ohh'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'Cuckoo', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Cuckoo1599463786824)'Cuckoo'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'Ibiza', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Ibiza1599650806827)'Ibiza'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'Joseph Hills', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(JosephHills1599463935463)'Joseph Hills'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'Kremling', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Kremling1599464161204)'Kremling'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'MMG', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(MMG1599569514486)'MMG'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'Martin', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Martin1599559712783)'Martin'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'Ninja', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Ninja1599147339325)'Ninja'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'Oval', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Oval1599650891221)'Oval'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'Podoa', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Podoa1599645346399)'Podoa'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'Rock Nation', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(RockNation1599569481908)'Rock Nation'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'Sidarec', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Sidarec1599210955079)'Sidarec'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'TIm Herod', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(TImHerod1599144655199)'TIm Herod'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'Tasia', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Tasia1599734050597)'Tasia'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'Tesla', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Tesla1599144565539)'Tesla'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'Walai', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(Walai1599645181370)'Walai'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'breakup', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(breakup1599559909048)'breakup'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'fggf', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(fggf1599552009173)'fggf'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'pandemic', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(pandemic1599645036126)'pandemic'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'pop', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(pop1599664789385)'pop'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'pupu', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(pupu1599645415676)'pupu'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'organization', 'tent', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(organization):item:name(tent1599664807586)'tent'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'ulan_oa', 'Again', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(ulan_oa):item:name(Again1599559881266)'Again'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'ulan_oa', 'Signal', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(ulan_oa):item:name(Signal1599559737158)'Signal'", csid: '1111-2222-3333-4444'}], + ['orgauthorities', 'ulan_oa', 'Very fats', + {refname: "urn:cspace:core.collectionspace.org:orgauthorities:name(ulan_oa):item:name(Veryfats1599645188567)'Very fats'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Broooks', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Broooks1599221558583)'Broooks'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', '2020', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(20201599147149106)'2020'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', '254Glock', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(254Glock1599569494651)'254Glock'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Abel', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Abel1599464025893)'Abel'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Alexa', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Alexa1599557607978)'Alexa'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Andrew Watts', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(AndrewWatts1599144553996)'Andrew Watts'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Busy', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Busy1599559723432)'Busy'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Cardi', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Cardi1599569468209)'Cardi'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Clemo', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Clemo1599221473000)'Clemo'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Clon', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Clon1599569543362)'Clon'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Comodore', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Comodore1599463826401)'Comodore'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Comrade', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Comrade1599664745661)'Comrade'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Cooper Phil', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(CooperPhil1599144599479)'Cooper Phil'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Disturb', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Disturb1599665062738)'Disturb'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Dudu', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Dudu1599645410044)'Dudu'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Erick', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Erick1599734121151)'Erick'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'First Layer', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(FirstLayer1599463905818)'First Layer'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Glock', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Glock1599580905730)'Glock'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Gomongo', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Gomongo1599463746195)'Gomongo'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Grace', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Grace1599569599918)'Grace'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Henry', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Henry1599210937770)'Henry'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Home Alone', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(HomeAlone1599144524188)'Home Alone'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'James', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(James1599210943727)'James'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Jamo', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Jamo1599221465693)'Jamo'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Joel', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Joel1599557736045)'Joel'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'John Allen', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(JohnAllen1599144390263)'John Allen'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'John Kay', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(JohnKay1599210868122)'John Kay'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Kali', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Kali1599221504661)'Kali'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Karanja', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Karanja1599211015378)'Karanja'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Kev', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Kev1599058769862)'Kev'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Kimani', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Kimani1599210926973)'Kimani'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Kimonda', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Kimonda1599211004900)'Kimonda'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'King Kosa', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(KingKosa1599569726990)'King Kosa'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Kinuthia', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Kinuthia1599734017515)'Kinuthia'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Lebron', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Lebron1599557725925)'Lebron'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Lima', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Lima1599645323459)'Lima'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Loan', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Loan1599210896616)'Loan'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Mark Smith', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(MarkSmith)'Mark Smith'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Meghan', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Meghan1599569567326)'Meghan'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Nyauma', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Nyauma1599210983879)'Nyauma'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Scribe', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Scribe1599645240974)'Scribe'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Shen Yeng', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(ShenYeng1599569685887)'Shen Yeng'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Soi', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Soi1599734190999)'Soi'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Switch', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Switch1599645085995)'Switch'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Tim Joes', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(TimJoes1599144424859)'Tim Joes'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Trepoz', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Trepoz1599221497512)'Trepoz'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Trevor', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Trevor1599144536281)'Trevor'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'Troy', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(Troy1599144360617)'Troy'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'afa', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(afa1599645004939)'afa'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'cxcx', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(cxcx1599551790384)'cxcx'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'dfdd', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(dfdd1599551799173)'dfdd'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'dssd', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(dssd1599552004115)'dssd'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'fgfgf', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(fgfgf1599551987166)'fgfgf'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'giri', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(giri1599645613143)'giri'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'high grade', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(highgrade1599645597889)'high grade'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'malik', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(malik1599664876144)'malik'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'marcus', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(marcus1599650918612)'marcus'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'marley', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(marley1599650874712)'marley'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'rights', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(rights1599650868011)'rights'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'rudelyt', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(rudelyt1599664917218)'rudelyt'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'sasa', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(sasa1599551852678)'sasa'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'tint', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(tint1599664800144)'tint'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'person', 'tonight', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(person):item:name(tonight1599664781376)'tonight'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'ulan_pa', 'Chrus', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(ulan_pa):item:name(Chrus1599559702930)'Chrus'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'ulan_pa', 'We go', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(ulan_pa):item:name(Wego1599559866517)'We go'", csid: '1111-2222-3333-4444'}], + ['personauthorities', 'ulan_pa', 'panda nayo', + {refname: "urn:cspace:core.collectionspace.org:personauthorities:name(ulan_pa):item:name(pandanayo1599645094507)'panda nayo'", csid: '1111-2222-3333-4444'}], + ['placeauthorities', 'place', 'Chillspot', + {refname: "urn:cspace:core.collectionspace.org:placeauthorities:name(place):item:name(Chillspot1599145441945)'Chillspot'", csid: '1111-2222-3333-4444'}], + ['placeauthorities', 'tgn_place', 'mzingga', + {refname: "urn:cspace:core.collectionspace.org:placeauthorities:name(tgn_place):item:name(mzingga1599645587502)'mzingga'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'agequalifier', 'older than', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(agequalifier):item:name(olderthan)'older than'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'collectionmethod', 'donation', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(collectionmethod):item:name(donation)'donation'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'collectionmethod', 'excavation', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(collectionmethod):item:name(excavation)'excavation'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'conditioncheckmethod', 'Observed', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(conditioncheckmethod):item:name(observed)'Observed'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'conditioncheckreason', 'Damaged in transit', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(conditioncheckreason):item:name(damagedintransit)'Damaged in transit'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'conditionfitness', 'Reasonable', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(conditionfitness):item:name(reasonable)'Reasonable'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'conservationstatus', 'Analysis complete', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(conservationstatus):item:name(analysiscomplete)'Analysis complete'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'conservationstatus', 'Treatment approved', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(conservationstatus):item:name(treatmentapproved)'Treatment approved'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'conservationstatus', 'Treatment in progress', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(conservationstatus):item:name(treatmentinprogress)'Treatment in progress'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'currency', 'Canadian Dollar', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(currency):item:name(CAD)'Canadian Dollar'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'currency', 'Danish Krone', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(currency):item:name(DKK)'Danish Krone'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'currency', 'Euro', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(currency):item:name(EUR)'Euro'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'currency', 'Pound Sterling', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(currency):item:name(GBP)'Pound Sterling'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'currency', 'Swedish Krona', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(currency):item:name(SEK)'Swedish Krona'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'currency', 'Swiss Franc', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(currency):item:name(CHF)'Swiss Franc'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'datecertainty', 'Circa', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(datecertainty):item:name(circa)'Circa'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'dateera', 'BCE', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(dateera):item:name(bce)'BCE'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'dateera', 'CE', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'datequalifier', 'Day(s)', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(datequalifier):item:name(days)'Day(s)'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'datequalifier', 'Year(s)', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(datequalifier):item:name(years)'Year(s)'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'deaccessionapprovalgroup', 'board of trustees', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(deaccessionapprovalgroup):item:name(board_of_trustees)'board of trustees'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'deaccessionapprovalgroup', 'collection committee', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(deaccessionapprovalgroup):item:name(collection_committee)'collection committee'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'deaccessionapprovalgroup', 'executive committee', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(deaccessionapprovalgroup):item:name(executive_committee)'executive committee'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'deaccessionapprovalstatus', 'approved', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(deaccessionapprovalstatus):item:name(approved)'approved'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'deaccessionapprovalstatus', 'not approved', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(deaccessionapprovalstatus):item:name(not_approved)'not approved'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'deaccessionapprovalstatus', 'not required', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(deaccessionapprovalstatus):item:name(not_required)'not required'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'disposalmethod', 'destruction', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(disposalmethod):item:name(destruction)'destruction'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'entrymethod', 'Found on doorstep', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(entrymethod):item:name(foundondoorstep)'Found on doorstep'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'entrymethod', 'Post', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(entrymethod):item:name(post)'Post'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'examinationphase', 'before treatment', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(examinationphase):item:name(beforetreatment)'before treatment'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'examinationphase', 'during treatment', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(examinationphase):item:name(duringtreatment)'during treatment'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'exhibitionpersonrole', 'Educator', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(exhibitionpersonrole):item:name(educator)'Educator'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'exhibitionpersonrole', 'Public programs coordinator', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(exhibitionpersonrole):item:name(publicprogramscoordinator)'Public programs coordinator'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'exhibitionreferencetype', 'News article', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(exhibitionreferencetype):item:name(newsarticle)'News article'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'exhibitionreferencetype', 'Press release', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(exhibitionreferencetype):item:name(pressrelease)'Press release'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'exhibitionstatus', 'Preliminary object list created', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(exhibitionstatus):item:name(preliminaryobjectlistcreated)'Preliminary object list created'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'exhibitiontype', 'Temporary', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(exhibitiontype):item:name(temporary)'Temporary'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'inventorystatus', 'accession status unclear', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(inventorystatus):item:name(accessionstatusunclear)'accession status unclear'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'inventorystatus', 'destroyed', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(inventorystatus):item:name(destroyed)'destroyed'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'inventorystatus', 'unknown', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(inventorystatus):item:name(unknown)'unknown'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'languages', 'Ancient Greek', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(languages):item:name(grc)'Ancient Greek'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'languages', 'Armenian', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(languages):item:name(hye)'Armenian'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'languages', 'English', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(languages):item:name(eng)'English'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'languages', 'French', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(languages):item:name(fra)'French'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'languages', 'Malaysian', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(languages):item:name(mal)'Malaysian'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'languages', 'Spanish', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(languages):item:name(spa)'Spanish'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'languages', 'Swahili', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(languages):item:name(swa)'Swahili'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'loanoutstatus', 'Authorized', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(loanoutstatus):item:name(authorized)'Authorized'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'loanoutstatus', 'Photography requested', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(loanoutstatus):item:name(photographyrequested)'Photography requested'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'loanoutstatus', 'Refused', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(loanoutstatus):item:name(refused)'Refused'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'loanoutstatus', 'Returned', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(loanoutstatus):item:name(returned)'Returned'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'newsarticle', 'News article', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(exhibitionreferencetype):item:name(newsarticle)'News article'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'otherpartyrole', 'Preparator', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(otherpartyrole):item:name(preparator)'Preparator'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'otherpartyrole', 'Technician', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(otherpartyrole):item:name(technician)'Technician'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'publishto', 'CollectionSpace Public Browser', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(publishto):item:name(cspacepub)'CollectionSpace Public Browser'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'publishto', 'Culture Object', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(publishto):item:name(cultureobject)'Culture Object'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'publishto', 'None', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(publishto):item:name(none)'None'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'publishto', 'Omeka', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(publishto):item:name(omeka)'Omeka'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'treatmentpurpose', 'Exhibition', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(treatmentpurpose):item:name(exhibition)'Exhibition'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'uocauthorizationstatuses', 'Approved', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(uocauthorizationstatuses):item:name(approved)'Approved'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'uoccollectiontypes', 'archeology', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(uoccollectiontypes):item:name(uocarcheology)'archeology'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'uocmaterialtypes', 'bulb', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(uocmaterialtypes):item:name(bulb)'bulb'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'uocmethods', 'class', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(uocmethods):item:name(class)'class'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'uocstaffroles', 'greeter', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(uocstaffroles):item:name(greeter)'greeter'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'uocsubcollections', 'Asia', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(uocsubcollections):item:name(uocsubcollection02)'Asia'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'uocuserroles', 'faculty', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(uocuserroles):item:name(faculty)'faculty'", csid: '1111-2222-3333-4444'}], + ['vocabularies', 'uocusertypes', 'lecturer', + {refname: "urn:cspace:core.collectionspace.org:vocabularies:name(uocusertypes):item:name(lecturer)'lecturer'", csid: '1111-2222-3333-4444'}], + ['workauthorities', 'work', 'Makeup', + {refname: "urn:cspace:core.collectionspace.org:workauthorities:name(work):item:name(Makeup1608768998350)'Makeup'", csid: '1111-2222-3333-4444'}], ] populate(cache, terms) end diff --git a/spec/fcart_helpers.rb b/spec/fcart_helpers.rb index 5f897767..549d4152 100644 --- a/spec/fcart_helpers.rb +++ b/spec/fcart_helpers.rb @@ -22,7 +22,7 @@ def fcart_cache def populate_fcart(cache) terms = [ ['personauthorities', 'person', 'Elizabeth', - { refname: "urn:cspace:fcart.collectionspace.org:personauthorities:name(person):item:name(Elizabeth123)'Elizabeth'", csid: '1111-2222-3333-4444' }] ] + {refname: "urn:cspace:fcart.collectionspace.org:personauthorities:name(person):item:name(Elizabeth123)'Elizabeth'", csid: '1111-2222-3333-4444'}] ] populate(cache, terms) end diff --git a/spec/lhmc_helpers.rb b/spec/lhmc_helpers.rb index dcd91aee..0855f2e4 100644 --- a/spec/lhmc_helpers.rb +++ b/spec/lhmc_helpers.rb @@ -22,9 +22,9 @@ def lhmc_cache def populate_lhmc(cache) terms = [ ['personauthorities', 'person', 'Ann Analyst', - { refname: "urn:cspace:lhmc.collectionspace.org:personauthorities:name(person):item:name(AnnAnalyst1594848799340)'Ann Analyst'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:lhmc.collectionspace.org:personauthorities:name(person):item:name(AnnAnalyst1594848799340)'Ann Analyst'", csid: '1111-2222-3333-4444'}], ['vocabularies', 'agerange', 'adolescent 26-75%', - { refname: "urn:cspace:lhmc.collectionspace.org:vocabularies:name(agerange):item:name(adolescent_26_75)'adolescent 26-75%'", csid: '1111-2222-3333-4444' }], + {refname: "urn:cspace:lhmc.collectionspace.org:vocabularies:name(agerange):item:name(adolescent_26_75)'adolescent 26-75%'", csid: '1111-2222-3333-4444'}], ] populate(cache, terms) end diff --git a/utils/csv-to-datahashes.rb b/utils/csv-to-datahashes.rb index 90b1496e..fe05ffbc 100644 --- a/utils/csv-to-datahashes.rb +++ b/utils/csv-to-datahashes.rb @@ -15,11 +15,11 @@ end options = {} -OptionParser.new{ |opts| +OptionParser.new do |opts| opts.banner = 'Usage: ruby csv-to-datahashes.rb -i PATH_TO_CSV' opts.on('-i', '--input PATH_TO_CSV', - 'Path to CSV file. One JSON file will be created per row in the same directory.'){ |i| + 'Path to CSV file. One JSON file will be created per row in the same directory.') do |i| options[:input] = i unless File.file?(i) puts "File #{i} does not exist" @@ -29,12 +29,12 @@ puts "File #{i} does not have '.csv' suffix" exit end - } - opts.on('-h', '--help', 'Prints this help'){ + end + opts.on('-h', '--help', 'Prints this help') do puts opts exit - } -}.parse! + end +end.parse! datahashes = [] diff --git a/utils/datahash_to_csv.rb b/utils/datahash_to_csv.rb index 70186775..347d3bdc 100644 --- a/utils/datahash_to_csv.rb +++ b/utils/datahash_to_csv.rb @@ -16,10 +16,10 @@ end options = {} -OptionParser.new{ |opts| +OptionParser.new do |opts| opts.banner = 'Usage: ruby datahash-to-csv.rb -i PATH_TO_JSON' - opts.on('-i', '--input PATH_TO_JSON', 'Path to JSON datahash file.'){ |i| + opts.on('-i', '--input PATH_TO_JSON', 'Path to JSON datahash file.') do |i| options[:input] = i unless File.file?(i) puts "File #{i} does not exist" @@ -29,12 +29,12 @@ puts "File #{i} does not have '.json' suffix" exit end - } - opts.on('-h', '--help', 'Prints this help'){ + end + opts.on('-h', '--help', 'Prints this help') do puts opts exit - } -}.parse! + end +end.parse! dir = options[:input]['/'] ? options[:input].sub(/\/[^\/]+$/, '/') : '' filename_stub = options[:input].sub(/^.*\//, '').sub('.json', '')