From db13f4a8b5920fab7a282ad9a8b49f3c5033bcad Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 6 Mar 2018 21:48:10 +0200 Subject: [PATCH] Update notes for 2018-03-06 --- content/post/2018-03.md | 21 +++++++++++++++++++++ docs/2018-03/index.html | 29 ++++++++++++++++++++++++++--- docs/sitemap.xml | 10 +++++----- 3 files changed, 52 insertions(+), 8 deletions(-) diff --git a/content/post/2018-03.md b/content/post/2018-03.md index 8bed1d2d4..71b2317b5 100644 --- a/content/post/2018-03.md +++ b/content/post/2018-03.md @@ -26,3 +26,24 @@ $ ./delete-metadata-values.py -i Delete-3-Authors-2018-03-06.csv -db dspace -u d - This time there were no errors in whitespace but I did have to correct one incorrectly encoded accent character - Add new CRP subject "GRAIN LEGUMES AND DRYLAND CEREALS" to `input-forms.xml` ([#358](https://github.com/ilri/DSpace/pull/358)) +- Merge the ORCID integration stuff in to `5_x-prod` for deployment on CGSpace soon ([#359](https://github.com/ilri/DSpace/pull/359)) +- Deploy ORCID changes on CGSpace (linode18), run all system updates, and reboot the server +- Run all system updates on DSpace Test and reboot server +- I ran the [orcid-authority-to-item.py](https://gist.github.com/alanorth/24d8081a5dc25e2a4e27e548e7e2389c) script on CGSpace and mapped 2,864 ORCID identifiers from Solr to item metadata + +``` +$ ./orcid-authority-to-item.py -db dspace -u dspace -p 'fuuu' -s http://localhost:8081/solr -d +``` + +- I ran the DSpace cleanup script on CGSpace and it threw an error (as always): + +``` +Error: ERROR: update or delete on table "bitstream" violates foreign key constraint "bundle_primary_bitstream_id_fkey" on table "bundle" + Detail: Key (bitstream_id)=(150659) is still referenced from table "bundle". +``` + +- The solution is, as always: +``` +$ psql dspace -c 'update bundle set primary_bitstream_id=NULL where primary_bitstream_id in (150659);' +UPDATE 1 +``` diff --git a/docs/2018-03/index.html b/docs/2018-03/index.html index f2744a3b1..88c8af32b 100644 --- a/docs/2018-03/index.html +++ b/docs/2018-03/index.html @@ -20,7 +20,7 @@ Export a CSV of the IITA community metadata for Martin Mueller - + @@ -51,9 +51,9 @@ Export a CSV of the IITA community metadata for Martin Mueller "@type": "BlogPosting", "headline": "March, 2018", "url": "https://alanorth.github.io/cgspace-notes/2018-03/", - "wordCount": "137", + "wordCount": "262", "datePublished": "2018-03-02T16:07:54+02:00", - "dateModified": "2018-03-06T12:25:26+02:00", + "dateModified": "2018-03-06T14:45:51+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -146,6 +146,29 @@ $ ./delete-metadata-values.py -i Delete-3-Authors-2018-03-06.csv -db dspace -u d + +
$ ./orcid-authority-to-item.py -db dspace -u dspace -p 'fuuu' -s http://localhost:8081/solr -d
+
+ + + +
Error: ERROR: update or delete on table "bitstream" violates foreign key constraint "bundle_primary_bitstream_id_fkey" on table "bundle"
+  Detail: Key (bitstream_id)=(150659) is still referenced from table "bundle".
+
+ + diff --git a/docs/sitemap.xml b/docs/sitemap.xml index eb715447d..b20528c4d 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2018-03/ - 2018-03-06T12:25:26+02:00 + 2018-03-06T14:45:51+02:00 @@ -154,7 +154,7 @@ https://alanorth.github.io/cgspace-notes/ - 2018-03-06T12:25:26+02:00 + 2018-03-06T14:45:51+02:00 0 @@ -165,7 +165,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2018-03-06T12:25:26+02:00 + 2018-03-06T14:45:51+02:00 0 @@ -177,13 +177,13 @@ https://alanorth.github.io/cgspace-notes/post/ - 2018-03-06T12:25:26+02:00 + 2018-03-06T14:45:51+02:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2018-03-06T12:25:26+02:00 + 2018-03-06T14:45:51+02:00 0