diff --git a/content/post/2017-09.md b/content/post/2017-09.md index f7ece7be0..6bab72499 100644 --- a/content/post/2017-09.md +++ b/content/post/2017-09.md @@ -218,9 +218,115 @@ DELETE 207 ``` - When we discussed this in late July there were some other renames they had requested, but I don't see them in the current spreadsheet so I will have to follow that up +- I talked to Macaroni Bros and they said to just go ahead with the other corrections as well as their spreadsheet was evolved organically rather than systematically! +- The final list of corrections and deletes should therefore be: + +``` +delete from metadatavalue where resource_type_id=2 and metadata_field_id=235 and text_value='PII-FP4_CRMWestAfrica'; +update metadatavalue set text_value='FP3_VietnamLED' where resource_type_id=2 and metadata_field_id=134 and text_value='FP3_VeitnamLED'; +update metadatavalue set text_value='PII-FP1_PIRCCA' where resource_type_id=2 and metadata_field_id=235 and text_value='PII-SEA_PIRCCA'; +delete from metadatavalue where resource_type_id=2 and metadata_field_id=235 and text_value='PII-WA_IntegratedInterventions'; +delete from metadatavalue where resource_type_id=2 and metadata_field_id in (134, 235) and text_value in ('EA_PAR','FP1_CSAEvidence','FP2_CRMWestAfrica','FP3_Gender','FP4_Baseline','FP4_CCPAG','FP4_CCPG','FP4_CIATLAM IMPACT','FP4_ClimateData','FP4_ClimateModels','FP4_GenderPolicy','FP4_GenderToolbox','FP4_Livestock','FP4_PolicyEngagement','FP_GII','SA_Biodiversity','SA_CSV','SA_GHGMeasurement','SEA_mitigationSAMPLES','SEA_UpscalingInnovation','WA_Partnership','WA_SciencePolicyExchange','FP_GII'); +``` + - Create and merge pull request to shut up the Ehcache update check ([#337](https://github.com/ilri/DSpace/pull/337)) - Although it looks like there was a previous attempt to disable these update checks that was merged in DSpace 4.0 (although it only affects XMLUI): https://jira.duraspace.org/browse/DS-1492 - I commented there suggesting that we disable it globally - I merged the changes to the CCAFS project tags ([#336](https://github.com/ilri/DSpace/pull/336)) but still need to finalize the metadata deletions/renames - I merged the CGIAR Library theme changes ([#338](https://github.com/ilri/DSpace/pull/338)) to the `5_x-prod` branch in preparation for next week's migration - I emailed the Handle administrators (hdladmin@cnri.reston.va.us) to ask them what the process for changing their prefix to be resolved by our resolver +- They responded and said that they need email confirmation from the contact of record of the other prefix, so I should have the CGIAR System Organization people email them before I send the new `sitebndl.zip` +- Testing to see how we end up with all these new authorities after we keep cleaning and merging them in the database +- Here are all my distinct authority combinations in the database before: + +``` +dspace=# select distinct text_value, authority, confidence from metadatavalue where resource_type_id=2 and metadata_field_id=3 and text_value like '%Orth, %'; + text_value | authority | confidence +------------+--------------------------------------+------------ + Orth, Alan | 7c2bffb8-58c9-4bc8-b102-ebe8aec200ad | -1 + Orth, Alan | 1a1943a0-3f87-402f-9afe-e52fb46a513e | 600 + Orth, Alan | 7c2bffb8-58c9-4bc8-b102-ebe8aec200ad | 600 + Orth, A. | 1a1943a0-3f87-402f-9afe-e52fb46a513e | 600 + Orth, Alan | 1a1943a0-3f87-402f-9afe-e52fb46a513e | -1 + Orth, Alan | 7c2bffb8-58c9-4bc8-b102-ebe8aec200ad | 0 + Orth, Alan | 0d575fa3-8ac4-4763-a90a-1248d4791793 | -1 + Orth, Alan | 67a9588f-d86a-4155-81a2-af457e9d13f9 | 600 +(8 rows) +``` + +- And then after adding a new item and selecting an existing "Orth, Alan" with an ORCID in the author lookup: + +``` +dspace=# select distinct text_value, authority, confidence from metadatavalue where resource_type_id=2 and metadata_field_id=3 and text_value like '%Orth, %'; + text_value | authority | confidence +------------+--------------------------------------+------------ + Orth, Alan | 7c2bffb8-58c9-4bc8-b102-ebe8aec200ad | -1 + Orth, Alan | 1a1943a0-3f87-402f-9afe-e52fb46a513e | 600 + Orth, Alan | 7c2bffb8-58c9-4bc8-b102-ebe8aec200ad | 600 + Orth, A. | 1a1943a0-3f87-402f-9afe-e52fb46a513e | 600 + Orth, Alan | 1a1943a0-3f87-402f-9afe-e52fb46a513e | -1 + Orth, Alan | 7c2bffb8-58c9-4bc8-b102-ebe8aec200ad | 0 + Orth, Alan | cb3aa5ae-906f-4902-97b1-2667cf148dde | 600 + Orth, Alan | 0d575fa3-8ac4-4763-a90a-1248d4791793 | -1 + Orth, Alan | 67a9588f-d86a-4155-81a2-af457e9d13f9 | 600 +(9 rows) +``` + +- It created a new authority... let's try to add another item and select the same existing author and see what happens in the database: + +``` +dspace=# select distinct text_value, authority, confidence from metadatavalue where resource_type_id=2 and metadata_field_id=3 and text_value like '%Orth, %'; + text_value | authority | confidence +------------+--------------------------------------+------------ + Orth, Alan | 7c2bffb8-58c9-4bc8-b102-ebe8aec200ad | -1 + Orth, Alan | 1a1943a0-3f87-402f-9afe-e52fb46a513e | 600 + Orth, Alan | 7c2bffb8-58c9-4bc8-b102-ebe8aec200ad | 600 + Orth, A. | 1a1943a0-3f87-402f-9afe-e52fb46a513e | 600 + Orth, Alan | 1a1943a0-3f87-402f-9afe-e52fb46a513e | -1 + Orth, Alan | 7c2bffb8-58c9-4bc8-b102-ebe8aec200ad | 0 + Orth, Alan | cb3aa5ae-906f-4902-97b1-2667cf148dde | 600 + Orth, Alan | 0d575fa3-8ac4-4763-a90a-1248d4791793 | -1 + Orth, Alan | 67a9588f-d86a-4155-81a2-af457e9d13f9 | 600 +(9 rows) +``` + +- No new one... so now let me try to add another item and select the italicized result from the ORCID lookup and see what happens in the database: + +``` +dspace=# select distinct text_value, authority, confidence from metadatavalue where resource_type_id=2 and metadata_field_id=3 and text_value like '%Orth, %'; + text_value | authority | confidence +------------+--------------------------------------+------------ + Orth, Alan | 7c2bffb8-58c9-4bc8-b102-ebe8aec200ad | -1 + Orth, Alan | 1a1943a0-3f87-402f-9afe-e52fb46a513e | 600 + Orth, Alan | d85a8a5b-9b82-4aaf-8033-d7e0c7d9cb8f | 600 + Orth, Alan | 7c2bffb8-58c9-4bc8-b102-ebe8aec200ad | 600 + Orth, A. | 1a1943a0-3f87-402f-9afe-e52fb46a513e | 600 + Orth, Alan | 1a1943a0-3f87-402f-9afe-e52fb46a513e | -1 + Orth, Alan | 7c2bffb8-58c9-4bc8-b102-ebe8aec200ad | 0 + Orth, Alan | cb3aa5ae-906f-4902-97b1-2667cf148dde | 600 + Orth, Alan | 0d575fa3-8ac4-4763-a90a-1248d4791793 | -1 + Orth, Alan | 67a9588f-d86a-4155-81a2-af457e9d13f9 | 600 +(10 rows) +``` + +- Shit, it created another authority! Let's try it again! + +``` +dspace=# select distinct text_value, authority, confidence from metadatavalue where resource_type_id=2 and metadata_field_id=3 and text_value like '%Orth, %'; + text_value | authority | confidence +------------+--------------------------------------+------------ + Orth, Alan | 7c2bffb8-58c9-4bc8-b102-ebe8aec200ad | -1 + Orth, Alan | 1a1943a0-3f87-402f-9afe-e52fb46a513e | 600 + Orth, Alan | d85a8a5b-9b82-4aaf-8033-d7e0c7d9cb8f | 600 + Orth, Alan | 7c2bffb8-58c9-4bc8-b102-ebe8aec200ad | 600 + Orth, Alan | 9aed566a-a248-4878-9577-0caedada43db | 600 + Orth, A. | 1a1943a0-3f87-402f-9afe-e52fb46a513e | 600 + Orth, Alan | 1a1943a0-3f87-402f-9afe-e52fb46a513e | -1 + Orth, Alan | 7c2bffb8-58c9-4bc8-b102-ebe8aec200ad | 0 + Orth, Alan | cb3aa5ae-906f-4902-97b1-2667cf148dde | 600 + Orth, Alan | 0d575fa3-8ac4-4763-a90a-1248d4791793 | -1 + Orth, Alan | 67a9588f-d86a-4155-81a2-af457e9d13f9 | 600 +(11 rows) +``` + +- It added *another* authority... surely this is not the desired behavior, or maybe we are not using this as intented? diff --git a/public/2017-09/index.html b/public/2017-09/index.html index f56d55d69..71219f0d4 100644 --- a/public/2017-09/index.html +++ b/public/2017-09/index.html @@ -25,7 +25,7 @@ Ask Sisay to clean up the WLE approvers a bit, as Marianne’s user account - + @@ -61,9 +61,9 @@ Ask Sisay to clean up the WLE approvers a bit, as Marianne’s user account "@type": "BlogPosting", "headline": "September, 2017", "url": "https://alanorth.github.io/cgspace-notes/2017-09/", - "wordCount": "1566", + "wordCount": "1691", "datePublished": "2017-09-07T16:54:52+07:00", - "dateModified": "2017-09-13T09:53:54+03:00", + "dateModified": "2017-09-13T16:42:17+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -367,12 +367,25 @@ DELETE 207 + +
delete from metadatavalue where resource_type_id=2 and metadata_field_id=235 and text_value='PII-FP4_CRMWestAfrica';
+update metadatavalue set text_value='FP3_VietnamLED' where resource_type_id=2 and metadata_field_id=134 and text_value='FP3_VeitnamLED';
+update metadatavalue set text_value='PII-FP1_PIRCCA' where resource_type_id=2 and metadata_field_id=235 and text_value='PII-SEA_PIRCCA';
+delete from metadatavalue where resource_type_id=2 and metadata_field_id=235 and text_value='PII-WA_IntegratedInterventions';
+delete from metadatavalue where resource_type_id=2 and metadata_field_id in (134, 235) and text_value in ('EA_PAR','FP1_CSAEvidence','FP2_CRMWestAfrica','FP3_Gender','FP4_Baseline','FP4_CCPAG','FP4_CCPG','FP4_CIATLAM IMPACT','FP4_ClimateData','FP4_ClimateModels','FP4_GenderPolicy','FP4_GenderToolbox','FP4_Livestock','FP4_PolicyEngagement','FP_GII','SA_Biodiversity','SA_CSV','SA_GHGMeasurement','SEA_mitigationSAMPLES','SEA_UpscalingInnovation','WA_Partnership','WA_SciencePolicyExchange','FP_GII');
+
+ + diff --git a/public/sitemap.xml b/public/sitemap.xml index d64aed29a..6a1551bc7 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2017-09/ - 2017-09-13T09:53:54+03:00 + 2017-09-13T16:42:17+03:00 @@ -119,7 +119,7 @@ https://alanorth.github.io/cgspace-notes/ - 2017-09-13T09:53:54+03:00 + 2017-09-13T16:42:17+03:00 0 @@ -130,19 +130,19 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2017-09-13T09:53:54+03:00 + 2017-09-13T16:42:17+03:00 0 https://alanorth.github.io/cgspace-notes/post/ - 2017-09-13T09:53:54+03:00 + 2017-09-13T16:42:17+03:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2017-09-13T09:53:54+03:00 + 2017-09-13T16:42:17+03:00 0