We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It has been reported by our client that the ordering of records is inconsistent within the OAI response. Whilst the first page appears to return items in a random order, subsequent pages of a paginated list are sorted. My knowledge of this module and usage is currently next to nothing but I wonder whether this is caused by this code https://github.com/silverstripe-terraformers/open-archive-initiative-repository/blob/main/src/Controllers/OaiController.php#L423-L431
Presumably the first page wouldn't have any applied filters, so an unsorted list is returned, otherwise sorting is applied.
The text was updated successfully, but these errors were encountered:
Thanks, @adunn49 - good spotting.
Yup, ->sort('LastEdited ASC') needs to be added to line 424 where we return the PaginatedList.
->sort('LastEdited ASC')
424
PaginatedList
Sorry, something went wrong.
No branches or pull requests
It has been reported by our client that the ordering of records is inconsistent within the OAI response. Whilst the first page appears to return items in a random order, subsequent pages of a paginated list are sorted. My knowledge of this module and usage is currently next to nothing but I wonder whether this is caused by this code https://github.com/silverstripe-terraformers/open-archive-initiative-repository/blob/main/src/Controllers/OaiController.php#L423-L431
Presumably the first page wouldn't have any applied filters, so an unsorted list is returned, otherwise sorting is applied.
The text was updated successfully, but these errors were encountered: