You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The browseBy list present in the community and collection pages are not dynamically discovered using the api/discover/browses endpoint but are read from a static configuration present within the environment. In detail, the available browseBy are read from the browseBy.types property of the environment.
To Reproduce
Steps to reproduce the behavior:
Go under the Communities & Collections section
Select a community or a collection
Verify that the browseBy shown are only those present in the environment.browseBy.types property and that no calls to a REST endpoint are made to obtain them
Expected behavior
The browseBy list present in the community and collection pages should be dynamically obtained using the api/discover/browses endpoint. This implies that the browseBy.types property of the environment must be removed and where used it must be replaced with the configurations provided by the REST interface.
Since in the browseBy.types list is indicated the type of browse (date, title, metadata), it is necessary to modify the existing endpoint api/discover/browses to add this information. As a possible solution to extend the current REST endpoint I propose to:
add the sorting type to the objects belonging to the sortOptions property
add a defaultSort property that matches the name of the default sort for that browse; in this way, using this property it will be possible to obtain the type of browse by searching for the type of sort of the one configured as default.
The text was updated successfully, but these errors were encountered:
Describe the bug
The browseBy list present in the community and collection pages are not dynamically discovered using the api/discover/browses endpoint but are read from a static configuration present within the environment. In detail, the available browseBy are read from the browseBy.types property of the environment.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The browseBy list present in the community and collection pages should be dynamically obtained using the api/discover/browses endpoint. This implies that the browseBy.types property of the environment must be removed and where used it must be replaced with the configurations provided by the REST interface.
Since in the browseBy.types list is indicated the type of browse (date, title, metadata), it is necessary to modify the existing endpoint api/discover/browses to add this information. As a possible solution to extend the current REST endpoint I propose to:
The text was updated successfully, but these errors were encountered: