isearch/commit
Put alternative implementation for finding __null in comments
author | Jan Wielemaker |
---|---|
Tue Dec 14 15:07:14 2010 +0100 | |
committer | Jan Wielemaker |
Tue Dec 14 15:07:14 2010 +0100 | |
commit | 0c1cacf8b523d4bcf022eff50b8cc27d9654af01 |
tree | 2fc5ed5de4a16cae0b84ebb522f94741ac13c67d |
parent | 0bf5bc3bfae979c7f9aea0229b8cac82acff053c |
Diff style: patch stat
diff --git a/lib/search/facet.pl b/lib/search/facet.pl index 9719de6..5be3aff 100644 --- a/lib/search/facet.pl +++ b/lib/search/facet.pl @@ -87,6 +87,12 @@ inactive_facets(Results, Filter, Facets) :- group_pairs_by_key(ByP, Grouped), maplist(make_facet(Results), Grouped, Facets). +% Alternative for the findall below: +% pairs_values(V_RL0, RLL), +% append(RLL, RL), +% sort(RL, Unique), +% ord_subtract(Results, Unique, NoP), + make_facet(Results, P-V_R, facet(P, V_RL, [])) :- group_pairs_by_key(V_R, V_RL0), ( findall(R, (member(R,Results),\+rdf_has(R,P,_)), NoP),