forked from ontoportal/ontologies_api
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Add support of multilingual search (#40)
* update get_term_search_query to support multilanguages search * rename var * fix search lang suffix to use underscore not @ * add multilangual search test --------- Co-authored-by: Syphax Bouazzouni <[email protected]>
- Loading branch information
1 parent
c0c5e0e
commit dcea9e4
Showing
13 changed files
with
198 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ tmp/* | |
# Editor temp files | ||
*.swp | ||
*.swo | ||
test/solr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,10 @@ def self._set_vars | |
administeredBy: "tim", | ||
"file" => Rack::Test::UploadedFile.new(@@test_file, ""), | ||
released: DateTime.now.to_s, | ||
contact: [{name: "test_name", email: "[email protected]"}] | ||
contact: [{name: "test_name", email: "[email protected]"}], | ||
URI: 'https://test.com/test', | ||
status: 'production', | ||
description: 'ontology description' | ||
} | ||
@@status_uploaded = "UPLOADED" | ||
@@status_rdf = "RDF" | ||
|
@@ -156,13 +159,13 @@ def test_download_acl_only | |
begin | ||
allowed_user = User.new({ | ||
username: "allowed", | ||
email: "test@example.org", | ||
email: "test4@example.org", | ||
password: "12345" | ||
}) | ||
allowed_user.save | ||
blocked_user = User.new({ | ||
username: "blocked", | ||
email: "test@example.org", | ||
email: "test5@example.org", | ||
password: "12345" | ||
}) | ||
blocked_user.save | ||
|
Oops, something went wrong.