diff --git a/content/posts/2024-03.md b/content/posts/2024-03.md index 0f2dbc163..9352deea7 100644 --- a/content/posts/2024-03.md +++ b/content/posts/2024-03.md @@ -65,4 +65,28 @@ UPDATE metadatavalue SET text_value='United Nations Children''s Fund' WHERE dspa - Note the use of two single quotes to escape the one in the name +## 2024-03-11 + +- Experimenting with moving some of my Python scripts to the DSpace 7 REST API + - I need a way to get UUIDs for Handles... + - Seems that I can use a Discovery query like: https://dspace7test.ilri.org/server/api/discover/search/objects?dsoType=item&query=handle:10568/130864 + - Then just take the first result...? +- I spent some time working on the script get abstracts from CGSpace, and found a bug in my logic + - I also noticed that one item had two abstracts, but the first one was blank! + - Looking deeper, I found 113 blank metadata values so I deleted those: + +```sql +BEGIN; +DELETE FROM metadatavalue WHERE dspace_object_id IN (SELECT uuid FROM item) AND text_value=''; +COMMIT; +``` + +- I also found a few dozen items with "N/A" for their citation, so I deleted those too: + +```sql +BEGIN; +DELETE FROM metadatavalue WHERE dspace_object_id IN (SELECT uuid FROM item) AND text_value='N/A' AND metadata_field_id=146; +COMMIT; +``` + diff --git a/docs/2024-03/index.html b/docs/2024-03/index.html index c3a03c9c9..1735252c1 100644 --- a/docs/2024-03/index.html +++ b/docs/2024-03/index.html @@ -19,7 +19,7 @@ It might be this issue: https://github.com/DSpace/dspace-angular/issues/2808 - + @@ -44,9 +44,9 @@ It might be this issue: https://github.com/DSpace/dspace-angular/issues/2808 "@type": "BlogPosting", "headline": "March, 2024", "url": "https://alanorth.github.io/cgspace-notes/2024-03/", - "wordCount": "317", + "wordCount": "450", "datePublished": "2024-03-01T09:55:00+03:00", - "dateModified": "2024-03-04T10:02:14+03:00", + "dateModified": "2024-03-08T17:31:19+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -186,7 +186,32 @@ It might be this issue: https://github.com/DSpace/dspace-angular/issues/2808 - +

2024-03-11

+ +
BEGIN;
+DELETE FROM metadatavalue WHERE dspace_object_id IN (SELECT uuid FROM item) AND text_value='';
+COMMIT;
+
+
BEGIN;
+DELETE FROM metadatavalue WHERE dspace_object_id IN (SELECT uuid FROM item) AND text_value='N/A' AND metadata_field_id=146;
+COMMIT;
+
diff --git a/docs/categories/index.html b/docs/categories/index.html index 70aabf526..fad9586c4 100644 --- a/docs/categories/index.html +++ b/docs/categories/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/index.xml b/docs/categories/index.xml index f6b02a371..c915f4505 100644 --- a/docs/categories/index.xml +++ b/docs/categories/index.xml @@ -6,7 +6,7 @@ Recent content in Categories on CGSpace Notes Hugo -- gohugo.io en-us - Mon, 04 Mar 2024 10:02:14 +0300 + Fri, 08 Mar 2024 17:31:19 +0300 Notes diff --git a/docs/categories/notes/index.html b/docs/categories/notes/index.html index 89132c1cb..a4a844771 100644 --- a/docs/categories/notes/index.html +++ b/docs/categories/notes/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/index.xml b/docs/categories/notes/index.xml index 3fdcc0d00..c7b047220 100644 --- a/docs/categories/notes/index.xml +++ b/docs/categories/notes/index.xml @@ -6,7 +6,7 @@ Recent content in Notes on CGSpace Notes Hugo -- gohugo.io en-us - Mon, 04 Mar 2024 10:02:14 +0300 + Fri, 08 Mar 2024 17:31:19 +0300 March, 2024 diff --git a/docs/categories/notes/page/2/index.html b/docs/categories/notes/page/2/index.html index 602f51e43..e98027659 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 a2452f68e..12478a36f 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 e2f181abd..dff7c7fe7 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 4b3fde71f..b3c7db5f3 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 50567623e..72932199b 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 82c87fd3f..81eaeff88 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 0588a583b..02830978e 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/categories/notes/page/9/index.html b/docs/categories/notes/page/9/index.html index c1add2d33..33d541c41 100644 --- a/docs/categories/notes/page/9/index.html +++ b/docs/categories/notes/page/9/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/index.html b/docs/index.html index 41db5a193..fe1b8c584 100644 --- a/docs/index.html +++ b/docs/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/index.xml b/docs/index.xml index fb9901bfe..18cd42c55 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -6,7 +6,7 @@ Recent content on CGSpace Notes Hugo -- gohugo.io en-us - Mon, 04 Mar 2024 10:02:14 +0300 + Fri, 08 Mar 2024 17:31:19 +0300 March, 2024 diff --git a/docs/page/10/index.html b/docs/page/10/index.html index c40cca0e4..f9dbceeda 100644 --- a/docs/page/10/index.html +++ b/docs/page/10/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/11/index.html b/docs/page/11/index.html index 751eb45aa..32999721c 100644 --- a/docs/page/11/index.html +++ b/docs/page/11/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/2/index.html b/docs/page/2/index.html index a77552979..db5aa2824 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 e1e465e33..872ccd77d 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 fa5a4604a..79596549f 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 05968fcdb..766a98418 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 8b076c941..c589d5ad3 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 1378201c5..0dda66337 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 2e35f57ba..7d91c4427 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 6045f83d0..8084a5bae 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 e9b73eade..c1f02f1fc 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/index.xml b/docs/posts/index.xml index ce4d64938..a1e95fbdd 100644 --- a/docs/posts/index.xml +++ b/docs/posts/index.xml @@ -6,7 +6,7 @@ Recent content in Posts on CGSpace Notes Hugo -- gohugo.io en-us - Mon, 04 Mar 2024 10:02:14 +0300 + Fri, 08 Mar 2024 17:31:19 +0300 March, 2024 diff --git a/docs/posts/page/10/index.html b/docs/posts/page/10/index.html index c3ea9d2b5..1b7339b1a 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/11/index.html b/docs/posts/page/11/index.html index 233c4299f..144b612b8 100644 --- a/docs/posts/page/11/index.html +++ b/docs/posts/page/11/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/2/index.html b/docs/posts/page/2/index.html index 3b024ca27..fcadc824b 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 17b07c4b4..288074b7d 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 c21cea271..2360867cd 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 1afd8110a..ebc110e61 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 9f30e98dc..dd90e5266 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 607bc6a3a..0616b0eb3 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 d7330f762..6c99ddf10 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 38989af93..726a52843 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 9c4270d93..a004fe5f7 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/ - 2024-03-04T10:02:14+03:00 + 2024-03-08T17:31:19+03:00 https://alanorth.github.io/cgspace-notes/ - 2024-03-04T10:02:14+03:00 + 2024-03-08T17:31:19+03:00 https://alanorth.github.io/cgspace-notes/2024-03/ - 2024-03-04T10:02:14+03:00 + 2024-03-08T17:31:19+03:00 https://alanorth.github.io/cgspace-notes/categories/notes/ - 2024-03-04T10:02:14+03:00 + 2024-03-08T17:31:19+03:00 https://alanorth.github.io/cgspace-notes/posts/ - 2024-03-04T10:02:14+03:00 + 2024-03-08T17:31:19+03:00 https://alanorth.github.io/cgspace-notes/2024-02/ 2024-03-01T09:55:02+03:00