Keep in mind that the language needs to match the metadata record as well as the "value." This could be en_US, null, or several other things.
It's one of the implementation details that makes it hard for us to use and recommend the REST API to be honest. Depending on how the metadata field was added (or edited) the language could be any number of weird values. Cheers, On Fri, Jul 14, 2017, 15:40 Evelthon Prodromou <[email protected]> wrote: > Hello everyone, > > > I was wondering, is it possible use the REST API to get all items that > have a specific metadata field set (for example dc.identifier.doi)? > > > I have tried the following command, but returns no results: > > curl -X POST -H "Content-Type: application/json" -H "rest-dspace-token: > <token_value>" --data '{"key": "dc.identifier.doi","language": > null,"value": null }' > http://hub.lib.ucy.ac.cy/api/items/find-by-metadata-field > > > If the value is specified, one result is returned. > > > > Many thanks, > > Evelthon > > -- > You received this message because you are subscribed to the Google Groups > "DSpace Technical Support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/dspace-tech. > For more options, visit https://groups.google.com/d/optout. > -- Alan Orth [email protected] https://picturingjordan.com https://englishbulgaria.net https://mjanja.ch -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
