projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ffca367
)
facet display: avoid printing 0-string
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 14 Oct 2011 12:34:24 +0000
(14:34 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 14 Oct 2011 12:34:24 +0000
(14:34 +0200)
client/client.c
patch
|
blob
|
history
diff --git
a/client/client.c
b/client/client.c
index
7825059
..
663b056
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-1699,14
+1699,14
@@
static void display_facet(Z_FacetField *facet)
struct yaz_facet_attr attr_values;
attr_values.errcode = 0;
attr_values.limit = -1;
struct yaz_facet_attr attr_values;
attr_values.errcode = 0;
attr_values.limit = -1;
- attr_values.useattr = 0;
+ attr_values.useattr = "NONE";
attr_values.relation = "default";
yaz_facet_attr_get_z_attributes(al, &attr_values);
if (!attr_values.errcode)
{
int term_index;
attr_values.relation = "default";
yaz_facet_attr_get_z_attributes(al, &attr_values);
if (!attr_values.errcode)
{
int term_index;
- printf(" %s (%d): \n", attr_values.useattr, /* attr_values.relation, attr_values.limit, */ facet->num_terms);
+ printf(" %s (%d): \n", attr_values.useattr, facet->num_terms);
for (term_index = 0 ; term_index < facet->num_terms; term_index++)
{
Z_FacetTerm *facetTerm = facet->terms[term_index];
for (term_index = 0 ; term_index < facet->num_terms; term_index++)
{
Z_FacetTerm *facetTerm = facet->terms[term_index];