lib/revs-utils.rb in revs-utils-2.1.6 vs lib/revs-utils.rb in revs-utils-2.1.7

- old
+ new

@@ -24,9 +24,13 @@ # level constant so it can be reused throughout the pre-assembly run as a constant # This cached set of terms can be re-generated with "ruby devel/revs_lc_automobile_terms.rb" AUTOMOBILE_LC_TERMS= File.open(REVS_LC_TERMS_FILENAME,'rb'){|io| Marshal.load(io)} if File.exists?(REVS_LC_TERMS_FILENAME) REVS_MANIFEST_HEADERS_FILE = File.open(REVS_MANIFEST_HEADERS_FILEPATH) REVS_MANIFEST_HEADERS = YAML.load( REVS_MANIFEST_HEADERS_FILE) + + ARCHIVE_DRUIDS={:revs=>'nt028fd5773',:roadandtrack=>'mr163sv5231'} # a hash of druids of the master archives, keys are arbitrary but druids must match the druids in DOR + # these druids will be used to set the archive name in each document + MULTI_COLLECTION_ARCHIVES=[:revs] # list the keys from the hash above for any archives that contain multiple collections (like Revs), for which each item in DOR belongs to both a parent collection and the master archive collection ... since we do not want to also add the master archive name as another collection druid to each record, we skip them # these are used in the revs solr document in the main revs digital library rails app, as well as the revs-indexing-service app def revs_field_mappings { :title=>{:field=>'title_tsi',:default=>'Untitled'},