Class: IndexerCommonConfig
- Inherits:
-
Object
- Object
- IndexerCommonConfig
- Defined in:
- indexer/app/lib/indexer_common_config.rb
Class Method Summary collapse
Class Method Details
.do_not_index ⇒ Object
80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'indexer/app/lib/indexer_common_config.rb', line 80 def self.do_not_index # ANW-1065 # #sanitize_json uses this hash to clean up sensitive data, preventing it from being indexed in the json field in the indexer doc. { "agent_person" => {:location => [], :to_clean => "agent_contacts"}, "agent_family" => {:location => [], :to_clean => "agent_contacts"}, "agent_corporate_entity" => {:location => [], :to_clean => "agent_contacts"}, "agent_software" => {:location => [], :to_clean => "agent_contacts"}, } end |
.global_types ⇒ Object
27 28 29 30 31 32 33 34 35 36 |
# File 'indexer/app/lib/indexer_common_config.rb', line 27 def self.global_types [ :agent_person, :agent_software, :agent_family, :agent_corporate_entity, :location, :subject ] end |
.record_types ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'indexer/app/lib/indexer_common_config.rb', line 3 def self.record_types [ :resource, :digital_object, :accession, :agent_person, :agent_software, :agent_family, :agent_corporate_entity, :subject, :location, :event, :top_container, :classification, :container_profile, :location_profile, :archival_object, :digital_object_component, :classification_term, :assessment, :job ] end |
.resolved_attributes ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'indexer/app/lib/indexer_common_config.rb', line 38 def self.resolved_attributes [ 'location_profile', 'container_profile', 'container_locations', 'subjects', 'places', # EAD export depends on this 'linked_agents', 'linked_records', 'classifications', # EAD export depends on this 'digital_object', 'agent_representation', 'repository', 'repository::agent_representation', 'related_agents', # EAD export depends on this 'top_container', # EAD export depends on this 'top_container::container_profile', # Assessment module depends on these 'related_agents', 'records', 'collections', 'surveyed_by', 'reviewer', 'creator', #Accessions module depends on these 'related_accessions', #Container profile depends on this 'notes', ] end |