Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harvester does not have correct parameters on paginated results #97

Closed
eliotjordan opened this issue Sep 14, 2020 · 0 comments · Fixed by #98
Closed

Harvester does not have correct parameters on paginated results #97

eliotjordan opened this issue Sep 14, 2020 · 0 comments · Fixed by #98
Assignees

Comments

@eliotjordan
Copy link
Contributor

Some GeoBlacklight instances expect harvester requests to include a format=json parameter. This is added as a default param to the first request:

https://github.com/OpenGeoMetadata/GeoCombine/blob/master/lib/geo_combine/geo_blacklight_harvester.rb#L199

However, subsequent requests are taken from the next link of the previous document and the parameter has been removed:
https://earthworks.stanford.edu/?f%5Baccess%5D%5B%5D=public&f%5Bdct_provenance_s%5D%5B%5D=MassGIS&format=json&per_page=100&q=%2A&page=1

This breaks harvesting functionality on some sites.

Ensure that this parameter is appended to all requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant