TPAC: Teach record details how to sort by preferred library
authorDan Scott <dan@coffeecode.net>
Sun, 11 Mar 2012 03:05:36 +0000 (22:05 -0500)
committerDan Scott <dan@coffeecode.net>
Sat, 17 Mar 2012 18:24:39 +0000 (14:24 -0400)
commitaba975d02db6a9f5fd5c1ec666c63b9bd8fa7f32
tree41075413cc439028f5c0b87ece5fc97ed857dfa6
parentebffbab52a7d239e0b393759979b65e9d9b6cef9
TPAC: Teach record details how to sort by preferred library

Using the same _get_pref_lib() function to grab our preferred library,
replace the order_by clause in mk_copy_query() with the
evergreen.rank_ou() routine. Copies in record details display now sort
in the same library order as in search results.

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