WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org
View all threadsHi all,
The default pageSize on search returns is 10. Most of our deployments here would prefer to see 50 records per page when they do a search. Is there a way to configure the default pageSize value?
Thanks,
Chris
Actually the 'default' page size is 40. That is the number of results
that will be returned if the pageSize parameter is not included in the
payload from the UI. That number is defined in the Service layer. The
App layer just passes up whatever the UI asks for and the service layer
is willing to give as many results as you want..
So if you want to change the number of results shown in the search
results you just need to change the pageSize parameter in the query
string from the UI.
e.g.
http://nightly.collectionspace.org:8180/collectionspace/tenant/core/person/search?query=&pageSize=10
The value in the UI seems to be initialized in CSpaceInfusion.js on line
26300 (ish) fluid.defaults("fluid.pager"
So I suspect you can overwrite that somewhere logical in the js, rather
than alter that file. Yura could probably tell you the most logical
place to do that.
Chris
On 26/02/2012 19:46, Chris Hoffman wrote:
Hi all,
The default pageSize on search returns is 10. Most of our deployments here would prefer to see 50 records per page when they do a search. Is there a way to configure the default pageSize value?
Thanks,
Chris
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org