Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
ace4aa80
Commit
ace4aa80
authored
Sep 09, 2021
by
Piotr Gawron
Browse files
show number of hits per map
parent
523553e2
Pipeline
#46860
canceled with stage
in 1 minute and 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
ace4aa80
minerva
(
16.0.0
~
beta
.2
)
stable
;
urgency
=
medium
*
Small
improvement
:
backgrounds
are
separated
from
general
overlays
(#
1532
)
*
Small
improvement
:
layout
of
pin
popup
window
is
slitghly
improved
(#
1493
)
*
Small
improvement
:
search
results
are
grouped
by
submap
with
hits
(#
1505
)
*
Bug
fix
:
correct
background
order
for
old
projects
restored
(#
1533
)
*
Bug
fix
:
search
chemicals
by
target
returned
chemicals
not
bounded
by
disease
(#
1535
)
...
...
frontend-js/src/main/js/gui/leftPanel/GenericSearchPanel.js
View file @
ace4aa80
...
...
@@ -124,16 +124,16 @@ GenericSearchPanel.prototype.createTableElement = function (element, icon) {
var
result
=
document
.
createElement
(
"
div
"
);
var
table
=
document
.
createElement
(
"
table
"
);
var
expandStyle
=
"
fa-eye
"
;
var
headerDiv
;
var
label
=
""
;
if
(
element
.
getModelId
()
!==
self
.
getMap
().
getId
())
{
headerDiv
=
guiUtils
.
createSubMapLink
({
label
:
"
Submap:
"
,
mapId
:
element
.
getModelId
()
});
label
=
"
Submap:
"
;
}
else
{
headerDiv
=
document
.
createElement
(
"
div
"
);
$
(
headerDiv
).
css
(
"
height
"
,
"
21px
"
);
label
=
"
Top map:
"
;
}
var
headerDiv
=
guiUtils
.
createSubMapLink
({
label
:
label
+
"
(
"
+
element
.
getBioEntities
().
length
+
"
hits):
"
,
mapId
:
element
.
getModelId
()
});
$
(
headerDiv
).
css
(
"
padding
"
,
"
5px
"
);
$
(
table
).
hide
();
result
.
appendChild
(
headerDiv
);
...
...
@@ -189,13 +189,7 @@ GenericSearchPanel.prototype.addResultTab = function (query, elements) {
groupsByMap
[
element
.
getModelId
()].
addBioEntity
(
element
);
}
}
return
AbstractDbPanel
.
prototype
.
addResultTab
.
call
(
this
,
query
,
groups
).
then
(
function
()
{
var
contentElement
=
self
.
getControlElement
(
PanelControlElementType
.
SEARCH_RESULTS_CONTENT_TAB
);
var
links
=
$
(
"
.table div>a.minerva-toggle-hide-show
"
,
contentElement
);
if
(
links
.
length
>
0
)
{
links
[
0
].
onclick
();
}
});
return
AbstractDbPanel
.
prototype
.
addResultTab
.
call
(
this
,
query
,
groups
);
}
/**
...
...
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