diff --git a/content/posts/2019-02.md b/content/posts/2019-02.md index d4e068074..c059daf43 100644 --- a/content/posts/2019-02.md +++ b/content/posts/2019-02.md @@ -872,5 +872,16 @@ $ grep -o -E 'session_id=[A-Z0-9]{32}:ip_addr=94.71.244.172' dspace.log.2019-02- - I will add this user agent to the ["badbots" rate limiting in our nginx configuration](https://github.com/ilri/rmg-ansible-public/blob/master/roles/dspace/templates/nginx/default.conf.j2) - I realized that I had effectively only been applying the "badbots" rate limiting to requests at the root, so I added it to the other blocks that match Discovery, Browse, etc as well +- IWMI sent a few new ORCID identifiers for us to add to our controlled vocabulary +- I will merge them with our existing list and then resolve their names using my `resolve-orcids.py` script: + +``` +$ cat ~/src/git/DSpace/dspace/config/controlled-vocabularies/cg-creator-id.xml 2019-02-18-IWMI-ORCID-IDs.txt | grep -oE '[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}' | sort | uniq > /tmp/2019-02-18-combined-orcids.txt +$ ./resolve-orcids.py -i /tmp/2019-02-18-combined-orcids.txt -o /tmp/2019-02-18-combined-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 merged the changes to the `5_x-prod` branch and they will go live the next time we re-deploy CGSpace ([#412](https://github.com/ilri/DSpace/pull/412)) diff --git a/docs/2019-02/index.html b/docs/2019-02/index.html index 2f4da4266..2face16dd 100644 --- a/docs/2019-02/index.html +++ b/docs/2019-02/index.html @@ -42,7 +42,7 @@ sys 0m1.979s - + @@ -89,9 +89,9 @@ sys 0m1.979s "@type": "BlogPosting", "headline": "February, 2019", "url": "https://alanorth.github.io/cgspace-notes/2019-02/", - "wordCount": "4802", + "wordCount": "4900", "datePublished": "2019-02-01T21:37:30+02:00", - "dateModified": "2019-02-17T13:16:36+02:00", + "dateModified": "2019-02-18T15:00:47-08:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -1144,6 +1144,18 @@ UPDATE 1 + +
$ cat ~/src/git/DSpace/dspace/config/controlled-vocabularies/cg-creator-id.xml 2019-02-18-IWMI-ORCID-IDs.txt  | grep -oE '[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}' | sort | uniq > /tmp/2019-02-18-combined-orcids.txt
+$ ./resolve-orcids.py -i /tmp/2019-02-18-combined-orcids.txt -o /tmp/2019-02-18-combined-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
+
+ + diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 166172f4f..aef222c19 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2019-02/ - 2019-02-17T13:16:36+02:00 + 2019-02-18T15:00:47-08:00 @@ -209,7 +209,7 @@ https://alanorth.github.io/cgspace-notes/ - 2019-02-17T13:16:36+02:00 + 2019-02-18T15:00:47-08:00 0 @@ -220,7 +220,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2019-02-17T13:16:36+02:00 + 2019-02-18T15:00:47-08:00 0 @@ -232,13 +232,13 @@ https://alanorth.github.io/cgspace-notes/posts/ - 2019-02-17T13:16:36+02:00 + 2019-02-18T15:00:47-08:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2019-02-17T13:16:36+02:00 + 2019-02-18T15:00:47-08:00 0