1
0
mirror of https://github.com/alanorth/cgspace-notes.git synced 2025-01-27 05:49:12 +01:00

Add notes for 2022-12-29

This commit is contained in:
2022-12-29 08:32:08 +02:00
parent 2e6c267397
commit 9768a0fe57
33 changed files with 66 additions and 34 deletions

@ -331,4 +331,18 @@ $ grep -xvFf /tmp/orig.csv /tmp/cgspace-mappings.csv > /tmp/2022-12-25-fix-mappi
- And I can access the website just fine, so I guess everything is OK
- I exported the Initiatives collection to tag missing regions...
## 2022-12-29
- I exported the Initiatives collection again and I'm wondering why we have so many items with `text_lang` set to NULL and others when I have been periodically resetting them
- It turns out that doing `... text_lang IN ('en', '', NULL)` doesn't properly check for values with NULL
- We actually need to do:
```sql
UPDATE metadatavalue SET text_lang='en_US' WHERE dspace_object_id IN (SELECT uuid FROM item) AND text_lang IS NULL OR text_lang IN ('en', '');
```
- I updated the text lang values on CGSpace and re-exported the community
- I fixed a bunch of invalid licenses in these items
- Then I added mappings for another handful of items
<!-- vim: set sw=2 ts=2: -->