From 471fc14d8426b88894d526c3416acef494f7cb82 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 4 Feb 2019 09:32:27 +0200 Subject: [PATCH] Add notes for 2019-02-04 --- content/posts/2019-02.md | 9 +++++++++ docs/2019-02/index.html | 16 +++++++++++++--- docs/sitemap.xml | 10 +++++----- 3 files changed, 27 insertions(+), 8 deletions(-) diff --git a/content/posts/2019-02.md b/content/posts/2019-02.md index 22fb353bf..db9306072 100644 --- a/content/posts/2019-02.md +++ b/content/posts/2019-02.md @@ -130,4 +130,13 @@ $ grep -o -E 'session_id=[A-Z0-9]{32}:ip_addr=195.201.104.240' dspace.log.2019-0 - Run all system updates on linode20 and reboot it - This will be the new AReS repository explorer server soon +## 2019-02-04 + +- Generate a list of CTA subjects from CGSpace for Peter: + +``` +dspace=# \copy (SELECT DISTINCT text_value, count(*) FROM metadatavalue WHERE resource_type_id=2 AND metadata_field_id=124 GROUP BY text_value ORDER BY COUNT DESC) to /tmp/cta-subjects.csv with csv header; +COPY 321 +``` + diff --git a/docs/2019-02/index.html b/docs/2019-02/index.html index bfd81db3e..a5058f7a7 100644 --- a/docs/2019-02/index.html +++ b/docs/2019-02/index.html @@ -42,7 +42,7 @@ sys 0m1.979s - + @@ -89,9 +89,9 @@ sys 0m1.979s "@type": "BlogPosting", "headline": "February, 2019", "url": "https://alanorth.github.io/cgspace-notes/2019-02/", - "wordCount": "659", + "wordCount": "696", "datePublished": "2019-02-01T21:37:30+02:00", - "dateModified": "2019-02-03T11:33:02+02:00", + "dateModified": "2019-02-03T19:05:28+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -304,6 +304,16 @@ sys 0m1.979s +

2019-02-04

+ + + +
dspace=# \copy (SELECT DISTINCT text_value, count(*) FROM metadatavalue WHERE resource_type_id=2 AND metadata_field_id=124 GROUP BY text_value ORDER BY COUNT DESC) to /tmp/cta-subjects.csv with csv header;
+COPY 321
+
+ diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 4f7b60477..9469cd3ea 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2019-02/ - 2019-02-03T11:33:02+02:00 + 2019-02-03T19:05:28+02:00 @@ -209,7 +209,7 @@ https://alanorth.github.io/cgspace-notes/ - 2019-02-03T11:33:02+02:00 + 2019-02-03T19:05:28+02:00 0 @@ -220,7 +220,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2019-02-03T11:33:02+02:00 + 2019-02-03T19:05:28+02:00 0 @@ -232,13 +232,13 @@ https://alanorth.github.io/cgspace-notes/posts/ - 2019-02-03T11:33:02+02:00 + 2019-02-03T19:05:28+02:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2019-02-03T11:33:02+02:00 + 2019-02-03T19:05:28+02:00 0