]> git.evergreen-ils.org Git - Evergreen.git/commit - Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm
Teach supercat browse / startwith to return a distinct set of records
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 6 Jan 2011 18:47:21 +0000 (18:47 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 6 Jan 2011 18:47:21 +0000 (18:47 +0000)
commit777e0f9de88cc2399f0457a96fde0864c3f28493
treeef9c476715b5515f75fc5b305302d718a34f1c16
parent5176e249736e9b660cb8f4d28fec9d42e9e63332
Teach supercat browse / startwith to return a distinct set of records

The addition of the .refs variants exposed feeds that had multiple
copies of the same bib in the same results (e.g. if 1xx was "Scott, Daniel"
and 4xx in the same record was "Scott, Dan" it would be returned twice).
Filtering it in this call prevents the callers from requesting 10 records
and only getting 7 back (or whatever). If there's an actual use case for
getting the same record twice, we can revisit this.

Note that the authority context menu currently still shows duplicate
records, because the record is displayed in full for each 4xx / 5xx
entry, that will be fixed in a subsequent patch.

Also, prevent supercat browse from issuing two separate requests for
page = 0; the second would always stomp on the results of the first,
so I just made the first request go away in that case.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@19131 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm