From ad637632b703b9266397f380b5466e9ba2840dbb Mon Sep 17 00:00:00 2001 From: Paul Pound Date: Tue, 17 Oct 2017 14:09:38 -0300 Subject: [PATCH] added FT1 limiter to filters array --- targets/eds/roblib_search_eds.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/targets/eds/roblib_search_eds.module b/targets/eds/roblib_search_eds.module index e3038d4..8ded903 100644 --- a/targets/eds/roblib_search_eds.module +++ b/targets/eds/roblib_search_eds.module @@ -261,7 +261,9 @@ function roblib_search_eds_get_results($query = NULL, $type = 'Articles') { if ($type != NULL) { $limiters = urldecode(roblib_search_eds_get_query_limiters($type)); } - $filters = array(); + // hardcoding "available in library collection" limiter as we can't pass it the + // same way we passed other limiters + $filters = ($type === 'Books') ? array("addlimiter(FT1:y)") : array(); $config = roblib_search_eds_build_config_arr($type); $number_per_page = variable_get('roblib_search_eds_num_results', '5');