TPAC: Add preferred library to search result ordering user/dbs/improve_unapi_limiting
authorDan Scott <dan@coffeecode.net>
Sun, 11 Mar 2012 02:14:15 +0000 (21:14 -0500)
committerDan Scott <dan@coffeecode.net>
Sun, 11 Mar 2012 02:14:15 +0000 (21:14 -0500)
commit9ca45df8899acf80684d594590f1dbbdc40aa029
treeaa06c5e90c272a20d77bcabfd0e78435305c8825
parentc9024ed5ffc51ce3d3ca4b526d3959e3626e7fd2
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