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>
Thu, 15 Mar 2012 04:34:32 +0000 (00:34 -0400)
commit827f109b6f22147cc1fddb8c7dac8bacca54f16a
tree2e1601777e89e335d132c16fba4cb4018aa65bdf
parent1e04906480432c375c0275ac9d569d9c8cb26c73
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