Get Collection Items use case extension #229
Labels
FY25 Sprint 12
FY25 Sprint 12 (2024-12-04 - 2024-12-18)
GREI Re-arch
GREI re-architecture-related
Original size: 33
Size: 33
SPA.Q4.1
Collection Page: All Filtering Options
As part of SPA Q4: Collections: all filtering options, we need to update getCollectionItems use case to:
Add Facets results
For the SPA Q4 feature "Collection Page: all filtering options", we need to get the facet results for the Collection Page.
To get this data, we can use the use
show_facets=true
param in the Dataverse Search API.The getCollectionItems use case should be updated to return this data, possibly by adding a boolean field
showFacets
to the CollectionSearchCriteria object.Filter results by facets
This is currently supported in the Dataverse Seach API by using the param fq, for example
fq=publicationDate:2024
. See more details in the Dataverse Search API documentation.The CollectionSearchCriteria passed to getCollectionItems use case can be updated to included the facet queries.
Add sort order
For the SPA Q4 feature "Collection Page: all filtering options", we need to implement the Sort button on the collections page:
To support this, we need to update the CollectionSearchCriteria used in getCollectionItems use case, to include a sorting information. There are two allowed sort types: 'name' and 'date'. The sort order can also be specified as ascending or descending. See Dataverse Search API or more details.
The text was updated successfully, but these errors were encountered: