projects
/
yaz-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:
06ff64e
)
Add setting of suggestions options on resultset
author
Dennis Schafroth
<dennis@indexdata.com>
Fri, 28 Oct 2011 08:32:42 +0000
(10:32 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Fri, 28 Oct 2011 08:32:42 +0000
(10:32 +0200)
src/zoom-sru.c
patch
|
blob
|
history
diff --git
a/src/zoom-sru.c
b/src/zoom-sru.c
index
08a18a2
..
da588f0
100644
(file)
--- a/
src/zoom-sru.c
+++ b/
src/zoom-sru.c
@@
-306,6
+306,9
@@
static zoom_ret handle_srw_response(ZOOM_connection c,
if (res->numberOfRecords) {
resultset->size = *res->numberOfRecords;
}
+ if (res->suggestions) {
+ ZOOM_resultset_option_set(resultset, "suggestions", res->suggestions);
+ }
for (i = 0; i<res->num_records; i++)
{
int pos;