TPAC: Limit both call numbers and copies in holdings summary
authorDan Scott <dan@coffeecode.net>
Sat, 10 Mar 2012 19:45:54 +0000 (14:45 -0500)
committerDan Scott <dan@coffeecode.net>
Sun, 11 Mar 2012 01:06:34 +0000 (20:06 -0500)
commit64a5fda53a779ff4e8a0c4f724c4a28d6138a71c
tree35c3bbdbc87ac58739008cf57e54b709469b6943
parent6527396f3387a59a27fbb5fb709a2306e7f66033
TPAC: Limit both call numbers and copies in holdings summary

In search results, we want to limit both the number of copies we get
back (defaulting to a maximum of 5 copies per call number) and the
number of call numbers we get back (defaulting to a maximum of 5 call
numbers), so that we don't get 50 call numbers each with 5 copies back
and wind up grinding Evergreen's performance down to a halt.

Rough thought is that the caller can filter through the (maximum) 25
hits that are returned to present their preferred results. For example,
a site could opt to show 5 different call numbers with just one copy per
call number, or 5 different copies for a single call number, or all 25.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm