From: Adam Dickmeiss Date: Thu, 12 Sep 2013 13:26:56 +0000 (+0200) Subject: Default facet start is 1 X-Git-Tag: v5.0.0~38 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=a7585fd1220c684189091e7fba2c5d6cf436031e;p=yaz-moved-to-github.git Default facet start is 1 --- diff --git a/src/sru_facet.c b/src/sru_facet.c index 87eb9ed..67e4733 100644 --- a/src/sru_facet.c +++ b/src/sru_facet.c @@ -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, ",");