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=2b3b1dc5df5949dded462204b65eef84d24c5094;p=evergreen%2Fpines.git LP#1527342 search result history tagging Use circ history data to indicate circulated items in search results. Signed-off-by: Bill Erickson Signed-off-by: Kathy Lussier --- 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 1e6a485121..708dc908b1 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 };