projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8de1cda
)
Command bytarget returns name of target (if defined).
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 24 Nov 2008 16:58:07 +0000
(17:58 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 24 Nov 2008 16:59:26 +0000
(17:59 +0100)
src/http_command.c
patch
|
blob
|
history
diff --git
a/src/http_command.c
b/src/http_command.c
index
426b357
..
b9945ba
100644
(file)
--- 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, "</id>\n");
+ if (ht[i].name && ht[i].name[0])
+ {
+ wrbuf_puts(c->wrbuf, "<name>");
+ wrbuf_xmlputs(c->wrbuf, ht[i].name);
+ wrbuf_puts(c->wrbuf, "</name>\n");
+ }
+
wrbuf_printf(c->wrbuf, "<hits>%d</hits>\n", ht[i].hits);
wrbuf_printf(c->wrbuf, "<diagnostic>%d</diagnostic>\n", ht[i].diagnostic);
wrbuf_printf(c->wrbuf, "<records>%d</records>\n", ht[i].records);