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:
299ab07
)
Use CURRENT sort parameters to check with previous
author
Dennis Schafroth
<dennis@indexdata.com>
Wed, 10 Oct 2012 10:44:21 +0000
(12:44 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Wed, 10 Oct 2012 10:44:21 +0000
(12:44 +0200)
src/client.c
patch
|
blob
|
history
diff --git
a/src/client.c
b/src/client.c
index
618dfcf
..
189bb61
100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-1371,12
+1371,10
@@
int client_parse_sort(struct client *cl, struct reclist_sortparms *sp)
{
struct session *se = client_get_session(cl);
if (sp)
- { /* first entry is current sorting ! */
+ {
const char *sort_strategy_and_spec =
- get_strategy_plus_sort(cl, se->sorted_results->name);
-
- int increasing = se->sorted_results->increasing;
- // int type = se->sorted_results->type;
+ get_strategy_plus_sort(cl, sp->name);
+ int increasing = sp->increasing;
if (sort_strategy_and_spec && strlen(sort_strategy_and_spec) < 40)
{
char strategy[50], *p;