mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2023-01-12
This commit is contained in:
@ -103,4 +103,37 @@ $ csvcut -c 'cg.contributor.affiliation[en_US]' ~/Downloads/2023-01-09-initiativ
|
||||
|
||||
- Export the CGSpace Initiatives collection to check for missing regions and collection mappings
|
||||
|
||||
## 2023-01-11
|
||||
|
||||
- I'm trying the DSpace 7 REST API again
|
||||
- While following onathe [DSpace 7 REST API authentication docs](https://github.com/DSpace/RestContract/blob/main/authentication.md) I still cannot log in via curl on the command line because I get a `Access is denied. Invalid CSRF token.` message
|
||||
- Logging in via the HAL Browser works...
|
||||
- Someone on the DSpace Slack mentioned that the [authentication documentation is out of date](https://github.com/DSpace/RestContract/issues/209) and we need to specify the cookie too
|
||||
- I tried it and finally got it to work:
|
||||
|
||||
```console
|
||||
$ curl --head https://dspace7test.ilri.org/server/api
|
||||
...
|
||||
set-cookie: DSPACE-XSRF-COOKIE=42c78c56-613d-464f-89ea-79142fc5b519; Path=/server; Secure; HttpOnly; SameSite=None
|
||||
dspace-xsrf-token: 42c78c56-613d-464f-89ea-79142fc5b519
|
||||
$ curl -v -X POST https://dspace7test.ilri.org/server/api/authn/login --data "user=alantest%40cgiar.org&password=dspace" -H "X-XSRF-TOKEN: 42c78c56-613d-464f-89ea-79142fc5b519" -b "DSPACE-XSRF-COOKIE=42c78c56-613d-464f-89ea-79142fc5b519"
|
||||
...
|
||||
authorization: Bearer eyJh...9-0
|
||||
$ curl -v "https://dspace7test.ilri.org/api/core/items" -H "Authorization: Bearer eyJh...9-0"
|
||||
```
|
||||
|
||||
- I created [a pull request](https://github.com/DSpace/RestContract/pull/213) to fix the docs
|
||||
- I did quite a lot of cleanup and updates on the IFPRI batch items for the Gender Equality batch upload
|
||||
- Then I uploaded them to CGSpace
|
||||
- I added about twenty more ORCID identifiers to my list and tagged them on CGSpace
|
||||
|
||||
## 2023-01-12
|
||||
|
||||
- I exported the entire CGSpace and did some cleanups on all metadata in OpenRefine
|
||||
- I was primarily interested in normalizing the DOIs, but I also normalized a bunch of publishing places
|
||||
- After this imports I will export it again to do the Initiative and region mappings
|
||||
- I ran the `fix-initiative-mappings.py` script and got forty-nine new mappings...
|
||||
- I added several dozen new ORCID identifiers to my list and tagged ~500 on CGSpace
|
||||
- Start a harvest on AReS
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
Reference in New Issue
Block a user