From ddd138cb59ae753f9e1635994ea62b73148d05aa Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 8 Mar 2018 21:10:16 +0200 Subject: [PATCH] Add notes for 2018-03-08 --- content/post/2018-03.md | 10 ++++++++++ docs/2018-03/index.html | 17 ++++++++++++++--- docs/sitemap.xml | 10 +++++----- 3 files changed, 29 insertions(+), 8 deletions(-) diff --git a/content/post/2018-03.md b/content/post/2018-03.md index 3c6841969..96c4c7fdc 100644 --- a/content/post/2018-03.md +++ b/content/post/2018-03.md @@ -118,3 +118,13 @@ if(isBlank(value), "Hernan Ceballos: 0000-0002-8744-7918", value + "||Hernan Ceb - One thing that bothers me is that this won't honor author order - It might be better to do batches of these in PostgreSQL with a script that takes the `place` column of an author into account when setting the `cg.creator.id` +- I wrote a Python script to read the author names and ORCID identifiers from CSV and create matching `cg.creator.id` fieldsa: [add-orcid-identifiers-csv.py ](https://gist.github.com/alanorth/a49d85cd9c5dea89cddbe809813a7050) +- The CSV should have two columns: author name and ORCID identifier: + +``` +dc.contributor.author,cg.creator.id +"Orth, Alan",Alan S. Orth: 0000-0002-1735-7458 +"Orth, A.",Alan S. Orth: 0000-0002-1735-7458 +``` + +- I didn't integrate the ORCID API lookup for author names in this script for now because I was only interested in "tagging" old items for a few given authors diff --git a/docs/2018-03/index.html b/docs/2018-03/index.html index ff5adae59..a5545d250 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": "599", + "wordCount": "671", "datePublished": "2018-03-02T16:07:54+02:00", - "dateModified": "2018-03-08T15:05:29+02:00", + "dateModified": "2018-03-08T17:32:38+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -247,6 +247,17 @@ dspacetest=# select distinct text_lang from metadatavalue where resource_type_id + +
dc.contributor.author,cg.creator.id
+"Orth, Alan",Alan S. Orth: 0000-0002-1735-7458
+"Orth, A.",Alan S. Orth: 0000-0002-1735-7458
+
+ + diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 7bceb4836..643e79d2b 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2018-03/ - 2018-03-08T15:05:29+02:00 + 2018-03-08T17:32:38+02:00 @@ -154,7 +154,7 @@ https://alanorth.github.io/cgspace-notes/ - 2018-03-08T15:05:29+02:00 + 2018-03-08T17:32:38+02:00 0 @@ -165,7 +165,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2018-03-08T15:05:29+02:00 + 2018-03-08T17:32:38+02:00 0 @@ -177,13 +177,13 @@ https://alanorth.github.io/cgspace-notes/post/ - 2018-03-08T15:05:29+02:00 + 2018-03-08T17:32:38+02:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2018-03-08T15:05:29+02:00 + 2018-03-08T17:32:38+02:00 0