Commit 70c6252d authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

976: Limit queries to custom search to predefined collections

Task-Url: https://pm.winseda.de/issues/976
parent 6a2ab8c0
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());
......
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