Commit b3710212 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

information about perfect search is stored in the url

parent 559134cb
Pipeline #37392 passed with stage
in 28 minutes and 39 seconds
......@@ -11,6 +11,8 @@ minerva (16.0.0~alpha.1) stable; urgency=medium
* Improvement: data overlay allows for multiple hits per element (#1007)
* Small improvement: "dbSNP", "IMGT HLA", "PMC", "Complex Portal" identifiers
are supported (#1452, #1450, #1420)
* Small improvement: information about perfect search are stored in the url
(#1376)
* Bug fix: removing plugin that does not exist anymore does not raise an error
(#1289)
* Bug fix: broken overlays crashed minerva upgrade (#1453)
......
......@@ -171,7 +171,8 @@ AbstractDbOverlay.prototype.searchByQuery = function (originalQuery, perfect, fi
fitBounds: fitBounds,
identifiedElements: res,
type: AbstractDbOverlay.QueryType.SEARCH_BY_QUERY,
query: originalQuery
query: originalQuery,
perfect: perfect
});
}).then(function () {
return res;
......
......@@ -93,7 +93,8 @@ function processUrlGetParams(params) {
var query;
if (GuiConnector.getParams["search"] !== undefined) {
query = SearchDbOverlay.prototype.encodeQuery(AbstractDbOverlay.QueryType.SEARCH_BY_QUERY,
GuiConnector.getParams["search"]);
GuiConnector.getParams["search"],
GuiConnector.getParams["search.perfect"] === "true");
sessionData.setSearchQuery(query);
}
if (GuiConnector.getParams["drugSearch"] !== undefined) {
......@@ -405,6 +406,7 @@ function addUrlChangeListenersToCustomMap(customMap) {
e.arg.modelId + "," + e.arg.zoom);
} else if (e.arg.type === AbstractDbOverlay.QueryType.SEARCH_BY_QUERY) {
GuiConnector.setUrlParam("search", e.arg.query);
GuiConnector.setUrlParam("search.perfect", e.arg.perfect);
}
});
......
Markdown is supported
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