mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2024-05-13
This commit is contained in:
@ -64,4 +64,23 @@ $ csvjoin -c uuid /tmp/withdrawn-title.csv /tmp/withdrawn-handles.csv /tmp/withd
|
||||
- This gives me an insight into who submitted at 334 of the duplicates over the past few years...
|
||||
- I fixed a few hundred titles with leading/trailing whitespace, newlines, and ligatures like ff, fi, fl, ffi, and ffl
|
||||
|
||||
## 2024-05-13
|
||||
|
||||
- Export a list of IFPRI information products with handle links and CONTENTdm links:
|
||||
|
||||
```
|
||||
$ csvgrep -c 'dc.description.provenance[en_US]' -m 'CONTENTdm' cgspace.csv \
|
||||
| csvcut -c 'id,dc.description.provenance[en_US],dc.identifier.uri[en_US]' \
|
||||
| tee /tmp/ifpri-redirects.csv \
|
||||
| csvstat --count
|
||||
2645
|
||||
```
|
||||
|
||||
- I discovered the `/server/api/pid/find` endpoint today, which is much more direct and manageable than the `/server/api/discover/search/objects?query=` endpoint when trying to get metadata for a Handle (item, collection, or community)
|
||||
- The "pid" stands for permanent identifiers apparently, and we can use it like this:
|
||||
|
||||
```
|
||||
https://dspace7test.ilri.org/server/api/pid/find?id=10568/118424
|
||||
```
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
Reference in New Issue
Block a user