LP#1527342 search result history tagging
authorBill Erickson <berickxx@gmail.com>
Tue, 22 Dec 2015 20:14:12 +0000 (15:14 -0500)
committerBill Erickson <berickxx@gmail.com>
Tue, 23 Feb 2016 15:31:53 +0000 (10:31 -0500)
Use circ history data to indicate circulated items in search results.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm

index 777ef7e..d1c9a02 100644 (file)
@@ -1465,8 +1465,8 @@ sub tag_circulated_records {
 
     my $query = {
         select   => { acn => [{ column => 'record', alias => 'tagme' }] }, 
-        from     => { acp => 'acn' }, 
-        where    => { id => { in => { from => ['action.usr_visible_circ_copies', $e->requestor->id] } } },
+        from     => { auch => { acp => { join => 'acn' }} }, 
+        where    => { usr => $e->requestor->id },
         distinct => 1
     };