Replace meta service import and use with meta and title from angular/platform-browser for user, publication, claimAdmin,claimsByToken, directLinking, linkingGeneric, myClaims, depositBySubject, depositBySubjectResult, deposit, depositResult, dataProvider, htmlProjectReport, organization, project, software, search, advancedSearchPage, searchPage and searchPageTableView component
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51835 d315682c-612b-4755-9ff5-7f18f6832af3
2018-04-17 15:00:23 +02:00
|
|
|
import {Component, Input, ViewChild} from '@angular/core';
|
|
|
|
import {Output, EventEmitter} from '@angular/core';
|
|
|
|
import {Location} from '@angular/common';
|
|
|
|
import {ActivatedRoute, Router} from '@angular/router';
|
|
|
|
import {Title, Meta} from '@angular/platform-browser';
|
|
|
|
|
|
|
|
import {Observable} from 'rxjs/Observable';
|
|
|
|
|
|
|
|
import {Filter, Value, AdvancedField} from '../searchUtils/searchHelperClasses.class';
|
|
|
|
import {SearchResult} from '../../utils/entities/searchResult';
|
|
|
|
import {SearchFields, FieldDetails} from '../../utils/properties/searchFields';
|
|
|
|
import {SearchUtilsClass} from './searchUtils.class';
|
|
|
|
import {ModalLoading} from '../../utils/modal/loading.component';
|
|
|
|
import {StringUtils, Dates} from '../../utils/string-utils.class';
|
|
|
|
|
|
|
|
import {PiwikService} from '../../utils/piwik/piwik.service';
|
|
|
|
import {EnvProperties} from '../../utils/properties/env-properties';
|
2017-12-19 13:53:46 +01:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'advanced-search-page',
|
|
|
|
templateUrl: 'advancedSearchPage.component.html'
|
|
|
|
})
|
|
|
|
export class AdvancedSearchPageComponent {
|
2018-04-11 10:59:01 +02:00
|
|
|
@Input() piwikSiteId = null;
|
2017-12-19 13:53:46 +01:00
|
|
|
@Input() pageTitle = "";
|
|
|
|
@Input() results = [];
|
|
|
|
@Input() type;
|
|
|
|
@Input() entityType;
|
|
|
|
@Input() searchUtils:SearchUtilsClass = new SearchUtilsClass();
|
|
|
|
@Input() fieldIds: string[];
|
|
|
|
@Input() fieldIdsMap;//:{ [key:string]:{ name:string, operator:string, type:string, indexField:string, equalityOperator:string }} ;
|
|
|
|
@Input() selectedFields:AdvancedField[];
|
|
|
|
@Input() simpleSearchUrl: string;
|
|
|
|
@ViewChild (ModalLoading) loading : ModalLoading ;
|
|
|
|
@Input() csvParams: string;
|
|
|
|
@Input() csvPath: string;
|
|
|
|
@Input() simpleSearchLink: string = "";
|
|
|
|
@Input() disableForms:boolean = false;
|
|
|
|
@Input() loadPaging: boolean = true;
|
|
|
|
@Input() oldTotalResults: number = 0;
|
2018-02-05 14:14:59 +01:00
|
|
|
@Input() openaireLink: string;
|
|
|
|
@Input() connectCommunityId: string;
|
2018-10-01 17:02:14 +02:00
|
|
|
@Input() searchFormClass: string = "searchForm";
|
2017-12-19 13:53:46 +01:00
|
|
|
piwiksub: any;
|
|
|
|
public parameterNames:string[] =[];
|
|
|
|
public parameterValues:string[] =[];
|
|
|
|
|
|
|
|
public baseURLWithParameters:string = '';
|
|
|
|
|
2018-02-05 14:14:59 +01:00
|
|
|
public csvLimit: number = 0;
|
|
|
|
public pagingLimit: number = 0;
|
|
|
|
public resultsPerPage: number = 0;
|
|
|
|
isPiwikEnabled = false;
|
|
|
|
properties:EnvProperties;
|
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
@Output() queryChange = new EventEmitter();
|
Replace meta service import and use with meta and title from angular/platform-browser for user, publication, claimAdmin,claimsByToken, directLinking, linkingGeneric, myClaims, depositBySubject, depositBySubjectResult, deposit, depositResult, dataProvider, htmlProjectReport, organization, project, software, search, advancedSearchPage, searchPage and searchPageTableView component
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51835 d315682c-612b-4755-9ff5-7f18f6832af3
2018-04-17 15:00:23 +02:00
|
|
|
constructor (private route: ActivatedRoute,
|
|
|
|
private location: Location,
|
|
|
|
private _meta: Meta,
|
|
|
|
private _title: Title,
|
|
|
|
private _piwikService:PiwikService,
|
|
|
|
private router: Router) {
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
ngOnInit() {
|
2018-02-05 14:14:59 +01:00
|
|
|
this.route.data
|
|
|
|
.subscribe((data: { envSpecific: EnvProperties }) => {
|
|
|
|
this.properties = data.envSpecific;
|
|
|
|
this.pagingLimit = data.envSpecific.pagingLimit;
|
|
|
|
this.resultsPerPage =data.envSpecific.resultsPerPage;
|
|
|
|
this.csvLimit = data.envSpecific.csvLimit;
|
|
|
|
this.isPiwikEnabled = data.envSpecific.enablePiwikTrack;
|
|
|
|
if(typeof window !== 'undefined') {
|
|
|
|
this.updateUrl(data.envSpecific.baseLink+location.pathname);
|
|
|
|
}
|
|
|
|
if(typeof document !== 'undefined' && this.isPiwikEnabled){
|
2018-04-11 10:59:01 +02:00
|
|
|
this.piwiksub = this._piwikService.trackView(this.properties, this.pageTitle, this.piwikSiteId).subscribe();
|
2018-02-05 14:14:59 +01:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
Replace meta service import and use with meta and title from angular/platform-browser for user, publication, claimAdmin,claimsByToken, directLinking, linkingGeneric, myClaims, depositBySubject, depositBySubjectResult, deposit, depositResult, dataProvider, htmlProjectReport, organization, project, software, search, advancedSearchPage, searchPage and searchPageTableView component
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51835 d315682c-612b-4755-9ff5-7f18f6832af3
2018-04-17 15:00:23 +02:00
|
|
|
var title = "Advanced search "+this.pageTitle;
|
|
|
|
var description = "Openaire, search, repositories, open access, type, content provider, funder, project, "+ this.pageTitle;
|
2018-02-05 14:14:59 +01:00
|
|
|
|
Replace meta service import and use with meta and title from angular/platform-browser for user, publication, claimAdmin,claimsByToken, directLinking, linkingGeneric, myClaims, depositBySubject, depositBySubjectResult, deposit, depositResult, dataProvider, htmlProjectReport, organization, project, software, search, advancedSearchPage, searchPage and searchPageTableView component
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51835 d315682c-612b-4755-9ff5-7f18f6832af3
2018-04-17 15:00:23 +02:00
|
|
|
this.updateTitle(title);
|
|
|
|
this.updateDescription(description);
|
2017-12-19 13:53:46 +01:00
|
|
|
|
Replace meta service import and use with meta and title from angular/platform-browser for user, publication, claimAdmin,claimsByToken, directLinking, linkingGeneric, myClaims, depositBySubject, depositBySubjectResult, deposit, depositResult, dataProvider, htmlProjectReport, organization, project, software, search, advancedSearchPage, searchPage and searchPageTableView component
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51835 d315682c-612b-4755-9ff5-7f18f6832af3
2018-04-17 15:00:23 +02:00
|
|
|
this.searchUtils.baseUrl = "/" + this.searchUtils.baseUrl;
|
|
|
|
this.updateBaseUrlWithParameters();
|
2018-02-05 14:14:59 +01:00
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
ngOnDestroy() {
|
|
|
|
if(this.piwiksub){
|
Replace meta service import and use with meta and title from angular/platform-browser for user, publication, claimAdmin,claimsByToken, directLinking, linkingGeneric, myClaims, depositBySubject, depositBySubjectResult, deposit, depositResult, dataProvider, htmlProjectReport, organization, project, software, search, advancedSearchPage, searchPage and searchPageTableView component
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51835 d315682c-612b-4755-9ff5-7f18f6832af3
2018-04-17 15:00:23 +02:00
|
|
|
this.piwiksub.unsubscribe();
|
|
|
|
}
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
Replace meta service import and use with meta and title from angular/platform-browser for user, publication, claimAdmin,claimsByToken, directLinking, linkingGeneric, myClaims, depositBySubject, depositBySubjectResult, deposit, depositResult, dataProvider, htmlProjectReport, organization, project, software, search, advancedSearchPage, searchPage and searchPageTableView component
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51835 d315682c-612b-4755-9ff5-7f18f6832af3
2018-04-17 15:00:23 +02:00
|
|
|
updateDescription(description:string) {
|
|
|
|
this._meta.updateTag({content:description},"name='description'");
|
|
|
|
this._meta.updateTag({content:description},"property='og:description'");
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
Replace meta service import and use with meta and title from angular/platform-browser for user, publication, claimAdmin,claimsByToken, directLinking, linkingGeneric, myClaims, depositBySubject, depositBySubjectResult, deposit, depositResult, dataProvider, htmlProjectReport, organization, project, software, search, advancedSearchPage, searchPage and searchPageTableView component
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51835 d315682c-612b-4755-9ff5-7f18f6832af3
2018-04-17 15:00:23 +02:00
|
|
|
updateTitle(title:string) {
|
2017-12-19 13:53:46 +01:00
|
|
|
var _prefix ="OpenAIRE | ";
|
|
|
|
var _title = _prefix + ((title.length> 50 ) ?title.substring(0,50):title);
|
Replace meta service import and use with meta and title from angular/platform-browser for user, publication, claimAdmin,claimsByToken, directLinking, linkingGeneric, myClaims, depositBySubject, depositBySubjectResult, deposit, depositResult, dataProvider, htmlProjectReport, organization, project, software, search, advancedSearchPage, searchPage and searchPageTableView component
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51835 d315682c-612b-4755-9ff5-7f18f6832af3
2018-04-17 15:00:23 +02:00
|
|
|
this._title.setTitle(_title);
|
|
|
|
this._meta.updateTag({content:_title},"property='og:title'");
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
Replace meta service import and use with meta and title from angular/platform-browser for user, publication, claimAdmin,claimsByToken, directLinking, linkingGeneric, myClaims, depositBySubject, depositBySubjectResult, deposit, depositResult, dataProvider, htmlProjectReport, organization, project, software, search, advancedSearchPage, searchPage and searchPageTableView component
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51835 d315682c-612b-4755-9ff5-7f18f6832af3
2018-04-17 15:00:23 +02:00
|
|
|
updateUrl(url:string) {
|
|
|
|
this._meta.updateTag({content:url},"property='og:url'");
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
|
|
|
|
Replace meta service import and use with meta and title from angular/platform-browser for user, publication, claimAdmin,claimsByToken, directLinking, linkingGeneric, myClaims, depositBySubject, depositBySubjectResult, deposit, depositResult, dataProvider, htmlProjectReport, organization, project, software, search, advancedSearchPage, searchPage and searchPageTableView component
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51835 d315682c-612b-4755-9ff5-7f18f6832af3
2018-04-17 15:00:23 +02:00
|
|
|
public getSelectedFiltersFromUrl(params) {
|
2017-12-19 13:53:46 +01:00
|
|
|
for(var i=0; i< this.fieldIds.length ; i++){
|
|
|
|
|
|
|
|
var fieldId = this.fieldIds[i];
|
|
|
|
var fieldparam = (this.fieldIdsMap[fieldId])?this.fieldIdsMap[fieldId].param:"";
|
|
|
|
if(!this.fieldIdsMap[fieldId]){
|
|
|
|
|
|
|
|
console.error("Field: "+fieldId +" not found in fieldIds map");
|
|
|
|
}
|
|
|
|
|
|
|
|
var operatorId = this.getOperatorParameter(fieldparam);
|
|
|
|
if(params[fieldparam] != undefined && params[operatorId] != undefined) {
|
|
|
|
var values:string [] = StringUtils.URIDecode(params[fieldparam]).split(/,(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,-1);
|
|
|
|
var operators:string [] = (StringUtils.URIDecode(params[operatorId])).split(/,(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,-1);
|
|
|
|
if(values.length == operators.length){
|
|
|
|
for(var j=0; j< values.length ; j++){
|
|
|
|
if(this.fieldIdsMap[fieldId].type == "date"){
|
|
|
|
var value:string =StringUtils.unquote(values[j]);
|
|
|
|
var validDates:boolean = true;
|
|
|
|
var dateField:AdvancedField = new AdvancedField(fieldId,fieldparam,this.fieldIdsMap[fieldId].name,this.fieldIdsMap[fieldId].type,value,operators[j]) ;
|
|
|
|
if(value.indexOf("range") != -1){
|
|
|
|
dateField.dateValue.type="range";
|
|
|
|
if(value.length < 26 ){
|
|
|
|
validDates =false;
|
|
|
|
}else{
|
|
|
|
if(!Dates.isValidDate(value.substring(5,15)) || !Dates.isValidDate(value.substring(16,26))){
|
|
|
|
validDates =false;
|
|
|
|
}else {
|
|
|
|
dateField.dateValue.from = Dates.getDateFromString(value.substring(5,15));
|
|
|
|
dateField.dateValue.to = Dates.getDateFromString(value.substring(16,26));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// "rangeYYYY-MM-DD:YYYY-MM-DD"
|
|
|
|
}else{
|
|
|
|
dateField.dateValue.setDatesByType(value);
|
|
|
|
}
|
|
|
|
if(validDates){
|
|
|
|
this.selectedFields.push(dateField);
|
|
|
|
}
|
|
|
|
|
2018-05-15 10:48:39 +02:00
|
|
|
}
|
2018-07-05 12:52:42 +02:00
|
|
|
else{
|
2018-02-05 14:14:59 +01:00
|
|
|
this.selectedFields.push(new AdvancedField(fieldId,fieldparam,this.fieldIdsMap[fieldId].name,this.fieldIdsMap[fieldId].type,StringUtils.unquote(values[j]),operators[j]) );
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.selectedFields.length == 0){
|
|
|
|
this.selectedFields.push(new AdvancedField(this.fieldIds[0],fieldparam,this.fieldIdsMap[this.fieldIds[0]].name,this.fieldIdsMap[this.fieldIds[0]].type,"","and"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
private createUrlParameters(includePage:boolean){
|
|
|
|
var params="";
|
|
|
|
this.parameterNames.splice(0,this.parameterNames.length);
|
|
|
|
this.parameterValues.splice(0,this.parameterValues.length);
|
|
|
|
var fields: { [key:string]:{ values:string[], operators:string[] }}={};
|
|
|
|
for(var i = 0; i< this.selectedFields.length; i++){
|
|
|
|
if(this.fieldIdsMap[this.selectedFields[i].id] != undefined && (this.selectedFields[i].value.length > 0 || this.selectedFields[i].type == "date" )){
|
|
|
|
if(!fields[this.selectedFields[i].id]){
|
|
|
|
fields[this.selectedFields[i].id] = {values:[], operators:[]};
|
|
|
|
fields[this.selectedFields[i].id].values =[];
|
|
|
|
fields[this.selectedFields[i].id].operators =[];
|
|
|
|
}
|
|
|
|
if(this.selectedFields[i].type == "date"){
|
|
|
|
if(this.selectedFields[i].dateValue.type == "range"){
|
|
|
|
fields[this.selectedFields[i].id].values.push(StringUtils.quote(StringUtils.URIEncode("range"+Dates.getDateToString(this.selectedFields[i].dateValue.from)+":"+Dates.getDateToString(this.selectedFields[i].dateValue.to))));
|
|
|
|
}else{
|
|
|
|
fields[this.selectedFields[i].id].values.push(StringUtils.quote(StringUtils.URIEncode(this.selectedFields[i].dateValue.type)));
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
fields[this.selectedFields[i].id].values.push(StringUtils.quote(StringUtils.URIEncode(this.selectedFields[i].value)));
|
|
|
|
}
|
|
|
|
fields[this.selectedFields[i].id].operators.push(this.selectedFields[i].operatorId);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for(var i = 0; i< this.fieldIds.length; i++){
|
|
|
|
if(fields[this.fieldIds[i]]){
|
|
|
|
|
|
|
|
params+="&"+this.fieldIdsMap[this.fieldIds[i]].param+"="+fields[this.fieldIds[i]].values.join()+
|
2018-07-05 12:52:42 +02:00
|
|
|
"&"+ this.fieldIdsMap[this.fieldIds[i]].operator+"="+fields[this.fieldIds[i]].operators.join()
|
2017-12-19 13:53:46 +01:00
|
|
|
this.parameterNames.push(this.fieldIdsMap[this.fieldIds[i]].param);
|
|
|
|
this.parameterValues.push(fields[this.fieldIds[i]].values.join());
|
2018-07-05 12:52:42 +02:00
|
|
|
this.parameterNames.push( this.fieldIdsMap[this.fieldIds[i]].operator);
|
2017-12-19 13:53:46 +01:00
|
|
|
this.parameterValues.push(fields[this.fieldIds[i]].operators.join());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(includePage && this.searchUtils.page != 1){
|
|
|
|
params += "&page="+this.searchUtils.page;
|
|
|
|
}
|
|
|
|
return '?'+params;
|
|
|
|
}
|
|
|
|
public createQueryParameters(){
|
|
|
|
var params="";
|
|
|
|
var countParams = 0;
|
|
|
|
for(var i = 0; i< this.selectedFields.length; i++){
|
|
|
|
if(this.fieldIdsMap[this.selectedFields[i].id] != undefined && (this.selectedFields[i].value != "" ||this.selectedFields[i].type == "date")){
|
|
|
|
console.log("createQueryParameters::"+this.selectedFields[i].type);
|
|
|
|
if(this.selectedFields[i].type == "date"){
|
|
|
|
if(this.selectedFields[i].dateValue.type != "any"){
|
|
|
|
params += (countParams == 0 ? "" : this.selectedFields[i].operatorId) + " " + this.selectedFields[i].id + this.fieldIdsMap[this.selectedFields[i].id].equalityOperator+ '"' + StringUtils.URIEncode(Dates.getDateToString(this.selectedFields[i].dateValue.from)) + " "
|
|
|
|
+ StringUtils.URIEncode(Dates.getDateToString(this.selectedFields[i].dateValue.to)) + '"' + " ";
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
if(this.selectedFields[i].id == "q"){
|
|
|
|
var op = "";
|
|
|
|
// if()
|
|
|
|
params += (countParams == 0 ? "" : this.selectedFields[i].operatorId) + " " + '"' + StringUtils.URIEncode(this.selectedFields[i].value) + '"' + " ";
|
|
|
|
}else if(countParams == 0 && this.selectedFields[i].operatorId == "not"){
|
|
|
|
params += " "+ this.selectedFields[i].id + " <> "+'"' + StringUtils.URIEncode(this.selectedFields[i].value) +'"' + " ";
|
|
|
|
}else{
|
|
|
|
params += (countParams == 0 ? "" : this.selectedFields[i].operatorId + " " ) + this.selectedFields[i].id + this.fieldIdsMap[this.selectedFields[i].id].equalityOperator+'"' + encodeURIComponent(this.selectedFields[i].value) +'"' + " ";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
countParams++;
|
|
|
|
}
|
|
|
|
}
|
2018-05-15 10:48:39 +02:00
|
|
|
|
|
|
|
//community
|
|
|
|
if(this.connectCommunityId ){
|
|
|
|
params += (countParams == 0 ? "" : " and " ) + "communityId exact "+'"' + this.connectCommunityId +'"' + " ";
|
|
|
|
}
|
2017-12-19 13:53:46 +01:00
|
|
|
return params;
|
|
|
|
|
|
|
|
}
|
|
|
|
clearFilters(){
|
|
|
|
}
|
|
|
|
|
|
|
|
goTo(page:number = 1){
|
|
|
|
this.searchUtils.page = page;
|
|
|
|
var urlParameters = this.createUrlParameters(true);
|
|
|
|
var queryParameters = this.createQueryParameters();
|
|
|
|
this.location.go(location.pathname,urlParameters);
|
|
|
|
this.queryChange.emit({
|
|
|
|
value: queryParameters
|
|
|
|
});
|
|
|
|
/* Code For Piwik*/
|
|
|
|
if (typeof localStorage !== 'undefined') {
|
|
|
|
console.log("In PreviousRouteRecorder : "+this.router.url );
|
|
|
|
localStorage.setItem('previousRoute', this.router.url);
|
|
|
|
}
|
2018-02-05 14:14:59 +01:00
|
|
|
if(this.isPiwikEnabled && (typeof document !== 'undefined')){
|
2018-04-11 10:59:01 +02:00
|
|
|
this.piwiksub = this._piwikService.trackView(this.properties, this.pageTitle, this.piwikSiteId).subscribe();
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
|
|
|
/* End Piwik Code */
|
|
|
|
}
|
|
|
|
|
|
|
|
queryChanged($event) {
|
|
|
|
|
|
|
|
this.goTo(1);
|
|
|
|
}
|
|
|
|
pageChanged($event) {
|
|
|
|
this.searchUtils.page = +$event.value;
|
|
|
|
this.goTo(this.searchUtils.page);
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
* Update the url with proper parameters. This is used as base url in Paging Component
|
|
|
|
*/
|
|
|
|
public updateBaseUrlWithParameters(){
|
|
|
|
this.baseURLWithParameters = this.searchUtils.baseUrl + this.createUrlParameters(false);
|
|
|
|
}
|
|
|
|
getOperatorParameter(parameter:string):string{
|
2018-07-05 12:52:42 +02:00
|
|
|
for (let id of this.fieldIds) {
|
|
|
|
if(this.fieldIdsMap[id]["param"] == parameter){
|
|
|
|
return this.fieldIdsMap[id]["operator"];
|
|
|
|
}
|
2018-10-01 17:02:14 +02:00
|
|
|
}
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
|
|
|
// for loading
|
|
|
|
public openLoading(){
|
|
|
|
this.loading.open();
|
|
|
|
}
|
|
|
|
public closeLoading(){
|
|
|
|
this.loading.close();
|
|
|
|
}
|
|
|
|
}
|