Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
henriyli committed Jun 22, 2016
2 parents 390eb91 + 54b3035 commit 1f04850
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion model/ConceptSearchParameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ private function getDefaultTypeLimit()
public function getTypeLimit()
{
$type = $this->request->getQueryParam('type') !== '' ? $this->request->getQueryParam('type') : null;
if ($type && strpos($type, '+')) {
if ($type && strpos($type, ' ')) {
$type = explode(' ', $type);
} else if ($type && strpos($type, '+')) {
$type = explode('+', $type);
} else if ($type && !is_array($type)) {
// if only one type param given place it into an array regardless
Expand Down
4 changes: 2 additions & 2 deletions swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@
{
"name": "type",
"in": "query",
"description": "limit search to concepts of the given type, e.g. \"skos:Concept\".",
"description": "limit search to concepts of the given type, e.g. \"skos:Concept\"; multiple types can be specified as a space-separated list",
"required": false,
"type": "string"
},
Expand Down Expand Up @@ -1804,4 +1804,4 @@
]
}
}
}
}

0 comments on commit 1f04850

Please sign in to comment.