Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search-commons-webresources
Commits
5701d5c5
Commit
5701d5c5
authored
Jun 20, 2019
by
Gradl, Tobias
Browse files
1312: Implement initial vocabulary browsing mechanism
Task-Url:
https://pm.winseda.de/issues/1312
parent
e95a1ff5
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/search/search.responseHandler.js
View file @
5701d5c5
...
...
@@ -95,9 +95,9 @@ ResponseHandler.prototype.processFilters = function(filters) {
classes
+=
"
selected
"
;
}
ul
.
append
(
"
<li
"
+
(
classes
.
length
>
0
?
"
class='
"
+
classes
+
"
'
"
:
""
)
+
"
>
"
+
"
<
button class='btn btn-inline'
onclick=
\"
search.
"
+
(
selected
?
'
removeFilterTerm
'
:
'
addFilterTerm
'
)
+
"
('
"
+
filters
[
i
].
label
+
"
', '
"
+
term
.
type
+
"
', '
"
+
term
.
term
+
"
', this);
\"
>
"
+
"
<
span
onclick=
\"
search.
"
+
(
selected
?
'
removeFilterTerm
'
:
'
addFilterTerm
'
)
+
"
('
"
+
filters
[
i
].
label
+
"
', '
"
+
term
.
type
+
"
', '
"
+
term
.
term
+
"
', this);
\"
>
"
+
(
selected
?
"
<i class=
\"
fas fa-times
\"
></i>
"
:
""
)
+
term
.
term
+
"
(
"
+
term
.
count
+
"
)
"
+
"
</
butto
n></li>
"
);
"
</
spa
n></li>
"
);
}
...
...
Write
Preview
Supports
Markdown
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