mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2017-03-05
This commit is contained in:
@ -58,3 +58,15 @@ DirectClass CMYK
|
||||
$ identify -format '%r\n' Africa\ group\ of\ negotiators.pdf\[0\]
|
||||
DirectClass sRGB Alpha
|
||||
```
|
||||
|
||||
## 2017-03-05
|
||||
|
||||
- Look into helping developers from landportal.info with a query for items related to LAND on the REST API
|
||||
- They want something like the items that are returned by the general "LAND" query in the search interface, but we cannot do that
|
||||
- We can only return specific results for metadata fields, like:
|
||||
|
||||
```
|
||||
$ curl -s -H "accept: application/json" -H "Content-Type: application/json" -X POST "https://dspacetest.cgiar.org/rest/items/find-by-metadata-field" -d '{"key": "cg.subject.ilri","value": "LAND REFORM", "language": null}' | json_pp
|
||||
```
|
||||
|
||||
- But there are hundreds of combinations of fields and values (like `dc.subject` and all the center subjects), and we can't use wildcards in REST!
|
||||
|
Reference in New Issue
Block a user