From: Bill Erickson Date: Tue, 22 Dec 2015 20:14:12 +0000 (-0500) Subject: LP#1527342 search result history tagging X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fde50be0296bfebe254aab75168524661f983514;p=working%2FEvergreen.git LP#1527342 search result history tagging Use circ history data to indicate circulated items in search results. Signed-off-by: Bill Erickson --- 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 };