From: Sebastian Hammer Date: Wed, 7 Jun 2006 18:25:15 +0000 (+0000) Subject: Exposing SRW_SORTKEYS parameter to handler X-Git-Tag: release.1.0.3~14 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=43dc6cc6daf84b2d8689b3e1ab85a1684a6ea913;p=simpleserver-moved-to-github.git Exposing SRW_SORTKEYS parameter to handler --- diff --git a/SimpleServer.xs b/SimpleServer.xs index aab88a9..012a301 100644 --- a/SimpleServer.xs +++ b/SimpleServer.xs @@ -1,5 +1,5 @@ /* - * $Id: SimpleServer.xs,v 1.47 2006-06-05 18:01:25 quinn Exp $ + * $Id: SimpleServer.xs,v 1.48 2006-06-07 18:25:15 quinn Exp $ * ---------------------------------------------------------------------- * * Copyright (c) 2000-2004, Index Data. @@ -698,6 +698,8 @@ int bend_search(void *handle, bend_search_rr *rr) #endif href = newHV(); hv_store(href, "SETNAME", 7, newSVpv(rr->setname, 0), 0); + if (rr->srw_sortKeys && *rr->srw_sortKeys) + hv_store(href, "SRW_SORTKEYS", 12, newSVpv(rr->srw_sortKeys, 0), 0); hv_store(href, "REPL_SET", 8, newSViv(rr->replace_set), 0); hv_store(href, "ERR_CODE", 8, newSViv(0), 0); hv_store(href, "ERR_STR", 7, newSVpv("", 0), 0);