WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org
View all threadsThere are (at least) two places where the number of items in a list can be specified. I've found one of them and changed it; I need help finding the other.
The one I found is the pagination on the right sidebar of record displays. That is governed by the pageSize parameter in ui/js/ListView.js:
The one that I can't find is for the search results screen, which right now defaults to 10. That number is coming from deep inside the CSpace Fusion library:
...but I suspect there is something I can do in Search.js to change the default there:
https://github.com/collectionspace/ui/blob/v4.2/src/main/webapp/defaults/js/Search.js
Suggestions?
Peter Murray
Dev/Ops Lead and Project Manager
Cherry Hill Company
Hi Peter,
I think this will help: https://issues.collectionspace.org/browse/UCJEPS-155
Ray
On Thu, Nov 19, 2015 at 8:35 AM, Peter Murray pmurray@chillco.com wrote:
There are (at least) two places where the number of items in a list can be
specified. I've found one of them and changed it; I need help finding the
other.
The one I found is the pagination on the right sidebar of record
displays. That is governed by the pageSize parameter in ui/js/ListView.js:
The one that I can't find is for the search results screen, which right
now defaults to 10. That number is coming from deep inside the CSpace
Fusion library:
...but I suspect there is something I can do in Search.js to change the
default there:
https://github.com/collectionspace/ui/blob/v4.2/src/main/webapp/defaults/js/Search.js
Suggestions?
Peter Murray
Dev/Ops Lead and Project Manager
Cherry Hill Company
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
Oh, that was very helpful. It also showed me that I can look for solutions in the Jira database. Thanks, Ray.
Peter
On Nov 19, 2015, at 8:59 PM, Ray Lee rhlee@berkeley.edu wrote:
Hi Peter,
I think this will help: https://issues.collectionspace.org/browse/UCJEPS-155 https://issues.collectionspace.org/browse/UCJEPS-155
Ray
On Thu, Nov 19, 2015 at 8:35 AM, Peter Murray <pmurray@chillco.com mailto:pmurray@chillco.com> wrote:
There are (at least) two places where the number of items in a list can be specified. I've found one of them and changed it; I need help finding the other.
The one I found is the pagination on the right sidebar of record displays. That is governed by the pageSize parameter in ui/js/ListView.js:
https://github.com/cherryhill/sdmom-tenant-config/blob/d196725153f215cbb0804b98133d0411e202297a/ui/js/ListView.js#L42 https://github.com/cherryhill/sdmom-tenant-config/blob/d196725153f215cbb0804b98133d0411e202297a/ui/js/ListView.js#L42
The one that I can't find is for the search results screen, which right now defaults to 10. That number is coming from deep inside the CSpace Fusion library:
https://github.com/collectionspace/ui/blob/v4.2/src/main/webapp/defaults/lib/infusion/CSpaceInfusion.js#L20594 https://github.com/collectionspace/ui/blob/v4.2/src/main/webapp/defaults/lib/infusion/CSpaceInfusion.js#L20594
...but I suspect there is something I can do in Search.js to change the default there:
https://github.com/collectionspace/ui/blob/v4.2/src/main/webapp/defaults/js/Search.js https://github.com/collectionspace/ui/blob/v4.2/src/main/webapp/defaults/js/Search.js
Suggestions?
Peter
--
Peter Murray
Dev/Ops Lead and Project Manager
Cherry Hill Company