Update notes for 2020-06-14

This commit is contained in:
2020-06-14 16:06:56 +03:00
parent d11e6501b3
commit bc8eafa380
25 changed files with 61 additions and 31 deletions

View File

@ -350,4 +350,20 @@ Total number of bot hits purged: 29025
- That should allow AReS to harvest for now until they update their user agent
- I restarted the AReS server's docker containers with `docker-compose down` and `docker-compose up -d` and the next day I saw CGSpace was in AReS again finally
## 2020-06-14
- Abenet asked for a list of authors from CIP's community so that Gabriel can make some corrections
- I generated a list of collections in CIPs two communities using the REST API:
```
$ curl -s 'https://cgspace.cgiar.org/rest/handle/10568/51671?expand=collections' 'https://cgspace.cgiar.org/rest/handle/10568/89346?expand=collections' | grep -oE '10568/[0-9]+' | sort | uniq > /tmp/cip-collections.txt
```
- Then I formatted it into a SQL query and exported a CSV:
```
dspace=# \COPY (SELECT DISTINCT text_value AS author, COUNT(*) FROM metadatavalue WHERE metadata_field_id = (SELECT metadata_field_id FROM metadatafieldregistry WHERE element = 'contributor' AND qualifier = 'author') AND resource_type_id = 2 AND resource_id IN (SELECT item_id FROM collection2item WHERE collection_id IN (SELECT resource_id FROM hANDle WHERE hANDle IN ('10568/100533', '10568/100653', '10568/101955', '10568/106580', '10568/108469', '10568/51671', '10568/53085', '10568/53086', '10568/53087', '10568/53088', '10568/53089', '10568/53090', '10568/53091', '10568/53092', '10568/53093', '10568/53094', '10568/64874', '10568/69069', '10568/70150', '10568/88229', '10568/89346', '10568/89347', '10568/99301', '10568/99302', '10568/99303', '10568/99304', '10568/99428'))) GROUP BY text_value ORDER BY count DESC) TO /tmp/cip-authors.csv WITH CSV;
COPY 3917
```
<!-- vim: set sw=2 ts=2: -->