From 8cbcdd15e9bc94e4f663bed0cae5268697d7af71 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 30 Nov 2020 20:12:55 +0200 Subject: [PATCH] Add notes for 2020-11-30 --- content/posts/2020-11.md | 34 ++++++++++++++++++++++ docs/2016-06/index.html | 8 +++--- docs/2020-11/index.html | 38 ++++++++++++++++++++++--- docs/categories/index.html | 2 +- docs/categories/notes/index.html | 2 +- docs/categories/notes/page/2/index.html | 2 +- docs/categories/notes/page/3/index.html | 2 +- docs/categories/notes/page/4/index.html | 2 +- docs/categories/notes/page/5/index.html | 2 +- docs/index.html | 2 +- docs/page/2/index.html | 2 +- docs/page/3/index.html | 2 +- docs/page/4/index.html | 2 +- docs/page/5/index.html | 2 +- docs/page/6/index.html | 2 +- docs/page/7/index.html | 2 +- docs/posts/index.html | 2 +- docs/posts/page/2/index.html | 2 +- docs/posts/page/3/index.html | 2 +- docs/posts/page/4/index.html | 2 +- docs/posts/page/5/index.html | 2 +- docs/posts/page/6/index.html | 2 +- docs/posts/page/7/index.html | 2 +- docs/sitemap.xml | 16 +++++------ docs/tags/index.html | 2 +- docs/tags/notes/index.html | 2 +- docs/tags/notes/page/2/index.html | 2 +- docs/tags/notes/page/3/index.html | 2 +- 28 files changed, 104 insertions(+), 40 deletions(-) diff --git a/content/posts/2020-11.md b/content/posts/2020-11.md index 814fe85b9..27945e110 100644 --- a/content/posts/2020-11.md +++ b/content/posts/2020-11.md @@ -502,4 +502,38 @@ facet=true&f.owningComm.facet.limit=5&f.owningComm.facet.offset=5&f.countryCode. - Peter told me that he can't find the [CGIAR Research Program on Livestock](https://cgspace.cgiar.org/handle/10568/80099) community in the community filters on AReS - I looked briefly and couldn't find it either so I filed an issue on OpenRXV: https://github.com/ilri/OpenRXV/issues/62 +## 2020-11-30 + +- Ben Hack asked for the ILRI subject we are using on CGSpace + - I linked him the input-forms.xml file and also sent him a list of 112 terms extracted with `xml` from the xmlstarlet package: + +``` +$ xml sel -t -m '//value-pairs[@value-pairs-name="ilrisubject"]/pair/displayed-value/text()' -c '.' -n dspace/config/input-forms.xml +``` + +- IWMI sent me a few new ORCID identifiers so I combined them with our existing ones as well as another ILRI one that Tezira asked me to update, filtered the unique ones, and then resolved their names using my `resolve-orcids.py` script: + +``` +$ cat ~/src/git/DSpace/dspace/config/controlled-vocabularies/cg-creator-id.xml /tmp/iwmi-orcids.txt /tmp/hung.txt | grep -oE '[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}' | sort | uniq > /tmp/2020-11-30-combined-orcids.txt +$ ./resolve-orcids.py -i /tmp/2020-11-30-combined-orcids.txt -o /tmp/2020-11-30-combined-orcids-names.txt -d +# sort names, copy to cg-creator-id.xml, add XML formatting, and then format with tidy (preserving accents) +$ tidy -xml -utf8 -iq -m -w 0 dspace/config/controlled-vocabularies/cg-creator-id.xml +``` + +- I used my `fix-metadata-values.py` script to update the old occurences of Hung's ORCID and some others that I see have changed: + +``` +$ cat 2020-11-30-fix-hung-orcid.csv +cg.creator.id,correct +"Hung Nguyen-Viet: 0000-0001-9877-0596","Hung Nguyen-Viet: 0000-0003-1549-2733" +"Adriana Tofiño: 0000-0001-7115-7169","Adriana Tofiño Rivera: 0000-0001-7115-7169" +"Cristhian Puerta Rodriguez: 0000-0001-5992-1697","David Puerta: 0000-0001-5992-1697" +"Ermias Betemariam: 0000-0002-1955-6995","Ermias Aynekulu: 0000-0002-1955-6995" +"Hirut Betaw: 0000-0002-1205-3711","Betaw Hirut: 0000-0002-1205-3711" +"Megan Zandstra: 0000-0002-3326-6492","Megan McNeil Zandstra: 0000-0002-3326-6492" +"Tolu Eyinla: 0000-0003-1442-4392","Toluwalope Emmanuel: 0000-0003-1442-4392" +"VInay Nangia: 0000-0001-5148-8614","Vinay Nangia: 0000-0001-5148-8614" +$ ./fix-metadata-values.py -i 2020-11-30-fix-hung-orcid.csv -db dspace63 -u dspacetest -p 'dom@in34sniper' -f cg.creator.id -t 'correct' -m 240 +``` + diff --git a/docs/2016-06/index.html b/docs/2016-06/index.html index 94b237e6a..22054b67f 100644 --- a/docs/2016-06/index.html +++ b/docs/2016-06/index.html @@ -18,7 +18,7 @@ Working on second phase of metadata migration, looks like this will work for mov - + @@ -41,9 +41,9 @@ Working on second phase of metadata migration, looks like this will work for mov "@type": "BlogPosting", "headline": "June, 2016", "url": "https://alanorth.github.io/cgspace-notes/2016-06/", - "wordCount": "1549", + "wordCount": "1551", "datePublished": "2016-06-01T10:53:00+03:00", - "dateModified": "2020-04-13T15:30:24+03:00", + "dateModified": "2020-11-30T12:10:20+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -239,7 +239,7 @@ UPDATE 960
$ xml sel -t -m '//value-pairs[@value-pairs-name="ilrisubject"]/pair/displayed-value/text()' -c '.' -n dspace/config/input-forms.xml
 
