mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2023-05-11
This commit is contained in:
@ -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 <<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)
|
||||
```
|
||||
|
||||
- I also realized that Bernard Bett didn't have any items on CGSpace tagged with his ORCID identifier, so I tagged 230!
|
||||
|
||||
## 2023-05-11
|
||||
|
||||
- CG Core meeting
|
||||
- Finalize looking at the CGSpace non-AGROVOC subjects for FAO
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
Reference in New Issue
Block a user