project-lux / lux-marklogic

Code, issues, and resources related to LUX MarkLogic
Other
3 stars 2 forks source link

Incorrect Search URL in Search Response #60

Closed clarkepeterf closed 3 months ago

clarkepeterf commented 4 months ago

Problem Description: When using the api to fetch all objects that are part of an exhibition, the link to next fails and instead returns this error: { "statusCode": 400, "errorMessage": "SyntaxError: missing ) after argument list" }

Expected Behavior/Solution: When a user goes to this URL: https://lux.collections.yale.edu/api/search/item?q=%7B%22memberOf%22%3A%7B%22id%22%3A%22https%3A%2F%2Flux.collections.yale.edu%2Fdata%2Fset%2F8ea6fda7-d971-4bc3-a6ba-a73903f25450%22%7D%7D And then follows next to this URL: https://lux.collections.yale.edu/api/search/item?q=%22%7B%5C%22memberOf%5C%22%3A%7B%5C%22id%5C%22%3A%5C%22https%3A%2F%2Flux.collections.yale.edu%2Fdata%2Fset%2F8ea6fda7-d971-4bc3-a6ba-a73903f25450%5C%22%7D%7D%22&page=2&pageLength=20 a new JSON doc should be displayed

Requirements: All URLs returned by the API should be valid

Needed for promotion: If an item on the list is not needed, it should be crossed off but not removed.

UAT/LUX Examples:

Go to this URL: https://lux-front-dev.collections.yale.edu/api/search/item?q=%7B%22memberOf%22%3A%7B%22id%22%3A%22https%3A%2F%2Flux.collections.yale.edu%2Fdata%2Fset%2F8ea6fda7-d971-4bc3-a6ba-a73903f25450%22%7D%7D Jump to the end of the page and click the URL provided in the "next" property:

If there is an error, it is still broken, if not, the fix worked. Dependencies/Blocks:

Related Github Issues:

Related links:

Wireframe/Mockup: Place wireframe/mockup for the proposed solution at end of ticket.

ar2674 commented 3 months ago

Approved per UAT

prowns commented 3 months ago

deployed