const char *id = session_lookup_id_facet(cl->session,
cl, name,
values[i]);
- if (id)
+ if (id) {
values[i] = nmem_strdup(nmem_tmp, id);
+ yaz_log(YLOG_DEBUG,
+ "apply_limit: s='%s' found id '%s'",s->name,id );
+
+ }
}
nmem_strsplit_escape2(nmem_tmp, ",", s->value, &cvalues,
&cnum, 1, '\\', 1);
if (i < num - 1)
wrbuf_printf(w_pqf, "@or ");
ccl_pquery(w_pqf, cn);
+ yaz_log(YLOG_DEBUG,"apply_limit (ccl): %s",
+ wrbuf_cstr(w_pqf));
ccl_rpn_delete(cn);
}
}
const char *term)
{
struct facet_id *t = s->facet_id_list;
- for (; t; t = t->next)
+ for (; t; t = t->next)
+ {
if (!strcmp(client_get_id(cl), t->client_id) &&
!strcmp(t->type, type) && !strcmp(t->term, term))
{
return t->id;
}
+ }
return 0;
}
}
type += 6;
}
-
session_normalize_facet(s, type, value, display_wrbuf, facet_wrbuf);
+ yaz_log(YLOG_DEBUG,"add_facet t='%s' v='%s' id='%s' d='%s' f='%s'",
+ type, value, id, wrbuf_cstr(display_wrbuf), wrbuf_cstr(facet_wrbuf) );
if (wrbuf_len(facet_wrbuf))
{
struct named_termlist **tp = &s->termlists;