]> git.evergreen-ils.org Git - Evergreen.git/commit
TPAC: Give MFHD summaries OU / depth awareness
authorDan Scott <dscott@laurentian.ca>
Mon, 19 Sep 2011 01:12:23 +0000 (21:12 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 26 Sep 2011 14:33:12 +0000 (10:33 -0400)
commit46642d7ab8c8d5c0cb3caf26dbb67bc399f318fd
tree692c378d1ad5cf1500d1eb6c8251e1027e9ae2c2
parenta36f7b4c1015541f81c6e3c3ebf8e2e21dbcdbb8
TPAC: Give MFHD summaries OU / depth awareness

Rather than returning all results and filtering on the client-side, as
we're currently doing in the JSPAC, teach the
open-ils.search.serial.record.bib.retrieve method to accept optional OU
& OU depth arguments and do the filtering in the query; cuts down on
network traffic and should be generally more efficient.

Note that in the absence of an explicit "depth" CGI param,
EGCatLoader/Record currently defaults to a depth of "0"; we could
teach it to look up & cache the depth of the "loc" param for the sake of
convenience & arguably more accuracy.

Also note that the sub/dist serial approach probably needs to be taught
similar method-side filtering, but I hope more knowledgeable brains will
work out what should happen with ssub.holding_lib / sdist.owning_lib.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Serial.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm