[open-ils-commits] r16906 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Search (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Jul 11 20:02:50 EDT 2010
Author: miker
Date: 2010-07-11 20:02:49 -0400 (Sun, 11 Jul 2010)
New Revision: 16906
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
Log:
facet query correction
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm 2010-07-11 23:41:36 UTC (rev 16905)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm 2010-07-12 00:02:49 UTC (rev 16906)
@@ -1334,21 +1334,18 @@
# The query we're constructing
#
- # select cmf.id,
+ # select mfae.field as id,
# mfae.value,
# count(distinct mmrsm.appropriate-id-field )
# from metabib.facet_entry mfae
- # join config.metabib_field cmf on (mfae.field = cmf.id)
# join metabib.metarecord_sourc_map mmrsm on (mfae.source = mmrsm.source)
- # where cmf.facet_field
- # and mmrsm.appropriate-id-field in IDLIST
+ # where mmrsm.appropriate-id-field in IDLIST
# group by 1,2;
my $count_field = $metabib ? 'metarecord' : 'source';
my $facets = $U->cstorereq( "open-ils.cstore.json_query.atomic",
{ select => {
- cmf => [ 'id' ],
- mfae => [ 'value' ],
+ mfae => [ { column => 'field', alias => 'id'}, 'value' ],
mmrsm => [{
transform => 'count',
distinct => 1,
More information about the open-ils-commits
mailing list