Skip to content
Snippets Groups Projects
Commit 23161f5a authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Remove unused/obsolete code and comments.

parent a6b5c298
No related merge requests found
...@@ -195,56 +195,6 @@ class Params extends \VuFind\Search\Base\Params ...@@ -195,56 +195,6 @@ class Params extends \VuFind\Search\Base\Params
} }
} }
/**
* Set up limiter based on VuFind settings.
*
* @param ParamBag $params Parameter collection to update
*
* @return void
*/
public function createBackendLimiterParameters(ParamBag $params)
{
//group limiters with same id together
$edsLimiters = [];
foreach ($this->limiters as $limiter) {
if (isset($limiter) && !empty($limiter)) {
// split the id/value
list($key, $value) = explode(':', $limiter, 2);
$value = SearchRequestModel::escapeSpecialCharacters($value);
$edsLimiters[$key] = (!isset($edsLimiters[$key]))
? $value : $edsLimiters[$key] . ',' . $value;
}
}
if (!empty($edsLimiters)) {
foreach ($edsLimiters as $key => $value) {
$params->add('limiters', $key . ':' . $value);
}
}
}
/**
* Set up expanders based on VuFind settings.
*
* @param ParamBag $params Parameter collection to update
*
* @return void
*/
public function createBackendExpanderParameters(ParamBag $params)
{
// Which filters should be applied to our query?
if (!empty($this->expanders)) {
// Loop through all filters and add appropriate values to request:
$value = '';
foreach ($this->expanders as $expander) {
$value = (!empty($value))
? $value . ',' . $expander : $expander;
}
if (!empty($value)) {
$params->add('expander', $value);
}
}
}
/** /**
* Return the value for which search view we use * Return the value for which search view we use
* *
......
...@@ -91,7 +91,6 @@ abstract class Base ...@@ -91,7 +91,6 @@ abstract class Base
* <ul> * <ul>
* <li>debug - boolean to control debug mode</li> * <li>debug - boolean to control debug mode</li>
* <li>orgid - Organization making calls to the EDS API </li> * <li>orgid - Organization making calls to the EDS API </li>
* <li>profile - EBSCO profile to use for calls to the API. </li>
* </ul> * </ul>
*/ */
public function __construct($settings = []) public function __construct($settings = [])
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment