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

Paginate through Patron Search #5

Open
mpl-cwassen opened this issue Jun 27, 2022 · 1 comment
Open

Paginate through Patron Search #5

mpl-cwassen opened this issue Jun 27, 2022 · 1 comment

Comments

@mpl-cwassen
Copy link

I am using the Patron->Search function, and I have not figured out a way to paginate through the results. The API has an argument you can pass through called "patronsperpage" or "page", but passing any of these through as array items just gives an error that "Qualifier XXX not supported."

What is the correct way to iterate through all the results?

@attheshow
Copy link
Member

It doesn't look like we have a way to get more than the default number of 10 patrons currently unfortunately. It looks like we'd need to make some changes to the searchQuery function in order to allow the patronsperpage to be passed through correctly.

I took a look at our implementations at Richland and it doesn't look like we're ever directly calling patron->search at any point. Some of the methods we're actively using are searchBasic, searchAnd, searchByBarcode, searchDuplicate, and searchEmail.

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

No branches or pull requests

2 participants