- +

2020-11-30

+ +
$ xml sel -t -m '//value-pairs[@value-pairs-name="ilrisubject"]/pair/displayed-value/text()' -c '.' -n dspace/config/input-forms.xml
+
+
$ cat ~/src/git/DSpace/dspace/config/controlled-vocabularies/cg-creator-id.xml /tmp/iwmi-orcids.txt /tmp/hung.txt | grep -oE '[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}' | sort | uniq > /tmp/2020-11-30-combined-orcids.txt
+$ ./resolve-orcids.py -i /tmp/2020-11-30-combined-orcids.txt -o /tmp/2020-11-30-combined-orcids-names.txt -d
+# sort names, copy to cg-creator-id.xml, add XML formatting, and then format with tidy (preserving accents)
+$ tidy -xml -utf8 -iq -m -w 0 dspace/config/controlled-vocabularies/cg-creator-id.xml
+
+
$ cat 2020-11-30-fix-hung-orcid.csv
+cg.creator.id,correct
+"Hung Nguyen-Viet: 0000-0001-9877-0596","Hung Nguyen-Viet: 0000-0003-1549-2733"
+"Adriana Tofiño: 0000-0001-7115-7169","Adriana Tofiño Rivera: 0000-0001-7115-7169"
+"Cristhian Puerta Rodriguez: 0000-0001-5992-1697","David Puerta: 0000-0001-5992-1697"
+"Ermias Betemariam: 0000-0002-1955-6995","Ermias Aynekulu: 0000-0002-1955-6995"
+"Hirut Betaw: 0000-0002-1205-3711","Betaw Hirut: 0000-0002-1205-3711"
+"Megan Zandstra: 0000-0002-3326-6492","Megan McNeil Zandstra: 0000-0002-3326-6492"
+"Tolu Eyinla: 0000-0003-1442-4392","Toluwalope Emmanuel: 0000-0003-1442-4392"
+"VInay Nangia: 0000-0001-5148-8614","Vinay Nangia: 0000-0001-5148-8614"
+$ ./fix-metadata-values.py -i 2020-11-30-fix-hung-orcid.csv -db dspace63 -u dspacetest -p 'dom@in34sniper' -f cg.creator.id -t 'correct' -m 240
+
diff --git a/docs/categories/index.html b/docs/categories/index.html index c98d541cc..156abe31a 100644 --- a/docs/categories/index.html +++ b/docs/categories/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/categories/notes/index.html b/docs/categories/notes/index.html index ef0b9df28..d1779f80e 100644 --- a/docs/categories/notes/index.html +++ b/docs/categories/notes/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/categories/notes/page/2/index.html b/docs/categories/notes/page/2/index.html index 27aa38da8..3d9d7a89f 100644 --- a/docs/categories/notes/page/2/index.html +++ b/docs/categories/notes/page/2/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/categories/notes/page/3/index.html b/docs/categories/notes/page/3/index.html index ebff02eb2..8079078eb 100644 --- a/docs/categories/notes/page/3/index.html +++ b/docs/categories/notes/page/3/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/categories/notes/page/4/index.html b/docs/categories/notes/page/4/index.html index 6a3d5d45c..85f907cf2 100644 --- a/docs/categories/notes/page/4/index.html +++ b/docs/categories/notes/page/4/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/categories/notes/page/5/index.html b/docs/categories/notes/page/5/index.html index 2381f07b3..82fd85e6a 100644 --- a/docs/categories/notes/page/5/index.html +++ b/docs/categories/notes/page/5/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/index.html b/docs/index.html index be44f3746..42525b9bb 100644 --- a/docs/index.html +++ b/docs/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/page/2/index.html b/docs/page/2/index.html index 3ded4483c..b08ef376a 100644 --- a/docs/page/2/index.html +++ b/docs/page/2/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/page/3/index.html b/docs/page/3/index.html index f5f338ee6..a19d20e57 100644 --- a/docs/page/3/index.html +++ b/docs/page/3/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/page/4/index.html b/docs/page/4/index.html index 4944e54e4..d0d17b235 100644 --- a/docs/page/4/index.html +++ b/docs/page/4/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/page/5/index.html b/docs/page/5/index.html index d2db66b56..148d2604e 100644 --- a/docs/page/5/index.html +++ b/docs/page/5/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/page/6/index.html b/docs/page/6/index.html index 6dc27156e..57ef6daed 100644 --- a/docs/page/6/index.html +++ b/docs/page/6/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/page/7/index.html b/docs/page/7/index.html index 85051cdc9..6b4253971 100644 --- a/docs/page/7/index.html +++ b/docs/page/7/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/index.html b/docs/posts/index.html index 0b1349337..d68690dd6 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/page/2/index.html b/docs/posts/page/2/index.html index 067283d0b..affd9d4ee 100644 --- a/docs/posts/page/2/index.html +++ b/docs/posts/page/2/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/page/3/index.html b/docs/posts/page/3/index.html index e9902a8df..ce1e87f54 100644 --- a/docs/posts/page/3/index.html +++ b/docs/posts/page/3/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/page/4/index.html b/docs/posts/page/4/index.html index ff71c3891..493578835 100644 --- a/docs/posts/page/4/index.html +++ b/docs/posts/page/4/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/page/5/index.html b/docs/posts/page/5/index.html index 4fc55acbd..33dcfe95c 100644 --- a/docs/posts/page/5/index.html +++ b/docs/posts/page/5/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/page/6/index.html b/docs/posts/page/6/index.html index dcb744997..ac2fad10b 100644 --- a/docs/posts/page/6/index.html +++ b/docs/posts/page/6/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/page/7/index.html b/docs/posts/page/7/index.html index b67d3c7d5..3a3763795 100644 --- a/docs/posts/page/7/index.html +++ b/docs/posts/page/7/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 6ba729c3c..f61a657e2 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/categories/ - 2020-11-29T08:40:58+02:00 + 2020-11-29T14:50:02+02:00 @@ -14,7 +14,7 @@ https://alanorth.github.io/cgspace-notes/ - 2020-11-29T08:40:58+02:00 + 2020-11-30T12:10:20+02:00 @@ -24,22 +24,22 @@ https://alanorth.github.io/cgspace-notes/categories/notes/ - 2020-11-29T08:40:58+02:00 + 2020-11-29T14:50:02+02:00 https://alanorth.github.io/cgspace-notes/posts/ - 2020-11-29T08:40:58+02:00 + 2020-11-30T12:10:20+02:00 https://alanorth.github.io/cgspace-notes/tags/ - 2020-11-29T08:40:58+02:00 + 2020-11-30T12:10:20+02:00 https://alanorth.github.io/cgspace-notes/2020-11/ - 2020-11-29T08:40:58+02:00 + 2020-11-29T14:50:02+02:00 @@ -239,7 +239,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2020-04-13T15:30:24+03:00 + 2020-11-30T12:10:20+02:00 @@ -319,7 +319,7 @@ https://alanorth.github.io/cgspace-notes/2016-06/ - 2020-04-13T15:30:24+03:00 + 2020-11-30T12:10:20+02:00 diff --git a/docs/tags/index.html b/docs/tags/index.html index ace9bb2d4..3a2f31cf3 100644 --- a/docs/tags/index.html +++ b/docs/tags/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/tags/notes/index.html b/docs/tags/notes/index.html index fc44a1a0d..6f048d0b5 100644 --- a/docs/tags/notes/index.html +++ b/docs/tags/notes/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/tags/notes/page/2/index.html b/docs/tags/notes/page/2/index.html index 84601476a..afffd8b13 100644 --- a/docs/tags/notes/page/2/index.html +++ b/docs/tags/notes/page/2/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/tags/notes/page/3/index.html b/docs/tags/notes/page/3/index.html index 91ab1d03f..13081674f 100644 --- a/docs/tags/notes/page/3/index.html +++ b/docs/tags/notes/page/3/index.html @@ -9,7 +9,7 @@ - +