From 237f9c362187e2635bcae73b3e7a1f174eabf501 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 14 Apr 2020 20:01:06 +0300 Subject: [PATCH] Add notes for 2020-04-14 --- content/posts/2020-04.md | 19 ++++++++++++++++++- docs/2020-04/index.html | 30 ++++++++++++++++++++++++++---- docs/sitemap.xml | 10 +++++----- 3 files changed, 49 insertions(+), 10 deletions(-) diff --git a/content/posts/2020-04.md b/content/posts/2020-04.md index bf00a3609..b183ca909 100644 --- a/content/posts/2020-04.md +++ b/content/posts/2020-04.md @@ -150,5 +150,22 @@ $ podman create --ulimit nofile=32000:32000 --name artifactory -v artifactory_da $ podman start artifactory ``` - +## 2020-04-14 +- A few days ago Peter asked me to update an author's name on CGSpace and in the controlled vocabularies: + +``` +dspace=# UPDATE metadatavalue SET text_value='Knight-Jones, Theodore J.D.' WHERE resource_type_id=2 AND metadata_field_id=3 AND text_value='Knight-Jones, T.J.D.'; +``` + +- I updated his existing records on CGSpace, changed the controlled lists, added his ORCID identifier to the controlled list, and tagged his thirty-nine items with the ORCID iD +- The new DSpace 6 stuff that Atmire sent modifies the Mirage 2's `pom.xml` to copy the each theme's resulting `node_modules` to each theme after building and installing with `ant update` because they moved some packages from bower to npm and now reference them in `page-structure.xsl` + - This is a good idea, because bower is no longer supported, and npm has gotten a lot better, but it causes an extra 200,000 files to get copied! + - Most scripts are concatenated into `theme.js` during build, so we don't need the `node_modules` after that, but there are three scripts in `page-structure.xsl` that are not included there + - The scripts are a very old version of modernizr which is not even available on npm, html5shiv, and respond.js + - For modernizr I can simply download a static copy and put it in `0_CGIAR/scripts` and concatenate it into `theme.js` + - For the others, I can revert to using them from bower's `vendor` directory, which is installed by the parent XMLUI Mirage 2 theme + - During this process I also realized that `mvn clean` doesn't actually clean everything, and `dspace/modules/xmlui-mirage2/target` is remaining from previous builds and contains a bunch of shit from previous builds (including all the themes which I was trying to build without!) + - This must be a DSpace bug, but I should theoretically check on vanilla DSpace and then file a bug... + + diff --git a/docs/2020-04/index.html b/docs/2020-04/index.html index 60ce34f9e..1011a0cca 100644 --- a/docs/2020-04/index.html +++ b/docs/2020-04/index.html @@ -25,7 +25,7 @@ On the same note, the one item Abenet pointed out last week now has a donut with - + @@ -55,9 +55,9 @@ On the same note, the one item Abenet pointed out last week now has a donut with "@type": "BlogPosting", "headline": "April, 2020", "url": "https://alanorth.github.io/cgspace-notes/2020-04/", - "wordCount": "1025", + "wordCount": "1308", "datePublished": "2020-04-02T10:53:24+03:00", - "dateModified": "2020-04-12T17:09:14+03:00", + "dateModified": "2020-04-13T17:24:05+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -277,7 +277,29 @@ public static final int SITE = 5; $ podman pull docker.bintray.io/jfrog/artifactory-oss:latest $ podman create --ulimit nofile=32000:32000 --name artifactory -v artifactory_data:/var/opt/jfrog/artifactory -p 8081-8082:8081-8082 docker.bintray.io/jfrog/artifactory-oss $ podman start artifactory - +

2020-04-14

+ +
dspace=# UPDATE metadatavalue SET text_value='Knight-Jones, Theodore J.D.' WHERE resource_type_id=2 AND metadata_field_id=3 AND text_value='Knight-Jones, T.J.D.';
+
+ diff --git a/docs/sitemap.xml b/docs/sitemap.xml index b93e0caf5..196ade5d3 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,27 +4,27 @@ https://alanorth.github.io/cgspace-notes/2020-04/ - 2020-04-12T17:09:14+03:00 + 2020-04-13T17:24:05+03:00 https://alanorth.github.io/cgspace-notes/categories/ - 2020-04-13T15:30:24+03:00 + 2020-04-13T17:24:05+03:00 https://alanorth.github.io/cgspace-notes/ - 2020-04-13T15:30:24+03:00 + 2020-04-13T17:24:05+03:00 https://alanorth.github.io/cgspace-notes/categories/notes/ - 2020-04-13T15:30:24+03:00 + 2020-04-13T17:24:05+03:00 https://alanorth.github.io/cgspace-notes/posts/ - 2020-04-13T15:30:24+03:00 + 2020-04-13T17:24:05+03:00