diff --git a/content/posts/2018-08.md b/content/posts/2018-08.md index 213404083..f81dc587a 100644 --- a/content/posts/2018-08.md +++ b/content/posts/2018-08.md @@ -69,5 +69,20 @@ dspace=# \copy (select distinct text_value, count(*) from metadatavalue where me - Start working on adding the ORCID metadata to a handful of CIAT authors as requested by Elizabeth earlier this month - I might need to overhaul the [add-orcid-identifiers-csv.py](https://gist.github.com/alanorth/a49d85cd9c5dea89cddbe809813a7050) script to be a little more robust about author order and ORCID metadata that might have been altered manually by editors after submission, as this script was written without that consideration +- After checking a few examples I see that checking only the `text_value` and `place` when adding ORCID fields is not enough anymore +- It was a sane assumption when I was initially migrating ORCID records from Solr to regular metadata, but now it seems that some authors might have been added or changed after item submission +- Now it is better to check if there is _any_ existing ORCID identifier for a given author for the item... +- I will have to update my script to extract the ORCID identifier and search for that +- Re-create my local DSpace database using the latest PostgreSQL 9.6 Docker image and re-import the latest CGSpace dump: + +``` +$ sudo docker run --name dspacedb -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres:9.6-alpine +$ createuser -h localhost -U postgres --pwprompt dspacetest +$ createdb -h localhost -U postgres -O dspacetest --encoding=UNICODE dspacetest +$ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest superuser;' +$ pg_restore -h localhost -U postgres -d dspacetest -O --role=dspacetest -h localhost ~/Downloads/cgspace_2018-08-16.backup +$ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest nosuperuser;' +$ psql -h localhost -U postgres -f ~/src/git/DSpace/dspace/etc/postgres/update-sequences.sql dspacetest +``` diff --git a/docs/2018-08/index.html b/docs/2018-08/index.html index aa1715128..4c32d7c75 100644 --- a/docs/2018-08/index.html +++ b/docs/2018-08/index.html @@ -34,7 +34,7 @@ I ran all system updates on DSpace Test and rebooted it - + @@ -79,9 +79,9 @@ I ran all system updates on DSpace Test and rebooted it "@type": "BlogPosting", "headline": "August, 2018", "url": "https://alanorth.github.io/cgspace-notes/2018-08/", - "wordCount": "649", + "wordCount": "834", "datePublished": "2018-08-01T11:52:54+03:00", - "dateModified": "2018-08-15T10:56:38+01:00", + "dateModified": "2018-08-16T15:40:38+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -225,8 +225,22 @@ $ ./delete-metadata-values.py -i 2018-08-15-Remove-11-Affiliations.csv -db dspac +
$ sudo docker run --name dspacedb -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres:9.6-alpine
+$ createuser -h localhost -U postgres --pwprompt dspacetest
+$ createdb -h localhost -U postgres -O dspacetest --encoding=UNICODE dspacetest
+$ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest superuser;'
+$ pg_restore -h localhost -U postgres -d dspacetest -O --role=dspacetest -h localhost ~/Downloads/cgspace_2018-08-16.backup
+$ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest nosuperuser;'
+$ psql -h localhost -U postgres -f ~/src/git/DSpace/dspace/etc/postgres/update-sequences.sql dspacetest
+
+ diff --git a/docs/robots.txt b/docs/robots.txt index a859aed75..40c4ac8f3 100644 --- a/docs/robots.txt +++ b/docs/robots.txt @@ -38,7 +38,7 @@ Disallow: /cgspace-notes/2015-12/ Disallow: /cgspace-notes/2015-11/ Disallow: /cgspace-notes/ Disallow: /cgspace-notes/categories/ -Disallow: /cgspace-notes/categories/notes/ Disallow: /cgspace-notes/tags/notes/ +Disallow: /cgspace-notes/categories/notes/ Disallow: /cgspace-notes/posts/ Disallow: /cgspace-notes/tags/ diff --git a/docs/sitemap.xml b/docs/sitemap.xml index df61f7e6d..52fb1da43 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2018-08/ - 2018-08-15T10:56:38+01:00 + 2018-08-16T15:40:38+03:00 @@ -179,7 +179,7 @@ https://alanorth.github.io/cgspace-notes/ - 2018-08-15T10:56:38+01:00 + 2018-08-16T15:40:38+03:00 0 @@ -188,27 +188,27 @@ 0 + + https://alanorth.github.io/cgspace-notes/tags/notes/ + 2018-08-16T15:40:38+03:00 + 0 + + https://alanorth.github.io/cgspace-notes/categories/notes/ 2018-03-09T22:10:33+02:00 0 - - https://alanorth.github.io/cgspace-notes/tags/notes/ - 2018-08-15T10:56:38+01:00 - 0 - - https://alanorth.github.io/cgspace-notes/posts/ - 2018-08-15T10:56:38+01:00 + 2018-08-16T15:40:38+03:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2018-08-15T10:56:38+01:00 + 2018-08-16T15:40:38+03:00 0