Loading public/javascript/app/designs/base/_ServiceOGC.js +6 −8 Original line number Diff line number Diff line Loading @@ -54,11 +54,16 @@ define([ pathProperty: this.pathProperty, pathSeparator: this.pathSeparator }); this._subscribe(this.filter.getChannel('ADDED_TO_QUERY'), lang.hitch(this, function() { this._emitEvt('REFRESH'); })) }, _requestAtlasDataOnRefresh: function() { this._requestAtlasData(); this._publish(this._buildChannel(this.queryChannel, "serialize")); }, _requestAtlasData: function(queryObj) { Loading @@ -66,13 +71,6 @@ define([ this._publish(this._atlasData.getChannel('REQUEST_TO_TARGETS'), queryObj || {}); }, postCreate: function() { this.inherited(arguments); this._emitEvt('REFRESH'); }, _handleFilterParams: function(filterParams) { if (filterParams.suggest) { Loading public/javascript/redmic/modules/base/_Filter.js +3 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,9 @@ define([ this.subscriptionsConfig.push({ channel: this.filter.getChannel('SERIALIZED'), callback: '_subFilterSerialized' },{ // TODO: REQUEST_FILTER parece lo mismo que SERIALIZE, hacer que todo vaya por SERIALIZE channel: this.filter.getChannel('REQUEST_FILTER'), callback: '_subFilterSerialized' }); }, Loading public/javascript/redmic/modules/filter/Filter.js +6 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ define([ actions: { REFRESH: "refresh", ADD_TO_QUERY: "addToQuery", ADDED_TO_QUERY: "addedToQuery", REFRESHED: "refreshed", AVAILABLE_FACETS: "availableFacets", RESET: "reset", Loading Loading @@ -233,6 +234,11 @@ define([ serialize && this._isValid({ callback: this._subSerialized }); // TODO: Añadir comprobación en la suscripción no en la publicación if (query.aggs) { this._publish(this.getChannel('ADDED_TO_QUERY')); } } else { if (!this._pendingAddToQuery) { this._pendingAddToQuery = {}; Loading public/javascript/redmic/modules/store/RequestJoiner/AtlasDataImpl.js +1 −5 Original line number Diff line number Diff line Loading @@ -123,11 +123,7 @@ define([ }; } if (queryParams && queryParams.text) { return queryParams; } return {}; return queryParams || {}; }, _expandQueryWithPreviousResponse: function(target, queryParams, prevRes) { Loading public/javascript/redmic/modules/store/RequestJoiner/RequestJoiner.js +2 −7 Original line number Diff line number Diff line Loading @@ -117,19 +117,14 @@ define([ var queryParams; if (queryObj) { if (!queryObj.target) { queryParams = queryObj.queryParams; } else {// if (queryObj.target === target) { queryParams = queryObj.queryParams; } } return { target: target, query: this._getRequestQuery(target, queryParams), method: 'POST', action: this._getRequestAction(target, queryObj) || '_search', requesterId: this.getOwnChannel() action: this._getRequestAction(target, queryObj) || '_search' }; }, Loading Loading
public/javascript/app/designs/base/_ServiceOGC.js +6 −8 Original line number Diff line number Diff line Loading @@ -54,11 +54,16 @@ define([ pathProperty: this.pathProperty, pathSeparator: this.pathSeparator }); this._subscribe(this.filter.getChannel('ADDED_TO_QUERY'), lang.hitch(this, function() { this._emitEvt('REFRESH'); })) }, _requestAtlasDataOnRefresh: function() { this._requestAtlasData(); this._publish(this._buildChannel(this.queryChannel, "serialize")); }, _requestAtlasData: function(queryObj) { Loading @@ -66,13 +71,6 @@ define([ this._publish(this._atlasData.getChannel('REQUEST_TO_TARGETS'), queryObj || {}); }, postCreate: function() { this.inherited(arguments); this._emitEvt('REFRESH'); }, _handleFilterParams: function(filterParams) { if (filterParams.suggest) { Loading
public/javascript/redmic/modules/base/_Filter.js +3 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,9 @@ define([ this.subscriptionsConfig.push({ channel: this.filter.getChannel('SERIALIZED'), callback: '_subFilterSerialized' },{ // TODO: REQUEST_FILTER parece lo mismo que SERIALIZE, hacer que todo vaya por SERIALIZE channel: this.filter.getChannel('REQUEST_FILTER'), callback: '_subFilterSerialized' }); }, Loading
public/javascript/redmic/modules/filter/Filter.js +6 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ define([ actions: { REFRESH: "refresh", ADD_TO_QUERY: "addToQuery", ADDED_TO_QUERY: "addedToQuery", REFRESHED: "refreshed", AVAILABLE_FACETS: "availableFacets", RESET: "reset", Loading Loading @@ -233,6 +234,11 @@ define([ serialize && this._isValid({ callback: this._subSerialized }); // TODO: Añadir comprobación en la suscripción no en la publicación if (query.aggs) { this._publish(this.getChannel('ADDED_TO_QUERY')); } } else { if (!this._pendingAddToQuery) { this._pendingAddToQuery = {}; Loading
public/javascript/redmic/modules/store/RequestJoiner/AtlasDataImpl.js +1 −5 Original line number Diff line number Diff line Loading @@ -123,11 +123,7 @@ define([ }; } if (queryParams && queryParams.text) { return queryParams; } return {}; return queryParams || {}; }, _expandQueryWithPreviousResponse: function(target, queryParams, prevRes) { Loading
public/javascript/redmic/modules/store/RequestJoiner/RequestJoiner.js +2 −7 Original line number Diff line number Diff line Loading @@ -117,19 +117,14 @@ define([ var queryParams; if (queryObj) { if (!queryObj.target) { queryParams = queryObj.queryParams; } else {// if (queryObj.target === target) { queryParams = queryObj.queryParams; } } return { target: target, query: this._getRequestQuery(target, queryParams), method: 'POST', action: this._getRequestAction(target, queryObj) || '_search', requesterId: this.getOwnChannel() action: this._getRequestAction(target, queryObj) || '_search' }; }, Loading