PAZPAR2_RECORD_FAIL,
PAZPAR2_NOT_IMPLEMENTED,
PAZPAR2_NO_SERVICE,
+ PAZPAR2_ALREADY_BLOCKED,
PAZPAR2_LAST_ERROR
};
#define SESSION_WATCH_SHOW 0
#define SESSION_WATCH_RECORD 1
#define SESSION_WATCH_SHOW_PREF 2
-#define SESSION_WATCH_MAX 2
+#define SESSION_WATCH_TERMLIST 3
+#define SESSION_WATCH_BYTARGET 4
+#define SESSION_WATCH_MAX 3
#define SESSION_MAX_TERMLISTS 10
const char *state;
int connected;
char *settings_xml;
+ char *suggestions_xml;
};
struct hitsbytarget *get_hitsbytarget(struct session *s, int *count, NMEM nmem);
void session_init_databases(struct session *s);
void statistics(struct session *s, struct statistics *stat);
-void search_sort(struct session *se, const char *field, int increasing);
+void session_sort(struct session *se, const char *field, int increasing);
-enum pazpar2_error_code search(struct session *s, const char *query,
- const char *startrecs, const char *maxrecs,
- const char *filter, const char *limit,
- const char **addinfo);
+enum pazpar2_error_code session_search(struct session *s, const char *query,
+ const char *startrecs,
+ const char *maxrecs,
+ const char *filter, const char *limit,
+ const char **addinfo,
+ const char *sort_field, int increasing);
struct record_cluster **show_range_start(struct session *s,
struct reclist_sortparms *sp,
int start,