TPAC: Add preferred library to search result ordering
authorDan Scott <dan@coffeecode.net>
Sun, 11 Mar 2012 02:14:15 +0000 (21:14 -0500)
committerDan Scott <dan@coffeecode.net>
Thu, 15 Mar 2012 04:34:32 +0000 (00:34 -0400)
commit1e04906480432c375c0275ac9d569d9c8cb26c73
tree836b24edddbd5a753dd5aa53e2533bb5f6e0e4ec
parent89c1cae42fab4bffe3aeda5372545e833788a8af
TPAC: Add preferred library to search result ordering

Now that unapi.bre/unapi.holdings_xml has learned how to order copies by
ranked library, teach TPAC how to tell unapi what the preferred library
is. We do this by parsing the preferred search library separately from
the scoped search library, as follows (1st match wins):

1) A new GET param, "plib", specifying the number of the OU
2) User's library preference setting;
3) User's home OU;
4) Physical location in which the search is being issued

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