diff --git a/content/posts/2018-03.md b/content/posts/2018-03.md index e00ecf438..403430e9f 100644 --- a/content/posts/2018-03.md +++ b/content/posts/2018-03.md @@ -206,3 +206,26 @@ org.apache.jasper.JasperException: java.lang.ArrayIndexOutOfBoundsException: -1 - If I do a report for "Orth, Alan" with the same custom layout it works! - I submitted a ticket to Atmire: https://tracker.atmire.com/tickets-cgiar-ilri/view-ticket?id=589 - Small fix to the example citation text in Listings and Reports ([#365](https://github.com/ilri/DSpace/pull/365)) + +## 2018-03-16 + +- ICT made the DNS updates for dspacetest.cgiar.org late last night +- I have removed the old server (linode02 aka linode578611) in favor of linode19 aka linode6624164 +- Looking at the CRP subjects on CGSpace I see there is one blank one so I'll just fix it: + +``` +dspace=# delete from metadatavalue where resource_type_id=2 and metadata_field_id=230 and text_value=''; +``` + +- Copy all CRP subjects to a CSV to do the mass updates: + +``` +dspace=# \copy (select distinct text_value, count(*) from metadatavalue where resource_type_id=2 and metadata_field_id=230 group by text_value order by count desc) to /tmp/crps.csv with csv header; +COPY 21 +``` + +- Once I prepare the new input forms ([#362](https://github.com/ilri/DSpace/issues/362)) I will need to do the batch corrections: + +``` +$ ./fix-metadata-values.py -i Correct-20-CRPs-2018-03-16.csv -db dspace -u dspace -p 'fuuu' -f cg.contributor.crp -t correct -m 230 -n -d +``` diff --git a/docs/2018-03/index.html b/docs/2018-03/index.html index 5eb6c6da0..5779bdedb 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": "1221", + "wordCount": "1348", "datePublished": "2018-03-02T16:07:54+02:00", - "dateModified": "2018-03-15T21:44:01+02:00", + "dateModified": "2018-03-15T21:49:36+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -353,6 +353,32 @@ org.apache.jasper.JasperException: java.lang.NullPointerException
dspace=# delete from metadatavalue where resource_type_id=2 and metadata_field_id=230 and text_value='';
+
+
+dspace=# \copy (select distinct text_value, count(*) from metadatavalue where resource_type_id=2 and metadata_field_id=230 group by text_value order by count desc) to /tmp/crps.csv with csv header;
+COPY 21
+
+
+$ ./fix-metadata-values.py -i Correct-20-CRPs-2018-03-16.csv -db dspace -u dspace -p 'fuuu' -f cg.contributor.crp -t correct -m 230 -n -d
+
+
diff --git a/docs/sitemap.xml b/docs/sitemap.xml
index 18a534214..0612a2779 100644
--- a/docs/sitemap.xml
+++ b/docs/sitemap.xml
@@ -4,7 +4,7 @@