Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search-commons-webresources
Commits
70c6252d
Commit
70c6252d
authored
Feb 13, 2018
by
Gradl, Tobias
Browse files
976: Limit queries to custom search to predefined collections
Task-Url:
https://pm.winseda.de/issues/976
parent
6a2ab8c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/search/search.js
View file @
70c6252d
var
queryHandler
;
$
(
document
).
ready
(
function
()
{
queryHandler
=
new
QueryHandler
({});
queryHandler
=
new
QueryHandler
({
customSearch
:
$
(
"
#customSearchPrefix
"
).
val
()
});
__translator
.
getTranslations
();
...
...
@@ -21,7 +23,7 @@ $(document).ready(function() {
$
(
"
#query_size
"
).
bind
(
"
slider:ready
"
,
function
(
event
,
data
)
{
$
(
"
#query_size_shown
"
).
text
(
data
.
value
);
});
var
clouds
=
[];
...
...
@@ -38,7 +40,8 @@ $(window).resize(function() {
var
QueryHandler
=
function
(
options
)
{
var
_this
=
this
;
this
.
options
=
$
.
extend
({
this
.
options
=
$
.
extend
({
customSearch
:
null
,
wordcloud
:
{
animate
:
true
,
animateDirection
:
"
topDown
"
,
...
...
@@ -589,6 +592,7 @@ QueryHandler.prototype.buildQuery = function(isShowMore) {
query
.
explain
=
$
(
"
#explain
"
).
prop
(
'
checked
'
);
query
.
includeOriginal
=
$
(
"
#includeOriginal
"
).
prop
(
'
checked
'
);
query
.
sourceIds
=
sourceSelection
.
getSelectedSourceIds
();
query
.
customSearch
=
this
.
options
.
customSearch
;
//query.providerIds = JSON.parse($("#providerIds").val());
//query.userCollectionId = parseInt($("#userCollectionId").val());
...
...
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