Substitution of 'filtered-itens'

24 views
Skip to first unread message

Lucas Lago

unread,
Aug 23, 2022, 9:38:28 AM8/23/22
to dspace-c...@googlegroups.com
Hi all,

We are upgrading our DSpace to version 7, and there is one interface where we use filtered-itens to create a webpage with a search function.

Is there a new interface that can be used to power a simple search by metadata on DSpace 7?


Thanks,
Lucas Lago

Tim Donohue

unread,
Aug 29, 2022, 10:58:36 AM8/29/22
to DSpace Community
Hi Lucas,

DSpace 7 has a fully-featured REST API where you can query for any information available in DSpace.  The documentation for the REST API is available at https://github.com/DSpace/RestContract#readme

In terms of querying for items, the REST API endpoint you'd want to use is the "/api/discovery/search" endpoint documented at https://github.com/DSpace/RestContract/blob/main/search-endpoint.md

Using the "query" field, you can limit by a specific metadata field by passing in something like "query=dc.contributor.author:Donohue" (to find all documents with a "dc.contributor.author" field containing "Donohue").  The best way to find the exact query you'd like to run is by using the User Interface & finding what it sends to the REST API for a specific query (use your browser's DevTools to see everything the UI sends to the REST API).  More tips on searching in DSpace can be found at https://wiki.lyrasis.org/display/DSDOC7x/Search+-+Advanced

If you have more specific questions, let us know on this list.

TIm

Reply all
Reply to author
Forward
0 new messages