From: Adam Dickmeiss Date: Mon, 24 Nov 2008 16:58:07 +0000 (+0100) Subject: Command bytarget returns name of target (if defined). X-Git-Tag: v1.1.0~73 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=2863cc79b370954c364f37e4f155697c46292b29;p=pazpar2-moved-to-github.git Command bytarget returns name of target (if defined). --- diff --git a/src/http_command.c b/src/http_command.c index 29200d4..ba4b670 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -422,6 +422,13 @@ static void cmd_bytarget(struct http_channel *c) wrbuf_xmlputs(c->wrbuf, ht[i].id); wrbuf_puts(c->wrbuf, "\n"); + if (ht[i].name && ht[i].name[0]) + { + wrbuf_puts(c->wrbuf, ""); + wrbuf_xmlputs(c->wrbuf, ht[i].name); + wrbuf_puts(c->wrbuf, "\n"); + } + wrbuf_printf(c->wrbuf, "%d\n", ht[i].hits); wrbuf_printf(c->wrbuf, "%d\n", ht[i].diagnostic); wrbuf_printf(c->wrbuf, "%d\n", ht[i].records);