diff --git a/content/posts/2023-05.md b/content/posts/2023-05.md index 2ad8d0d1d..c09f9785b 100644 --- a/content/posts/2023-05.md +++ b/content/posts/2023-05.md @@ -30,4 +30,29 @@ $ psql < locks-age.sql | grep " days " | awk -F"|" '{print $10}' | sort -u | xar - libvips does it correctly automatically and looks closer to the PDF - Meeting about CG Core types +## 2023-05-10 + +- Write a script to find the `metadata_field_id` values associated with the non-AGROVOC subjects I am working on for Sara + - This is useful because we want to know who to contact for a definition + - The script was: + +```bash +while read -r subject; do + metadata_field_id=$(psql -h localhost -U postgres -d dspacetest -qtAX < diff --git a/docs/2023-05/index.html b/docs/2023-05/index.html index c91ef1442..a4c615e68 100644 --- a/docs/2023-05/index.html +++ b/docs/2023-05/index.html @@ -25,7 +25,7 @@ Work on cleaning, proofing, and uploading twenty-seven records for IFPRI to CGSp - + @@ -56,9 +56,9 @@ Work on cleaning, proofing, and uploading twenty-seven records for IFPRI to CGSp "@type": "BlogPosting", "headline": "May, 2023", "url": "https://alanorth.github.io/cgspace-notes/2023-05/", - "wordCount": "197", + "wordCount": "309", "datePublished": "2023-05-03T08:53:36+03:00", - "dateModified": "2023-05-03T17:10:37+03:00", + "dateModified": "2023-05-04T17:27:29+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -162,6 +162,32 @@ Work on cleaning, proofing, and uploading twenty-seven records for IFPRI to CGSp
  • Meeting about CG Core types
  • +

    2023-05-10

    + +
    while read -r subject; do
    +    metadata_field_id=$(psql -h localhost -U postgres -d dspacetest -qtAX <<SQL
    +        SELECT DISTINCT(metadata_field_id) FROM metadatavalue WHERE LOWER(text_value)='$subject'
    +SQL
    +)
    +    metadata_field_id=$(echo $metadata_field_id | sed 's/[[:space:]]/||/g')
    +
    +    echo "$subject,$metadata_field_id"
    +done < <(csvcut -c 1 ~/Downloads/2023-04-26\ CGIAR\ non-AGROVOC\ subjects.csv | sed 1d)
    +
    +

    2023-05-11

    + diff --git a/docs/categories/index.html b/docs/categories/index.html index e51ef1c29..d02cda5db 100644 --- a/docs/categories/index.html +++ b/docs/categories/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/index.html b/docs/categories/notes/index.html index a57de83cf..b47e0e94f 100644 --- a/docs/categories/notes/index.html +++ b/docs/categories/notes/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/page/2/index.html b/docs/categories/notes/page/2/index.html index 0d9680cbb..e18434586 100644 --- a/docs/categories/notes/page/2/index.html +++ b/docs/categories/notes/page/2/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/page/3/index.html b/docs/categories/notes/page/3/index.html index da6f0a95e..8bdaf5475 100644 --- a/docs/categories/notes/page/3/index.html +++ b/docs/categories/notes/page/3/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/page/4/index.html b/docs/categories/notes/page/4/index.html index c83cbf2a1..f4d077c98 100644 --- a/docs/categories/notes/page/4/index.html +++ b/docs/categories/notes/page/4/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/page/5/index.html b/docs/categories/notes/page/5/index.html index f0f990564..3943d6f4d 100644 --- a/docs/categories/notes/page/5/index.html +++ b/docs/categories/notes/page/5/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/page/6/index.html b/docs/categories/notes/page/6/index.html index 654eb8c4b..b438028a2 100644 --- a/docs/categories/notes/page/6/index.html +++ b/docs/categories/notes/page/6/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/page/7/index.html b/docs/categories/notes/page/7/index.html index 62fff6803..7f69537ff 100644 --- a/docs/categories/notes/page/7/index.html +++ b/docs/categories/notes/page/7/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/page/8/index.html b/docs/categories/notes/page/8/index.html index 1fa3ce97f..f4f8dc4e6 100644 --- a/docs/categories/notes/page/8/index.html +++ b/docs/categories/notes/page/8/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/index.html b/docs/index.html index 2181fb030..2b7d5f6ab 100644 --- a/docs/index.html +++ b/docs/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/10/index.html b/docs/page/10/index.html index 6e2988ef3..829f216a8 100644 --- a/docs/page/10/index.html +++ b/docs/page/10/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/2/index.html b/docs/page/2/index.html index a17f4eaf7..68e107d26 100644 --- a/docs/page/2/index.html +++ b/docs/page/2/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/3/index.html b/docs/page/3/index.html index a8e47d028..3e62920e9 100644 --- a/docs/page/3/index.html +++ b/docs/page/3/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/4/index.html b/docs/page/4/index.html index fae3a9cf6..a921aafaa 100644 --- a/docs/page/4/index.html +++ b/docs/page/4/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/5/index.html b/docs/page/5/index.html index 471614315..057d79755 100644 --- a/docs/page/5/index.html +++ b/docs/page/5/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/6/index.html b/docs/page/6/index.html index a990d4ddf..f3f13c138 100644 --- a/docs/page/6/index.html +++ b/docs/page/6/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/7/index.html b/docs/page/7/index.html index f6d2ab72f..6bfbab217 100644 --- a/docs/page/7/index.html +++ b/docs/page/7/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/8/index.html b/docs/page/8/index.html index 100403635..a7dbe7a4c 100644 --- a/docs/page/8/index.html +++ b/docs/page/8/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/9/index.html b/docs/page/9/index.html index a94cfa6fc..d5fc1a14b 100644 --- a/docs/page/9/index.html +++ b/docs/page/9/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/index.html b/docs/posts/index.html index e46797adf..c3f1683fc 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/10/index.html b/docs/posts/page/10/index.html index 916bae80e..1516189e3 100644 --- a/docs/posts/page/10/index.html +++ b/docs/posts/page/10/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/2/index.html b/docs/posts/page/2/index.html index 711597f24..f6b008f27 100644 --- a/docs/posts/page/2/index.html +++ b/docs/posts/page/2/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/3/index.html b/docs/posts/page/3/index.html index b1490c506..6b576d31d 100644 --- a/docs/posts/page/3/index.html +++ b/docs/posts/page/3/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/4/index.html b/docs/posts/page/4/index.html index c8a71726c..648e3fbd6 100644 --- a/docs/posts/page/4/index.html +++ b/docs/posts/page/4/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/5/index.html b/docs/posts/page/5/index.html index f445077d1..93b50a9e7 100644 --- a/docs/posts/page/5/index.html +++ b/docs/posts/page/5/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/6/index.html b/docs/posts/page/6/index.html index 5526d6e44..c33fa182e 100644 --- a/docs/posts/page/6/index.html +++ b/docs/posts/page/6/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/7/index.html b/docs/posts/page/7/index.html index ba52fe99c..7295bef81 100644 --- a/docs/posts/page/7/index.html +++ b/docs/posts/page/7/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/8/index.html b/docs/posts/page/8/index.html index 4d634415a..4fc02b9cc 100644 --- a/docs/posts/page/8/index.html +++ b/docs/posts/page/8/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/9/index.html b/docs/posts/page/9/index.html index abab709d9..669359b60 100644 --- a/docs/posts/page/9/index.html +++ b/docs/posts/page/9/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/sitemap.xml b/docs/sitemap.xml index be53f5d37..5be2d472d 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -3,19 +3,19 @@ xmlns:xhtml="http://www.w3.org/1999/xhtml"> https://alanorth.github.io/cgspace-notes/categories/ - 2023-05-04T14:44:51+03:00 + 2023-05-04T17:27:29+03:00 https://alanorth.github.io/cgspace-notes/ - 2023-05-04T14:44:51+03:00 + 2023-05-04T17:27:29+03:00 https://alanorth.github.io/cgspace-notes/2023-05/ - 2023-05-03T17:10:37+03:00 + 2023-05-04T17:27:29+03:00 https://alanorth.github.io/cgspace-notes/categories/notes/ - 2023-05-04T14:44:51+03:00 + 2023-05-04T17:27:29+03:00 https://alanorth.github.io/cgspace-notes/posts/ - 2023-05-04T14:44:51+03:00 + 2023-05-04T17:27:29+03:00 https://alanorth.github.io/cgspace-notes/2023-04/ 2023-05-04T14:44:51+03:00