Default facet start is 1
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 12 Sep 2013 13:26:56 +0000 (15:26 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 12 Sep 2013 13:26:56 +0000 (15:26 +0200)
src/sru_facet.c

index 87eb9ed..67e4733 100644 (file)
@@ -86,7 +86,8 @@ void yaz_sru_facet_request(ODR o, Z_FacetList **facetList, const char **limit,
                     }
                     if (av.start || av.useattr)
                     {
-                        wrbuf_printf(w_start, "%d", av.start);
+                        wrbuf_printf(w_start, "%d",
+                                     av.start == 0 ? 1 : av.start);
                         if (av.useattr)
                             wrbuf_printf(w_start, ":%s", av.useattr);
                         wrbuf_puts(w_start, ",");