diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index a0bbf672..46aef30e 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -37,6 +37,11 @@ These changes are merged into the `main` branch, but have not been released. Aft == Releases +=== 2.0.1 - 2023-10-03 +==== Bugfixes + +* Fix bug in extraction of search_path for authorities (affected chronology, organization, location) + === 2.0.1 - 2023-09-19 ==== Bugfixes * Fix failure in `ProfileComparison` class and add integration test diff --git a/Gemfile.lock b/Gemfile.lock index 1dae6bd9..766c7f27 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -9,7 +9,7 @@ GIT PATH remote: . specs: - cspace_config_untangler (2.0.0) + cspace_config_untangler (2.0.1) dry-configurable (~> 0.12) facets (~> 3.1.0) http (~> 4.4.1) @@ -48,9 +48,7 @@ GEM http-parser (1.2.3) ffi-compiler (>= 1.0, < 2.0) method_source (1.0.0) - mini_portile2 (2.8.4) - nokogiri (1.14.3) - mini_portile2 (~> 2.8.0) + nokogiri (1.14.3-x86_64-darwin) racc (~> 1.4) pry (0.13.1) coderay (~> 1.1) @@ -75,7 +73,7 @@ GEM unf (0.1.4) unf_ext unf_ext (0.0.8.2) - zeitwerk (2.6.11) + zeitwerk (2.6.12) PLATFORMS ruby diff --git a/data/mapper_manifests/community_profile_mappers_release_7_2.json b/data/mapper_manifests/community_profile_mappers_release_7_2.json index 1d555d27..61811dba 100644 --- a/data/mapper_manifests/community_profile_mappers_release_7_2.json +++ b/data/mapper_manifests/community_profile_mappers_release_7_2.json @@ -20,7 +20,7 @@ "profile": "anthro", "version": "7-0-0", "type": "chronology-era", - "digest": "36f518bc1933151ef60cd27784e673ad4d9d8260f2e22a377bc45edeaf2a4655", + "digest": "278c7792a7a2c4c6150676506636ced7f986d2637d4518d0e2c58de781602c8c", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_chronology-era.json" }, @@ -28,7 +28,7 @@ "profile": "anthro", "version": "7-0-0", "type": "chronology-event", - "digest": "3728280f04bffcbe27aba5b76defcafaece9b21117da7a3a7cec91fff0222053", + "digest": "be07cfe259929b761390851f3f9d7d08690cc7777d34ddf0dd663bda446de6ce", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_chronology-event.json" }, @@ -36,7 +36,7 @@ "profile": "anthro", "version": "7-0-0", "type": "chronology-field-collection", - "digest": "ff8d982871aa1c38153f82557639026cb4b39928ce7cf2abe8ed547eb78ec7ef", + "digest": "528c3322453537c9ed4a8d0f6d97abbedc9d5614afa52576412170ef5c8ad09a", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_chronology-field-collection.json" }, @@ -204,7 +204,7 @@ "profile": "anthro", "version": "7-0-0", "type": "location-local", - "digest": "a2c3a4a87e2c5cee83998a4442943beabee8b70bf58c7ecab1204ae9ce185043", + "digest": "0f9743ac112719d2e79efa6ababfce6520b373b2ccf3edb5f5e942f5003b1ecc", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_location-local.json" }, @@ -212,7 +212,7 @@ "profile": "anthro", "version": "7-0-0", "type": "location-offsite", - "digest": "cab4bc38543ac375f23733d9774498388f89a4c6836ff751015b1d6956245f2f", + "digest": "578deab29292fd29b9c54b352a3035bea2b2dd086cda186ed1ccf9576cd99053", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_location-offsite.json" }, @@ -260,7 +260,7 @@ "profile": "anthro", "version": "7-0-0", "type": "organization-local", - "digest": "e7a348340d406a1d0092cc2530a1dfecc9518a6b6ce0c1b931fdca0058a9882f", + "digest": "37e0437597cf2a57b296f5472d71c44edd227ce0fc88856e89d03ec9dabd5827", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_organization-local.json" }, @@ -268,7 +268,7 @@ "profile": "anthro", "version": "7-0-0", "type": "organization-ulan", - "digest": "1bf4828096c335009bfb91d68b2eecaef655ca3eceb2ef9cb6a1d226684e5f8d", + "digest": "7d73ac154b3cfb3a794d0527347460e1d7571a561bd9987f412137ae7edbb1fe", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_organization-ulan.json" }, @@ -524,7 +524,7 @@ "profile": "bonsai", "version": "5-0-6", "type": "location-local", - "digest": "e8551d65a79f4bdf2fb0d0a91c7a1dd6d1df49efc5718e1c3c859b336f96ae85", + "digest": "ada79b0b66b92b9f96864d3a6d4f5b017500788cdaaf9703621bdeb40f0c4c1d", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_location-local.json" }, @@ -532,7 +532,7 @@ "profile": "bonsai", "version": "5-0-6", "type": "location-offsite", - "digest": "9344d664ea8706880df6061ef3e87f39d37d64fb366be2f84dace7d53563db9c", + "digest": "846f043b36556b03e6716bda6c26e71e60b18f0a0da8c9ee1a350a617aa92865", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_location-offsite.json" }, @@ -580,7 +580,7 @@ "profile": "bonsai", "version": "5-0-6", "type": "organization-local", - "digest": "c43cc67ce772ff0e82daac0988cb0daeb0437e8eabaea5827a434125f7555a35", + "digest": "f837236f418316a4f63117c48e8dba9d7c178036843b34f719ea47f7e4c13800", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_organization-local.json" }, @@ -588,7 +588,7 @@ "profile": "bonsai", "version": "5-0-6", "type": "organization-ulan", - "digest": "9db2609c56db4dee70028c8422dab389534992d079e31c811b7d2f35b80034e6", + "digest": "1840e75c161680000d7e51c0944e0e3302a1c647e0e5228c8cfd230d902a660f", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_organization-ulan.json" }, @@ -820,7 +820,7 @@ "profile": "botgarden", "version": "3-0-6", "type": "location-local", - "digest": "03e9e95b91c93d3b4dea8595b4af2884fc2854df08ed8049fc1055a30e936127", + "digest": "525f311004a97580b17a17c62f26aaf6430088facd7223cc5d7107520700f515", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_location-local.json" }, @@ -828,7 +828,7 @@ "profile": "botgarden", "version": "3-0-6", "type": "location-offsite", - "digest": "25a5bc880e57ff03ff6708f9ce03396b5eb009b052c2992c4091a04a845015c8", + "digest": "e388d7ae9d0e9c0cb46ac0f381ba760066d4f84a4b805142d5d9a6875ea10952", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_location-offsite.json" }, @@ -876,7 +876,7 @@ "profile": "botgarden", "version": "3-0-6", "type": "organization-local", - "digest": "0f3f15935c88e9426b9c21ec67eb267f38337e4c8caae0719e6b3deccc801954", + "digest": "75d2898adc039950a67f089d249ad822d625bfb3af12124c831f07e19792c3e8", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_organization-local.json" }, @@ -884,7 +884,7 @@ "profile": "botgarden", "version": "3-0-6", "type": "organization-ulan", - "digest": "cb642a007d8241b2ffa19ef9efcbacca074de02808bdf94a0562c3c537036711", + "digest": "ccb391d28babb4f410209fbb657397da1dd4764a7b338198130672cd5018b942", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_organization-ulan.json" }, @@ -1012,7 +1012,7 @@ "profile": "core", "version": "7-2-0", "type": "chronology-era", - "digest": "1a804061a092979aef97c3f9dfa6d352df06191f9485d0ce0b16c062d24288b5", + "digest": "8bc3a4f67b378c1dbf3d354fc0a58ea3fa1bbaf863444f4f1cadbccbc282e3c6", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/core/core_7-2-0_chronology-era.json" }, @@ -1020,7 +1020,7 @@ "profile": "core", "version": "7-2-0", "type": "chronology-event", - "digest": "157abecab682c57489d07c8d3d115df7c0c8917eaf7a07bd707faf0c6772d713", + "digest": "9234543d919bac47aeae85d0c0aad7d4518a46c80ef1400b51d45176c5eaaeee", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/core/core_7-2-0_chronology-event.json" }, @@ -1164,7 +1164,7 @@ "profile": "core", "version": "7-2-0", "type": "location-local", - "digest": "822a56f1687b58c79109ba916ca0b987301de581b38f354017763f7c42bd5591", + "digest": "8cc4d7f23951bc950f4eeafb84a4306d5ecbdfbf75acb2995f6b35d5ee088876", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/core/core_7-2-0_location-local.json" }, @@ -1172,7 +1172,7 @@ "profile": "core", "version": "7-2-0", "type": "location-offsite", - "digest": "ff0f284e7c519ce1b720400bd67e204b2d22484eceda071ea98490c5f52c0f36", + "digest": "6b8d410428cc45028c465204f45c373165ed9086ded2ec68ebc2961a423a7785", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/core/core_7-2-0_location-offsite.json" }, @@ -1220,7 +1220,7 @@ "profile": "core", "version": "7-2-0", "type": "organization-local", - "digest": "88fdecddca3432441c82a06a5e3c81656bc3d4698bfd5342ee70a2b3e30695b5", + "digest": "432b30c9bd3d4d19b7625a73e1bb2f8d314868c03b78e6ac88845a3dcc1291f1", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/core/core_7-2-0_organization-local.json" }, @@ -1228,7 +1228,7 @@ "profile": "core", "version": "7-2-0", "type": "organization-ulan", - "digest": "55d49b3d60c10948ce8034004e559c83ea4bbfce2441a93b5bb59a75cc6eaaab", + "digest": "7798fe81cfad7116f0af5713940f87acd4cdd4c3e22a61f0d9c75b038074ffab", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/core/core_7-2-0_organization-ulan.json" }, @@ -1332,7 +1332,7 @@ "profile": "fcart", "version": "6-0-0", "type": "chronology-era", - "digest": "c093b4ae96b23ce999241da5d96a41993515d74548be81247d7093aeb553c2bb", + "digest": "c10dd887cf262e50922e1407bba42930ac4cc493a51a7010e950ac584d65e1b9", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_chronology-era.json" }, @@ -1340,7 +1340,7 @@ "profile": "fcart", "version": "6-0-0", "type": "chronology-event", - "digest": "2085d32826c6243c2ef4d8bef419885127658bc0f26d56a1f9e2c8a019895f3c", + "digest": "100bc6c162cba0a2db7c3aa220f8b858af6eb893e817d920f5e39e99c74e32e9", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_chronology-event.json" }, @@ -1492,7 +1492,7 @@ "profile": "fcart", "version": "6-0-0", "type": "location-local", - "digest": "6d0743c8e10e0abd78557a40082508c0e409ebdf5e633a8716ac191a316a3969", + "digest": "3de9333a4a8870201c4a321b8dc3ff6763359ef06cf842960f1b2b0646e6c6fe", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_location-local.json" }, @@ -1500,7 +1500,7 @@ "profile": "fcart", "version": "6-0-0", "type": "location-offsite", - "digest": "8d4e8b76a2072f735519a52db99fd6e9ef0a94142c493ca6f73a6f3a998144d8", + "digest": "d5239baaefacaf544c78966edaeb0a97416f189db5acec0effcac7b78dd45cd8", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_location-offsite.json" }, @@ -1548,7 +1548,7 @@ "profile": "fcart", "version": "6-0-0", "type": "organization-local", - "digest": "1cb45bf5cf9cc0a203f37266cb758fda380d0f083e981624d2dc433df636c13a", + "digest": "388dbac9ff994e0f6d303f4ea22eda684885eca0c51bf7965bd87d54a523db4a", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_organization-local.json" }, @@ -1556,7 +1556,7 @@ "profile": "fcart", "version": "6-0-0", "type": "organization-ulan", - "digest": "39d9e77dbdf8838c42cb998a91b30bc2d8f644d1d6d7a817ee41b4fdd9b4d96b", + "digest": "4ecd055cc1e9d81e5e555a8815d6ce54aff1f107a0af3a95defe4a9fe7f0c4aa", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_organization-ulan.json" }, @@ -1772,7 +1772,7 @@ "profile": "herbarium", "version": "2-0-9", "type": "location-local", - "digest": "489987973265b76a16bd78450f439f6604a4dd2e74aa68f873f55d79bca5d44e", + "digest": "388fb64348ea2edf1fc18b6cc574104bdeadfd2de6a2c77c122b506300ff133e", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_location-local.json" }, @@ -1780,7 +1780,7 @@ "profile": "herbarium", "version": "2-0-9", "type": "location-offsite", - "digest": "b6eaa7a8594154e56c464f84725f9b01f0c52a6c52cd092d82f3a797a844ffab", + "digest": "5843319c0417b08279660396f477e556d4a1aa7e84cacd93dee0bb272684187a", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_location-offsite.json" }, @@ -1820,7 +1820,7 @@ "profile": "herbarium", "version": "2-0-9", "type": "organization-local", - "digest": "8223ae1cc071e28fe790ec594d984887f223e1d521462b8fdbbe04e34b7abdef", + "digest": "ac23fe17f445d87b7ab3206c3ed8ebb55e3756f68bdb6f68b1f06c8dfaa04f2d", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_organization-local.json" }, @@ -1828,7 +1828,7 @@ "profile": "herbarium", "version": "2-0-9", "type": "organization-ulan", - "digest": "bcf0f715e524772ff95389fa2f47f9f3ff4f3bda2c17d8a91bdbccf602bb581e", + "digest": "c0c0dc2d6ebf88a34f83141cf6ba2c2af12fd8d5dc31755d6c29ba8a01106977", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_organization-ulan.json" }, @@ -1940,7 +1940,7 @@ "profile": "lhmc", "version": "6-0-0", "type": "chronology-era", - "digest": "fb8bfb76026b79929e623b3bd9d5f6d7e6b88c59b68922a9a071f13b6ba55cc0", + "digest": "55c01440951cd53096d143d88d86c0be863cb42ecc87b687accbb7a072a92e90", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_chronology-era.json" }, @@ -1948,7 +1948,7 @@ "profile": "lhmc", "version": "6-0-0", "type": "chronology-event", - "digest": "f1aa9498a2385b22c77b75e367eb24c0286c3296a7631b7a417af50ea21a598d", + "digest": "53671152e09d1aa8681b51928b275ddf7ee0fbdcd2caa52c13464975f1f3db6f", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_chronology-event.json" }, @@ -2084,7 +2084,7 @@ "profile": "lhmc", "version": "6-0-0", "type": "location-local", - "digest": "e0899465ce90d8b00961acddad30fb2b42a609c4b2f61dbdecb49d07da362fa6", + "digest": "1ab6a89045bcbad8722ce331964b702b94ce6c96ac5c978c228964730784519c", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_location-local.json" }, @@ -2092,7 +2092,7 @@ "profile": "lhmc", "version": "6-0-0", "type": "location-offsite", - "digest": "2cd9e3b586a89f488ef6962472e19d2d0c7cead29232ecbcfc160b9d7c348cba", + "digest": "b3b9ef55cb16d48f0fd5d3c4e4dbd780ee76e1150aab2d80d8daeb98f258cb5a", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_location-offsite.json" }, @@ -2140,7 +2140,7 @@ "profile": "lhmc", "version": "6-0-0", "type": "organization-local", - "digest": "fb54821939660e55c6c109b5011e3478cb999bb04735969a9c7d281fd143a9aa", + "digest": "425accf10b28689775cf82643d2d6c9cf105c4e44a245fbf81ea4d1e2f7c83b1", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_organization-local.json" }, @@ -2148,7 +2148,7 @@ "profile": "lhmc", "version": "6-0-0", "type": "organization-ulan", - "digest": "75751d3728717f7832d84859aee4a8302d1547a03fd6aad27827c2ed47cf8531", + "digest": "f7bd66f6520b575989ce94536ad7579b052f27d4d62fc9c35af6e08f1eccd4de", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_organization-ulan.json" }, @@ -2332,7 +2332,7 @@ "profile": "materials", "version": "3-2-0", "type": "location-local", - "digest": "86436b9e0a0a4c2c5c635904121ce1f188510acb4856f9b3c8aed1e8cefed41c", + "digest": "7a36a636cdac5cb3d8526cd9e3c02406ad68f630bf77868e92715a98d58f9b69", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_location-local.json" }, @@ -2340,7 +2340,7 @@ "profile": "materials", "version": "3-2-0", "type": "location-offsite", - "digest": "5c093a2507f8c0b2e852ce0cafe8b21a827f095aa19c6f871febf31df39c21b7", + "digest": "877c8e9220c3ed41c94ca902b9197abfef3627ce0b8911ad24f375d7fd27f816", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_location-offsite.json" }, @@ -2404,7 +2404,7 @@ "profile": "materials", "version": "3-2-0", "type": "organization-local", - "digest": "4d301afb8d07a430931d7d1e0c9d885150b86805ba181384ded0bc2fa732644e", + "digest": "adcbadbd540fc63bebbafdfd134df1c829f789f573523723217f3350cb4aa4b7", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_organization-local.json" }, @@ -2412,7 +2412,7 @@ "profile": "materials", "version": "3-2-0", "type": "organization-shared", - "digest": "0f83704dc754135df70fe3bb206f3589c04173f3eab4aa46ad1593a3b1a88e9c", + "digest": "16b3f79a01b040b7acaf8e1df37e920adb92cdc8fb03130e8647cff443f1b578", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_organization-shared.json" }, @@ -2636,7 +2636,7 @@ "profile": "publicart", "version": "5-0-0", "type": "location-local", - "digest": "47a57d941cedb7ca506997891c101d5fe37b9cb3c3447c64fd1e2ec5225bc0df", + "digest": "f6529497b249263e044fffb5d7e9819cfdcc23a2481abe4bfc2898e7cd74f1e5", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_location-local.json" }, @@ -2644,7 +2644,7 @@ "profile": "publicart", "version": "5-0-0", "type": "location-offsite", - "digest": "9d89269fad7acb4bc189d29bc691246fb325625f2ee53a575ef1fa79a7159701", + "digest": "c80a2e63f83f92184d14249d9365be67ee6f5f05b1a56bc65c2af12cf59b6e59", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_location-offsite.json" }, @@ -2692,7 +2692,7 @@ "profile": "publicart", "version": "5-0-0", "type": "organization-local", - "digest": "8bb2ef94f8dc2c063b3f10cc7a178037138fd0374a471f7725d6823f3ff6bff6", + "digest": "31b1be7edc2509b9a0626772191efad23fef637f3023704d8d7314aedb2a69ac", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_organization-local.json" }, @@ -2700,7 +2700,7 @@ "profile": "publicart", "version": "5-0-0", "type": "organization-shared", - "digest": "e2b9f6aaba404472fc47360a986421aa3dbe2da11544ab623050d2759989f21e", + "digest": "7a951c970592fdd44d810c0cff658f93c66173b9911137e6c120665cabe6942b", "enabled": true, "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/main/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_organization-shared.json" }, diff --git a/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_chronology-era.json b/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_chronology-era.json index 4fd1a874..fca7919a 100644 --- a/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_chronology-era.json +++ b/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_chronology-era.json @@ -12,7 +12,7 @@ "chronologies_common": "http://collectionspace.org/services/chronology" }, "identifier_field": "shortIdentifier", - "search_field": "chronologieTermGroupList/0/termDisplayName", + "search_field": "chronologyTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Era", diff --git a/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_chronology-event.json b/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_chronology-event.json index 940c2a03..81bf9754 100644 --- a/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_chronology-event.json +++ b/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_chronology-event.json @@ -12,7 +12,7 @@ "chronologies_common": "http://collectionspace.org/services/chronology" }, "identifier_field": "shortIdentifier", - "search_field": "chronologieTermGroupList/0/termDisplayName", + "search_field": "chronologyTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Era", diff --git a/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_chronology-field-collection.json b/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_chronology-field-collection.json index 0f8535ab..165669b7 100644 --- a/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_chronology-field-collection.json +++ b/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_chronology-field-collection.json @@ -12,7 +12,7 @@ "chronologies_common": "http://collectionspace.org/services/chronology" }, "identifier_field": "shortIdentifier", - "search_field": "chronologieTermGroupList/0/termDisplayName", + "search_field": "chronologyTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Era", diff --git a/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_location-local.json b/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_location-local.json index b99349d9..13e43757 100644 --- a/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_location-local.json +++ b/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_location-local.json @@ -12,7 +12,7 @@ "locations_common": "http://collectionspace.org/services/location" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_location-offsite.json b/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_location-offsite.json index 8dc31eb6..4dd4767e 100644 --- a/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_location-offsite.json +++ b/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_location-offsite.json @@ -12,7 +12,7 @@ "locations_common": "http://collectionspace.org/services/location" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_organization-local.json b/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_organization-local.json index 5815fbbf..d7381e40 100644 --- a/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_organization-local.json +++ b/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_organization-local.json @@ -13,7 +13,7 @@ "contacts_common": "http://collectionspace.org/services/contact" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_organization-ulan.json b/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_organization-ulan.json index 78396de5..165216f0 100644 --- a/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_organization-ulan.json +++ b/data/mappers/community_profiles/release_7_2/anthro/anthro_7-0-0_organization-ulan.json @@ -13,7 +13,7 @@ "contacts_common": "http://collectionspace.org/services/contact" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_location-local.json b/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_location-local.json index 36a8d14a..1211d5d5 100644 --- a/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_location-local.json +++ b/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_location-local.json @@ -12,7 +12,7 @@ "locations_common": "http://collectionspace.org/services/location" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_location-offsite.json b/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_location-offsite.json index ba921ad3..387a9eaa 100644 --- a/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_location-offsite.json +++ b/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_location-offsite.json @@ -12,7 +12,7 @@ "locations_common": "http://collectionspace.org/services/location" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_organization-local.json b/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_organization-local.json index 8cc5d9c1..2bcbfe10 100644 --- a/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_organization-local.json +++ b/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_organization-local.json @@ -13,7 +13,7 @@ "contacts_common": "http://collectionspace.org/services/contact" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_organization-ulan.json b/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_organization-ulan.json index 7a3a7078..20285493 100644 --- a/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_organization-ulan.json +++ b/data/mappers/community_profiles/release_7_2/bonsai/bonsai_5-0-6_organization-ulan.json @@ -13,7 +13,7 @@ "contacts_common": "http://collectionspace.org/services/contact" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_location-local.json b/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_location-local.json index 87c006fd..8734917b 100644 --- a/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_location-local.json +++ b/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_location-local.json @@ -12,7 +12,7 @@ "locations_common": "http://collectionspace.org/services/location" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_location-offsite.json b/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_location-offsite.json index e901d7ad..5a77285a 100644 --- a/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_location-offsite.json +++ b/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_location-offsite.json @@ -12,7 +12,7 @@ "locations_common": "http://collectionspace.org/services/location" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_organization-local.json b/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_organization-local.json index 80807d6f..14f6bb53 100644 --- a/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_organization-local.json +++ b/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_organization-local.json @@ -13,7 +13,7 @@ "contacts_common": "http://collectionspace.org/services/contact" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_organization-ulan.json b/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_organization-ulan.json index bbaa9efb..f9ee8231 100644 --- a/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_organization-ulan.json +++ b/data/mappers/community_profiles/release_7_2/botgarden/botgarden_3-0-6_organization-ulan.json @@ -13,7 +13,7 @@ "contacts_common": "http://collectionspace.org/services/contact" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/core/core_7-2-0_chronology-era.json b/data/mappers/community_profiles/release_7_2/core/core_7-2-0_chronology-era.json index 35f94ef9..61ab8734 100644 --- a/data/mappers/community_profiles/release_7_2/core/core_7-2-0_chronology-era.json +++ b/data/mappers/community_profiles/release_7_2/core/core_7-2-0_chronology-era.json @@ -12,7 +12,7 @@ "chronologies_common": "http://collectionspace.org/services/chronology" }, "identifier_field": "shortIdentifier", - "search_field": "chronologieTermGroupList/0/termDisplayName", + "search_field": "chronologyTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Era", diff --git a/data/mappers/community_profiles/release_7_2/core/core_7-2-0_chronology-event.json b/data/mappers/community_profiles/release_7_2/core/core_7-2-0_chronology-event.json index fdb76c0b..dce7e689 100644 --- a/data/mappers/community_profiles/release_7_2/core/core_7-2-0_chronology-event.json +++ b/data/mappers/community_profiles/release_7_2/core/core_7-2-0_chronology-event.json @@ -12,7 +12,7 @@ "chronologies_common": "http://collectionspace.org/services/chronology" }, "identifier_field": "shortIdentifier", - "search_field": "chronologieTermGroupList/0/termDisplayName", + "search_field": "chronologyTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Era", diff --git a/data/mappers/community_profiles/release_7_2/core/core_7-2-0_location-local.json b/data/mappers/community_profiles/release_7_2/core/core_7-2-0_location-local.json index d16a496c..c4ecbeb3 100644 --- a/data/mappers/community_profiles/release_7_2/core/core_7-2-0_location-local.json +++ b/data/mappers/community_profiles/release_7_2/core/core_7-2-0_location-local.json @@ -12,7 +12,7 @@ "locations_common": "http://collectionspace.org/services/location" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/core/core_7-2-0_location-offsite.json b/data/mappers/community_profiles/release_7_2/core/core_7-2-0_location-offsite.json index 280d32a8..51f90cbe 100644 --- a/data/mappers/community_profiles/release_7_2/core/core_7-2-0_location-offsite.json +++ b/data/mappers/community_profiles/release_7_2/core/core_7-2-0_location-offsite.json @@ -12,7 +12,7 @@ "locations_common": "http://collectionspace.org/services/location" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/core/core_7-2-0_organization-local.json b/data/mappers/community_profiles/release_7_2/core/core_7-2-0_organization-local.json index 9bfce301..faf3939b 100644 --- a/data/mappers/community_profiles/release_7_2/core/core_7-2-0_organization-local.json +++ b/data/mappers/community_profiles/release_7_2/core/core_7-2-0_organization-local.json @@ -13,7 +13,7 @@ "contacts_common": "http://collectionspace.org/services/contact" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/core/core_7-2-0_organization-ulan.json b/data/mappers/community_profiles/release_7_2/core/core_7-2-0_organization-ulan.json index 2bd77c2a..4edcdfac 100644 --- a/data/mappers/community_profiles/release_7_2/core/core_7-2-0_organization-ulan.json +++ b/data/mappers/community_profiles/release_7_2/core/core_7-2-0_organization-ulan.json @@ -13,7 +13,7 @@ "contacts_common": "http://collectionspace.org/services/contact" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_chronology-era.json b/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_chronology-era.json index 60dba4ef..d70fabb2 100644 --- a/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_chronology-era.json +++ b/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_chronology-era.json @@ -12,7 +12,7 @@ "chronologies_common": "http://collectionspace.org/services/chronology" }, "identifier_field": "shortIdentifier", - "search_field": "chronologieTermGroupList/0/termDisplayName", + "search_field": "chronologyTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Era", diff --git a/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_chronology-event.json b/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_chronology-event.json index e19e0d41..d03f2ad6 100644 --- a/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_chronology-event.json +++ b/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_chronology-event.json @@ -12,7 +12,7 @@ "chronologies_common": "http://collectionspace.org/services/chronology" }, "identifier_field": "shortIdentifier", - "search_field": "chronologieTermGroupList/0/termDisplayName", + "search_field": "chronologyTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Era", diff --git a/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_location-local.json b/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_location-local.json index 94d7be7a..4b972f4b 100644 --- a/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_location-local.json +++ b/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_location-local.json @@ -12,7 +12,7 @@ "locations_common": "http://collectionspace.org/services/location" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_location-offsite.json b/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_location-offsite.json index e97d20a8..8511bdd7 100644 --- a/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_location-offsite.json +++ b/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_location-offsite.json @@ -12,7 +12,7 @@ "locations_common": "http://collectionspace.org/services/location" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_organization-local.json b/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_organization-local.json index 30251b3d..02f5de8e 100644 --- a/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_organization-local.json +++ b/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_organization-local.json @@ -13,7 +13,7 @@ "contacts_common": "http://collectionspace.org/services/contact" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_organization-ulan.json b/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_organization-ulan.json index 7a17f226..9a3c075d 100644 --- a/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_organization-ulan.json +++ b/data/mappers/community_profiles/release_7_2/fcart/fcart_6-0-0_organization-ulan.json @@ -13,7 +13,7 @@ "contacts_common": "http://collectionspace.org/services/contact" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_location-local.json b/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_location-local.json index 552b01e1..2fcc4adf 100644 --- a/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_location-local.json +++ b/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_location-local.json @@ -12,7 +12,7 @@ "locations_common": "http://collectionspace.org/services/location" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_location-offsite.json b/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_location-offsite.json index 0e0e02dc..1660d117 100644 --- a/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_location-offsite.json +++ b/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_location-offsite.json @@ -12,7 +12,7 @@ "locations_common": "http://collectionspace.org/services/location" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_organization-local.json b/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_organization-local.json index 16aa21a7..fdec8f3b 100644 --- a/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_organization-local.json +++ b/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_organization-local.json @@ -13,7 +13,7 @@ "contacts_common": "http://collectionspace.org/services/contact" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_organization-ulan.json b/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_organization-ulan.json index 100d5156..61e88466 100644 --- a/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_organization-ulan.json +++ b/data/mappers/community_profiles/release_7_2/herbarium/herbarium_2-0-9_organization-ulan.json @@ -13,7 +13,7 @@ "contacts_common": "http://collectionspace.org/services/contact" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_chronology-era.json b/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_chronology-era.json index b6231cdd..0df53b91 100644 --- a/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_chronology-era.json +++ b/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_chronology-era.json @@ -12,7 +12,7 @@ "chronologies_common": "http://collectionspace.org/services/chronology" }, "identifier_field": "shortIdentifier", - "search_field": "chronologieTermGroupList/0/termDisplayName", + "search_field": "chronologyTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Era", diff --git a/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_chronology-event.json b/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_chronology-event.json index 1dde7329..844a6d6c 100644 --- a/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_chronology-event.json +++ b/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_chronology-event.json @@ -12,7 +12,7 @@ "chronologies_common": "http://collectionspace.org/services/chronology" }, "identifier_field": "shortIdentifier", - "search_field": "chronologieTermGroupList/0/termDisplayName", + "search_field": "chronologyTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Era", diff --git a/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_location-local.json b/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_location-local.json index 7036530c..adf716b9 100644 --- a/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_location-local.json +++ b/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_location-local.json @@ -12,7 +12,7 @@ "locations_common": "http://collectionspace.org/services/location" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_location-offsite.json b/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_location-offsite.json index fad22dec..9a251d67 100644 --- a/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_location-offsite.json +++ b/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_location-offsite.json @@ -12,7 +12,7 @@ "locations_common": "http://collectionspace.org/services/location" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_organization-local.json b/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_organization-local.json index 525253fd..63f15396 100644 --- a/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_organization-local.json +++ b/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_organization-local.json @@ -13,7 +13,7 @@ "contacts_common": "http://collectionspace.org/services/contact" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_organization-ulan.json b/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_organization-ulan.json index 2a5cd467..c2c1a5b8 100644 --- a/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_organization-ulan.json +++ b/data/mappers/community_profiles/release_7_2/lhmc/lhmc_6-0-0_organization-ulan.json @@ -13,7 +13,7 @@ "contacts_common": "http://collectionspace.org/services/contact" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_location-local.json b/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_location-local.json index 2d88bfb3..4eae414e 100644 --- a/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_location-local.json +++ b/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_location-local.json @@ -12,7 +12,7 @@ "locations_common": "http://collectionspace.org/services/location" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_location-offsite.json b/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_location-offsite.json index 91094d31..188c69a5 100644 --- a/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_location-offsite.json +++ b/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_location-offsite.json @@ -12,7 +12,7 @@ "locations_common": "http://collectionspace.org/services/location" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_organization-local.json b/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_organization-local.json index f441acd9..7f205cde 100644 --- a/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_organization-local.json +++ b/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_organization-local.json @@ -13,7 +13,7 @@ "contacts_common": "http://collectionspace.org/services/contact" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_organization-shared.json b/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_organization-shared.json index f33c4241..5a850e0f 100644 --- a/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_organization-shared.json +++ b/data/mappers/community_profiles/release_7_2/materials/materials_3-2-0_organization-shared.json @@ -13,7 +13,7 @@ "contacts_common": "http://collectionspace.org/services/contact" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_location-local.json b/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_location-local.json index be2d84c5..1434244b 100644 --- a/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_location-local.json +++ b/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_location-local.json @@ -13,7 +13,7 @@ "locations_publicart": "http://collectionspace.org/services//domain/publicart" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_location-offsite.json b/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_location-offsite.json index 2cc1fa3b..7300f1d3 100644 --- a/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_location-offsite.json +++ b/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_location-offsite.json @@ -13,7 +13,7 @@ "locations_publicart": "http://collectionspace.org/services//domain/publicart" }, "identifier_field": "shortIdentifier", - "search_field": "locationTermGroupList/0/termDisplayName", + "search_field": "locTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_organization-local.json b/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_organization-local.json index 01b4e542..c2fcf39a 100644 --- a/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_organization-local.json +++ b/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_organization-local.json @@ -14,7 +14,7 @@ "organizations_publicart": "http://collectionspace.org/services//domain/publicart" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_organization-shared.json b/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_organization-shared.json index e0fcb113..85299f57 100644 --- a/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_organization-shared.json +++ b/data/mappers/community_profiles/release_7_2/publicart/publicart_5-0-0_organization-shared.json @@ -14,7 +14,7 @@ "organizations_publicart": "http://collectionspace.org/services//domain/publicart" }, "identifier_field": "shortIdentifier", - "search_field": "organizationTermGroupList/0/termDisplayName", + "search_field": "orgTermGroupList/0/termDisplayName", "authority_subtypes": [ { "name": "Local", diff --git a/lib/cspace_config_untangler/record_type.rb b/lib/cspace_config_untangler/record_type.rb index c3f62515..63b42c7f 100644 --- a/lib/cspace_config_untangler/record_type.rb +++ b/lib/cspace_config_untangler/record_type.rb @@ -1,4 +1,4 @@ -require_relative 'fields/definition/parser' +require_relative "fields/definition/parser" module CspaceConfigUntangler class RecordType @@ -12,22 +12,22 @@ def initialize(profileobj, rectypename) @profile = profileobj @name = rectypename @id = "#{@profile.name}/#{@name}" - @config = @profile.config['recordTypes'][@name] + @config = @profile.config["recordTypes"][@name] @label = config.dig("messages", "record", "name", "defaultMessage") @ns = get_namespace @panels = get_panels @input_tables = get_input_tables @forms = get_forms @structured_date_treatment = @profile.structured_date_treatment - @service_type = @config.dig('serviceConfig', 'serviceType') - @subtypes = @service_type == 'authority' ? get_subtypes : [] + @service_type = @config.dig("serviceConfig", "serviceType") + @subtypes = (@service_type == "authority") ? get_subtypes : [] @vocabularies = get_vocabularies end def field_defs - if @config.dig('fields', 'document') - defs = CCU::Fields::Def::Parser.new(self, @config['fields']['document']) - return defs.field_defs + if @config.dig("fields", "document") + defs = CCU::Fields::Def::Parser.new(self, @config["fields"]["document"]) + defs.field_defs else CCU.log.warn("#{profile.name} - #{name} has no field def hash") end @@ -35,65 +35,69 @@ def field_defs def form_fields all = [] - @forms.each{ |formname, form| + @forms.each { |formname, form| all << form.fields } - all_combined = all.flatten.uniq{ |f| f.id } - return all_combined + all.flatten.uniq { |f| f.id } end def fields - fields = form_fields.map{ |ff| CCU::Fields::Field.new(self, ff) } + fields = form_fields.map { |ff| CCU::Fields::Field.new(self, ff) } fields = explode_structured_date_fields(fields) if @structured_date_treatment == :explode fields = fields.flatten - fields << media_uri_field if @name == 'media' + fields << media_uri_field if @name == "media" fields end def explode_structured_date_fields(fields) - sd_fields = fields.select{ |f| f.structured_date? } - fields = fields - sd_fields - sd_fields.each{ |f| fields << CCU::StructuredDateFieldMaker.new(f).fields(@profile) } + sd_fields = fields.select { |f| f.structured_date? } + fields -= sd_fields + sd_fields.each { |f| + fields << CCU::StructuredDateFieldMaker.new(f).fields(@profile) + } fields end def nonunique_fields h = {} - fields.each{ |f| - path = [f.schema_path, f.name].flatten.join(' > ') + fields.each { |f| + path = [f.schema_path, f.name].flatten.join(" > ") if h.has_key?(path) h[path] << f else h[path] = [f] end } - h.select{ |path, farr| farr.length > 1 } + h.select { |path, farr| farr.length > 1 } .keys end def nonunique_field_names h = {} - fields.each{ |f| - path = [f.schema_path, f.name].flatten.join(' > ') + fields.each { |f| + path = [f.schema_path, f.name].flatten.join(" > ") if h.has_key?(f.name) h[f.name] << path else h[f.name] = [path] end } - h.select{ |name, paths| paths.length > 1 } + h.select { |name, paths| paths.length > 1 } end def mappings checkhash = {} - mappings = fields.map{ |f| FieldMapper.new(field: f, column_style: profile.column_style).mappings}.flatten + mappings = fields.map { |f| + FieldMapper.new(field: f, + column_style: profile.column_style).mappings + }.flatten # ensure unique datacolumn values for templates and mapper mappings.each do |mapping| next if mapping.xpath.nil? if checkhash.key?(mapping.datacolumn) - add = mapping.xpath.empty? ? mapping.namespace.split('_').last : mapping.xpath.last + add = mapping.xpath.empty? ? mapping.namespace.split("_").last : mapping.xpath.last mapping.datacolumn = "#{add}_#{mapping.datacolumn}" else mapping.datacolumn = mapping.datacolumn @@ -106,27 +110,26 @@ def mappings def batch_mappings(context = :mapper) mappings = remove_unimportable_fields_from(self.mappings, context) mappings = faux_require_mappings(mappings) - mappings = faux_require_profile_specific_mappings(mappings) - mappings + faux_require_profile_specific_mappings(mappings) end def id_field case @service_type - when 'object' - id_field = 'objectNumber' - when 'authority' - id_field = 'shortIdentifier' - when 'procedure' - required_mappings = batch_mappings.select{ |m| m.required == 'y' } + when "object" + id_field = "objectNumber" + when "authority" + id_field = "shortIdentifier" + when "procedure" + required_mappings = batch_mappings.select { |m| m.required == "y" } case required_mappings.length when 0 - id_field = 'potTagNumber' if @name == 'pottag' + id_field = "potTagNumber" if @name == "pottag" when 1 id_field = required_mappings.first.fieldname else # osteology has 3 required fields, but only the ID is suitable for use here - id_field = 'InventoryID' if @name == 'osteology' - id_field = 'movementReferenceNumber' if @name == 'movement' + id_field = "InventoryID" if @name == "osteology" + id_field = "movementReferenceNumber" if @name == "movement" end end id_field @@ -134,9 +137,10 @@ def id_field def search_field case @service_type - when 'authority' - doc_name = @config.dig('serviceConfig', 'documentName').sub(/s$/, '') - field = "#{doc_name}TermGroupList/0/termDisplayName" + when "authority" + search_path = @config.dig("advancedSearch", "value").first["path"] + term_group_list = search_path.split("/")[1] + field = "#{term_group_list}/0/termDisplayName" else field = id_field end @@ -144,7 +148,9 @@ def search_field end def unmappable_fields - unmappable = mappings.select{ |mapping| mapping.xpath.nil? && mapping.data_type.nil? } + unmappable = mappings.select { |mapping| + mapping.xpath.nil? && mapping.data_type.nil? + } return if unmappable.empty? unmappable.each do |mapping| @@ -162,22 +168,22 @@ def inspect # some unique ID field is required for batch import/processing def faux_require_mappings(mappings) instructions = { - 'movement' => 'movementReferenceNumber', - 'insurance' => 'insuranceIndemnityReferenceNumber', - 'transport' => 'transportReferenceNumber' + "movement" => "movementReferenceNumber", + "insurance" => "insuranceIndemnityReferenceNumber", + "transport" => "transportReferenceNumber" } return mappings unless instructions.key?(@name) mapping = get_field_mapping(mappings, instructions[@name]) - mapping.required = 'y' unless mapping.nil? + mapping.required = "y" unless mapping.nil? mappings end def faux_require_profile_specific_mappings(mappings) instructions = { - 'botgarden' => { - 'loanout' => 'loanOutNumber', - 'objectexit' => 'exitNumber' + "botgarden" => { + "loanout" => "loanOutNumber", + "objectexit" => "exitNumber" } } profile = @profile.basename @@ -185,21 +191,21 @@ def faux_require_profile_specific_mappings(mappings) return mappings unless instructions[profile].key?(@name) mapping = get_field_mapping(mappings, instructions[profile][@name]) - mapping.required = 'y' unless mapping.nil? + mapping.required = "y" unless mapping.nil? mappings end def get_field_mapping(mappings, fieldname) - mappings.select{ |m| m.fieldname == fieldname }.first + mappings.select { |m| m.fieldname == fieldname }.first end def get_vocabularies - view = extract_by_key(@config['fields'], 'view') - .select{ |h| h['type'] == 'TermPickerInput' } - .select{ |h| h.key?('props') } - .select{ |h| h['props'].key?('source') } - .reject{ |h| h['props']['source'][','] } - .map{ |h| h['props']['source'] } + view = extract_by_key(@config["fields"], "view") + .select { |h| h["type"] == "TermPickerInput" } + .select { |h| h.key?("props") } + .select { |h| h["props"].key?("source") } + .reject { |h| h["props"]["source"][","] } + .map { |h| h["props"]["source"] } .uniq .sort end @@ -207,22 +213,22 @@ def get_vocabularies # get rid of mappings for fields we do not want to import via the batch import tool def remove_unimportable_fields_from(mappings, context) constant_instructions = { - 'collectionobject' => %w[computedCurrentLocation], + "collectionobject" => %w[computedCurrentLocation] } mapper_instructions = { - 'media' => %w[mediaFileURI] + "media" => %w[mediaFileURI] } return mappings unless constant_instructions.key?(@name) || mapper_instructions.key?(@name) if constant_instructions.key?(@name) constant_instructions[@name].each do |fieldname| - mappings = mappings.reject{ |m| m.fieldname == fieldname } + mappings = mappings.reject { |m| m.fieldname == fieldname } end end if context == :mapper && mapper_instructions.key?(@name) mapper_instructions[@name].each do |fieldname| - mappings = mappings.reject{ |m| m.fieldname == fieldname } + mappings = mappings.reject { |m| m.fieldname == fieldname } end end @@ -230,83 +236,86 @@ def remove_unimportable_fields_from(mappings, context) # this is introduced in order to output any workable template/mappers for OMCA, because # they have custom namespace inside the contact subrecord which the Untangler can't # deal with at present - mappings.reject{ |mapping| mapping.data_type.nil? && mapping.xpath.nil? } + mappings.reject { |mapping| mapping.data_type.nil? && mapping.xpath.nil? } end def get_subtypes result = [] - vocabs = @config.dig('vocabularies') + vocabs = @config.dig("vocabularies") vocabs.each do |keyword, config| - next if keyword == 'all' - name = config.dig('messages', 'name', 'defaultMessage') - servicepath = config.dig('serviceConfig', 'servicePath') + next if keyword == "all" + name = config.dig("messages", "name", "defaultMessage") + servicepath = config.dig("serviceConfig", "servicePath") servicepath_name = servicepath.match(/\((.*)\)/)[1] - result << { name: name, subtype: servicepath_name } + result << {name: name, subtype: servicepath_name} end result end def media_uri_field field_hash = { - name: 'mediaFileURI', - ns: 'not-mapped', - repeats: 'n', - in_repeating_group: 'n/a', - data_type: 'string', + name: "mediaFileURI", + ns: "not-mapped", + repeats: "n", + in_repeating_group: "n/a", + data_type: "string", value_source: [CCU::ValueSources::NoSource.new], value_list: [], - required: 'n' + required: "n" } CCU::Fields::ForcedField.new(self, field_hash) end def get_forms - if @config.dig('forms') && @name != 'blob' + if @config.dig("forms") && @name != "blob" h = {} - @config['forms'].keys - .reject{ |e| e == 'mini' } - .each{ |e| h[e] = CCU::Form.new(self, e) } - return h + @config["forms"].keys + .reject { |e| e == "mini" } + .each { |e| h[e] = CCU::Form.new(self, e) } + h else - return {} + {} end end - def get_input_tables - if @config.dig('messages', 'inputTable') + if @config.dig("messages", "inputTable") h = {} - @config['messages']['inputTable'].each{ |name, hash| - h[name] = hash['id'] - @profile.messages[hash['id']] = {'name' => hash['defaultMessage'], 'fullName' => hash['defaultMessage']} unless @profile.messages.has_key?(hash['id']) + @config["messages"]["inputTable"].each { |name, hash| + h[name] = hash["id"] + unless @profile.messages.has_key?(hash["id"]) + @profile.messages[hash["id"]] = + {"name" => hash["defaultMessage"], + "fullName" => hash["defaultMessage"]} + end } - return h + h else - return {} + {} end end def get_panels - if @config.dig('messages', 'panel') + if @config.dig("messages", "panel") arr = [] - @config['messages']['panel'].keys.each{ |panelname| + @config["messages"]["panel"].keys.each { |panelname| arr << panelname msgs = @profile.messages - id = @config['messages']['panel'][panelname]['id'] - label = @config['messages']['panel'][panelname]['defaultMessage'] - msgs[id] = {'name' => label, 'fullName' => label} + id = @config["messages"]["panel"][panelname]["id"] + label = @config["messages"]["panel"][panelname]["defaultMessage"] + msgs[id] = {"name" => label, "fullName" => label} } - return arr + arr else - return [] + [] end end def get_namespace - docname = @config['serviceConfig']['documentName'] - return "ns2:#{docname}_common" + docname = @config["serviceConfig"]["documentName"] + "ns2:#{docname}_common" end end end diff --git a/lib/cspace_config_untangler/version.rb b/lib/cspace_config_untangler/version.rb index 2666a0c2..4524a7e8 100644 --- a/lib/cspace_config_untangler/version.rb +++ b/lib/cspace_config_untangler/version.rb @@ -1,3 +1,3 @@ module CspaceConfigUntangler - VERSION = "2.0.1" + VERSION = "2.0.2" end