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:
46c9d84
)
Get target suggestions from client
author
Dennis Schafroth
<dennis@indexdata.com>
Fri, 28 Oct 2011 13:35:34 +0000
(15:35 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Fri, 28 Oct 2011 13:35:34 +0000
(15:35 +0200)
src/session.c
patch
|
blob
|
history
diff --git
a/src/session.c
b/src/session.c
index
7623002
..
c8f1df5
100644
(file)
--- a/
src/session.c
+++ b/
src/session.c
@@
-921,6
+921,8
@@
struct session *new_session(NMEM nmem, struct conf_service *service,
return session;
}
+const char * client_get_suggestions_xml(struct client *cl, WRBUF wrbuf);
+
static struct hitsbytarget *hitsbytarget_nb(struct session *se,
int *count, NMEM nmem)
{
@@
-950,6
+952,7
@@
static struct hitsbytarget *hitsbytarget_nb(struct session *se,
session_settings_dump(se, client_get_database(cl), w);
res[*count].settings_xml = nmem_strdup(nmem, wrbuf_cstr(w));
wrbuf_rewind(w);
+ wrbuf_puts(w, "");
res[*count].suggestions_xml = nmem_strdup(nmem, client_get_suggestions_xml(cl, w));
wrbuf_destroy(w);
(*count)++;