Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
b3710212
Commit
b3710212
authored
Feb 09, 2021
by
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
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
b3710212
...
...
@@ -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
)
...
...
frontend-js/src/main/js/map/overlay/AbstractDbOverlay.js
View file @
b3710212
...
...
@@ -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
;
...
...
frontend-js/src/main/js/minerva.js
View file @
b3710212
...
...
@@ -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
);
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment