Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Merge pull request #24 from openeuropa/OPENEUROPA-1930
Browse files Browse the repository at this point in the history
OPENEUROPA-1930: Update text filter parameter.
  • Loading branch information
upchuk authored May 23, 2019
2 parents 5a909b8 + 7ecc200 commit c7c70e9
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ By default, there are 3 types of requests that are mocked:

* A default request with no options
* A request for a given resource (the options contain the `ref` key)
* A request that searches for a given term (the options contain the `kwand` key)
* A request that searches for a given term (the options contain the `kwgg` key)

Additionally, any request to a resource thumbnail will return a local thumbnail image.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"ref": "I-12345678987654321",
"index": "1",
"hasmedia": "1",
"kwand": "",
"kwgg": "",
"fl": "type,ref,doc_ref,titles_json,duration,shootstartdate,media_json,mediaorder_json,summary_json",
"proxy": "true",
"serverName": "wlpc0100",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"index": "1",
"hasmedia": "1",
"fl": "type,ref,doc_ref,titles_json,duration,shootstartdate,media_json,mediaorder_json,summary_json",
"kwand": "europe",
"kwgg": "europe",
"proxy": "true",
"serverName": "wlpc0099",
"type": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"ref": "I-12345678987654321",
"index": "1",
"hasmedia": "1",
"kwand": "",
"kwgg": "",
"fl": "type,ref,doc_ref,titles_json,duration,shootstartdate,media_json,mediaorder_json,summary_json",
"proxy": "true",
"serverName": "wlpc0100",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"pagesize": "15",
"index": "1",
"fl": "type,ref,doc_ref,titles_json,duration,shootstartdate,media_json,mediaorder_json,summary_json",
"kwand": "europe",
"kwgg": "europe",
"proxy": "true",
"serverName": "wlpc0099",
"type": "PHOTO",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"ref": "I-12345678987654321",
"index": "1",
"hasmedia": "1",
"kwand": "",
"kwgg": "",
"fl": "type,ref,doc_ref,titles_json,duration,shootstartdate,media_json,mediaorder_json,summary_json",
"proxy": "true",
"serverName": "wlpc0100",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"index": "1",
"hasmedia": "1",
"fl": "type,ref,doc_ref,titles_json,duration,shootstartdate,media_json,mediaorder_json,summary_json",
"kwand": "europe",
"kwgg": "europe",
"proxy": "true",
"serverName": "wlpc0099",
"type": "VIDEO",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ protected function createServicePromise(RequestInterface $request): PromiseInter
}

// If we are searching, we need to look at some search responses.
if (isset($params['kwand'])) {
if (isset($params['kwgg'])) {
$searches = $event->getSearches();
$json = isset($searches[$resource_type . '-' . $params['kwand']]) ? $searches[$resource_type . '-' . $params['kwand']] : $searches[$resource_type . '-empty'];
$json = isset($searches[$resource_type . '-' . $params['kwgg']]) ? $searches[$resource_type . '-' . $params['kwgg']] : $searches[$resource_type . '-empty'];
}
else {
// Otherwise, we default to the regular response.
Expand Down

0 comments on commit c7c70e9

Please sign in to comment.