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.0.13~4 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=be4ed154479e5a8f1382ca1c67f08adababa699d;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 426b357..b9945ba 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -423,6 +423,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);