From 84455b5a26bc4e287cb8b66c5ff69a13b57c888f Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 22 Dec 2015 15:14:12 -0500 Subject: [PATCH] LP#1527342 search result history tagging Use circ history data to indicate circulated items in search results. Signed-off-by: Bill Erickson --- Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm index 777ef7e50f..d1c9a027f9 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm @@ -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 }; -- 2.11.0