X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fclient.c;h=e7bb2a0b9275d561e9398e4d58f4963c25f16aaf;hb=d99076f5fdc60ee076aba83c897e2630be158060;hp=fad815c5b960dda83fc6f20549e87607c8a22a9d;hpb=ab3a2f3941c1ee8d0c1332901d96cb1e751edbfd;p=pazpar2-moved-to-github.git diff --git a/src/client.c b/src/client.c index fad815c..e7bb2a0 100644 --- a/src/client.c +++ b/src/client.c @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2010 Index Data + Copyright (C) 2006-2011 Index Data Pazpar2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -592,6 +592,7 @@ static int client_set_facets_request(struct client *cl, ZOOM_connection link) struct session_database *sdb = client_get_database(cl); const char *opt_facet_term_sort = session_setting_oneval(sdb, PZ_TERMLIST_TERM_SORT); const char *opt_facet_term_count = session_setting_oneval(sdb, PZ_TERMLIST_TERM_COUNT); + const char *opt_facet_record_filter = session_setting_oneval(sdb, PZ_RECORDFILTER); /* Disable when no count is set */ /* TODO Verify: Do we need to reset the ZOOM facets if a ZOOM Connection is being reused??? */ if (opt_facet_term_count && *opt_facet_term_count) @@ -1064,6 +1065,11 @@ void client_set_maxrecs(struct client *cl, int v) cl->maxrecs = v; } +int client_get_maxrecs(struct client *cl) +{ + return cl->maxrecs; +} + void client_set_startrecs(struct client *cl, int v) { cl->startrecs = v;