2018-01-11 11:55:54 +01:00
|
|
|
import {Component, Input, ViewChild, Output, EventEmitter, ViewEncapsulation, OnInit, AfterViewInit} from '@angular/core';
|
2017-12-19 13:53:46 +01:00
|
|
|
import {Observable} from 'rxjs/Observable';
|
2018-01-03 14:12:31 +01:00
|
|
|
import { Subject } from 'rxjs/Subject';
|
2017-12-19 13:53:46 +01:00
|
|
|
import {Location} from '@angular/common';
|
2018-02-05 14:14:59 +01:00
|
|
|
import {ActivatedRoute} from '@angular/router';
|
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
import { Filter, Value} from './searchHelperClasses.class';
|
|
|
|
import {SearchResult} from '../../utils/entities/searchResult';
|
|
|
|
import {SearchFields, FieldDetails} from '../../utils/properties/searchFields';
|
|
|
|
import {SearchUtilsClass} from './searchUtils.class';
|
|
|
|
import {DOI, StringUtils} from '../../utils/string-utils.class';
|
|
|
|
import {ModalLoading} from '../../utils/modal/loading.component';
|
2018-02-12 14:38:30 +01:00
|
|
|
import { Meta} from '../../sharedComponents/metaService';
|
2017-12-19 13:53:46 +01:00
|
|
|
import{SearchFilterComponent} from './searchFilter.component';
|
|
|
|
import {SearchFilterModalComponent} from './searchFilterModal.component';
|
2018-02-15 11:36:12 +01:00
|
|
|
import { ErrorCodes} from '../../utils/properties/errorCodes';
|
2017-12-19 13:53:46 +01:00
|
|
|
import {PiwikService} from '../../utils/piwik/piwik.service';
|
2018-01-11 11:55:54 +01:00
|
|
|
import { DataTableDirective } from 'angular-datatables';
|
|
|
|
import {SearchDataprovidersService} from '../../services/searchDataproviders.service';
|
2018-02-05 14:14:59 +01:00
|
|
|
import {EnvProperties} from '../../utils/properties/env-properties';
|
2018-01-11 11:55:54 +01:00
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
@Component({
|
|
|
|
selector: 'search-page-table',
|
2018-01-03 14:12:31 +01:00
|
|
|
templateUrl:'searchPageTableView.component.html',
|
|
|
|
styles: [`
|
2018-01-11 11:55:54 +01:00
|
|
|
#dpTable_info, #dpTable_paginate, #dpTable_length, #dpTable_filter{
|
|
|
|
display: none;
|
2018-01-03 14:12:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
`],
|
|
|
|
encapsulation: ViewEncapsulation.None // this used in order styles to work
|
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
})
|
2018-01-11 11:55:54 +01:00
|
|
|
export class SearchPageTableViewComponent implements OnInit, AfterViewInit {
|
2017-12-19 13:53:46 +01:00
|
|
|
@Input() pageTitle = "";
|
|
|
|
@Input() results;
|
|
|
|
@Input() filters = [];
|
|
|
|
@Input() type:string = "";
|
|
|
|
@Input() entityType: string = "";
|
|
|
|
@Input() searchUtils:SearchUtilsClass;// = new SearchUtilsClass();
|
|
|
|
//@Output() downloadClick = new EventEmitter();
|
|
|
|
@Input() showResultCount:boolean = true;
|
|
|
|
@Input() showRefine:boolean = true;
|
|
|
|
@Input() refineFields = [];
|
|
|
|
//@Input() csvParams: string;
|
|
|
|
//@Input() csvPath: string;
|
|
|
|
@Input() searchViewLink: string;
|
|
|
|
@Input() disableForms: boolean = false;
|
|
|
|
@Input() searchFormClass: string = "searchForm";
|
|
|
|
@Input() formPlaceholderText = "Type Keywords...";
|
|
|
|
@ViewChild (ModalLoading) loading : ModalLoading ;
|
|
|
|
private searchFieldsHelper:SearchFields = new SearchFields();
|
|
|
|
private queryParameters: Map<string, string> = new Map<string,string>();
|
|
|
|
public countFilters= 0;
|
|
|
|
public parameterNames:string[] =[];
|
|
|
|
public parameterValues:string[] =[];
|
|
|
|
|
|
|
|
public rowsOnPage:number = 10;
|
2018-02-05 14:14:59 +01:00
|
|
|
public isPiwikEnabled;
|
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
|
|
|
|
@ViewChild (SearchFilterModalComponent) searchFilterModal : SearchFilterModalComponent ;
|
|
|
|
public currentFilter: Filter;
|
|
|
|
public errorCodes:ErrorCodes = new ErrorCodes();
|
|
|
|
piwiksub: any;
|
2018-01-03 14:12:31 +01:00
|
|
|
dtOptions: DataTables.Settings = {};
|
2018-01-11 11:55:54 +01:00
|
|
|
showTable = false; filteringAdded = false;
|
|
|
|
@ViewChild(DataTableDirective) datatableElement: DataTableDirective;
|
|
|
|
dtTrigger: Subject<any> = new Subject(); //necessary
|
2018-02-05 14:14:59 +01:00
|
|
|
constructor (private route: ActivatedRoute,private location: Location , private _meta: Meta, private _piwikService:PiwikService, private _searchDataprovidersService: SearchDataprovidersService ) { }
|
2017-12-19 13:53:46 +01:00
|
|
|
|
|
|
|
ngOnInit() {
|
2018-02-05 14:14:59 +01:00
|
|
|
this.route.data
|
|
|
|
.subscribe((data: { envSpecific: EnvProperties }) => {
|
|
|
|
|
2018-01-11 11:55:54 +01:00
|
|
|
|
2018-02-05 14:14:59 +01:00
|
|
|
this.isPiwikEnabled = data.envSpecific.enablePiwikTrack;
|
|
|
|
if(typeof window !== 'undefined') {
|
|
|
|
this.updateUrl(data.envSpecific.baseLink+location.pathname);
|
|
|
|
}
|
|
|
|
if(typeof document !== 'undefined' && this.isPiwikEnabled){
|
2018-02-15 11:36:12 +01:00
|
|
|
this.piwiksub = this._piwikService.trackView(data.envSpecific, this.pageTitle).subscribe();
|
2018-02-05 14:14:59 +01:00
|
|
|
}
|
|
|
|
});
|
2018-01-03 14:12:31 +01:00
|
|
|
this.dtOptions = {
|
|
|
|
"paging": true,
|
|
|
|
"searching": false,
|
|
|
|
"lengthChange": false,
|
|
|
|
"pageLength": this.rowsOnPage
|
|
|
|
};
|
2017-12-19 13:53:46 +01:00
|
|
|
this.updateTitle(this.pageTitle);
|
|
|
|
this.updateDescription("Openaire, search, repositories, open access, type, content provider, funder, project, " + this.type + "," +this.pageTitle);
|
2018-02-15 11:36:12 +01:00
|
|
|
|
2018-01-11 11:55:54 +01:00
|
|
|
}
|
2017-12-19 13:53:46 +01:00
|
|
|
ngOnDestroy() {
|
|
|
|
if(this.piwiksub){
|
2018-01-03 14:12:31 +01:00
|
|
|
this.piwiksub.unsubscribe();
|
|
|
|
}
|
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
2018-01-11 11:55:54 +01:00
|
|
|
ngAfterViewInit(): void {
|
|
|
|
$.fn['dataTable'].ext.search.push((settings, data, dataIndex) => {
|
|
|
|
|
|
|
|
if (this.filterData(data, this.searchUtils.keyword, this.filters)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
2018-01-11 11:55:54 +01:00
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
|
|
|
|
totalPages(): number {
|
|
|
|
let totalPages:any = this.searchUtils.totalResults/(this.rowsOnPage);
|
|
|
|
if(!(Number.isInteger(totalPages))) {
|
|
|
|
totalPages = (parseInt(totalPages, 10) + 1);
|
|
|
|
}
|
|
|
|
return totalPages;
|
|
|
|
}
|
|
|
|
|
|
|
|
toggleModal($event) {
|
|
|
|
this.currentFilter = $event.value;
|
|
|
|
this.searchFilterModal.open();
|
2018-01-11 11:55:54 +01:00
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
updateDescription(description:string){
|
|
|
|
this._meta.updateMeta("description", description);
|
|
|
|
this._meta.updateProperty("og:description", description);
|
|
|
|
}
|
|
|
|
updateTitle(title:string){
|
|
|
|
var _prefix ="OpenAIRE | ";
|
|
|
|
var _title = _prefix + ((title.length> 50 ) ?title.substring(0,50):title);
|
|
|
|
this._meta.setTitle(_title );
|
|
|
|
this._meta.updateProperty("og:title",_title);
|
|
|
|
}
|
|
|
|
updateUrl(url:string){
|
|
|
|
this._meta.updateProperty("og:url", url);
|
|
|
|
}
|
|
|
|
|
|
|
|
public getParametersFromUrl(params) {
|
|
|
|
for(var i=0; i< this.refineFields.length ; i++) {
|
|
|
|
var filterId = this.refineFields[i];
|
|
|
|
if(params[filterId] != undefined) {
|
|
|
|
if(this.queryParameters == undefined){
|
|
|
|
this.queryParameters = new Map<string,string>();
|
|
|
|
}
|
|
|
|
this.queryParameters[filterId]=decodeURIComponent(params[filterId]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
* Mark as check the new filters that are selected, when you get them from search
|
|
|
|
*/
|
|
|
|
public checkSelectedFilters(filters:Filter[]){
|
|
|
|
|
|
|
|
this.filters = filters;
|
|
|
|
for(var i=0; i< filters.length ; i++){
|
|
|
|
var filter:Filter = filters[i];
|
|
|
|
filter.countSelectedValues = 0;
|
|
|
|
|
|
|
|
if(this.queryParameters[filter.filterId] != undefined) {
|
|
|
|
let values = (decodeURIComponent(this.queryParameters[filter.filterId])).split(/,(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,-1);
|
|
|
|
for(let filterValue of filter.values) {
|
|
|
|
if(values.indexOf(StringUtils.quote(filterValue.id)) > -1) {
|
|
|
|
filterValue.selected = true;
|
|
|
|
filter.countSelectedValues++;
|
|
|
|
}else{
|
|
|
|
filterValue.selected = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
for(let filterValue of filter.values) {
|
|
|
|
filterValue.selected = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return filters;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
private createUrlParameters(filters:Filter[], includePage:boolean){
|
|
|
|
var allLimits="";//location.search.slice(1);
|
|
|
|
this.parameterNames.splice(0,this.parameterNames.length);
|
|
|
|
this.parameterValues.splice(0,this.parameterValues.length);
|
|
|
|
|
|
|
|
for (let filter of filters){
|
|
|
|
var filterLimits="";
|
|
|
|
if(filter.countSelectedValues > 0){
|
|
|
|
for (let value of filter.values){
|
|
|
|
if(value.selected == true){
|
|
|
|
filterLimits+=((filterLimits.length == 0)?'':',') +'"'+ StringUtils.URIEncode(value.id)+'"';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.queryParameters[filter.filterId]=filterLimits;
|
|
|
|
if(filterLimits.length > 0){
|
|
|
|
this.parameterNames.push(filter.filterId);
|
|
|
|
this.parameterValues.push(filterLimits);
|
|
|
|
}
|
|
|
|
allLimits+=(allLimits.length==0?"?":"&")+((filterLimits.length == 0 )?'':filter.filterId + '='+ filterLimits) ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.searchUtils.keyword.length > 0 ){
|
|
|
|
allLimits+=(allLimits.length==0?"?":"&")+'keyword=' + this.searchUtils.keyword;
|
|
|
|
this.parameterNames.push("keyword");
|
|
|
|
this.parameterValues.push(this.searchUtils.keyword);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return allLimits;
|
|
|
|
}
|
|
|
|
|
|
|
|
public isFiltered(){
|
|
|
|
var filtered=false;
|
|
|
|
for (let filter of this.filters){
|
|
|
|
if(filter.countSelectedValues > 0){
|
|
|
|
filtered = true;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.searchUtils.keyword.length > 0 ){
|
|
|
|
filtered = true;
|
|
|
|
}
|
|
|
|
return filtered;
|
|
|
|
}
|
|
|
|
private clearKeywords(){
|
|
|
|
if(this.searchUtils.keyword.length > 0 ){
|
|
|
|
this.searchUtils.keyword ='';
|
|
|
|
}
|
2018-01-11 11:55:54 +01:00
|
|
|
this.goTo(1);
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
|
|
|
private clearFilters(){
|
|
|
|
for (var i =0 ; i < this.filters.length; i++) {
|
|
|
|
for (var j=0; j < this.filters[i].values.length; j++) {
|
|
|
|
if(this.filters[i].values[j].selected) {
|
|
|
|
this.filters[i].values[j].selected = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.filters[i].countSelectedValues = 0;
|
|
|
|
}
|
|
|
|
this.clearKeywords();
|
|
|
|
}
|
|
|
|
|
|
|
|
private removeFilter(value:Value,filter:Filter){
|
|
|
|
filter.countSelectedValues--;
|
|
|
|
if(value.selected == true){
|
|
|
|
value.selected = false;
|
|
|
|
}
|
2018-01-11 11:55:54 +01:00
|
|
|
this.goTo(1);
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
2018-01-11 11:55:54 +01:00
|
|
|
goTo(page:number = 1){
|
2018-01-03 14:12:31 +01:00
|
|
|
|
2018-01-11 11:55:54 +01:00
|
|
|
this.searchUtils.page=page;
|
|
|
|
var table = $('#dpTable').DataTable();
|
|
|
|
table.page( page - 1 ).draw( false );
|
|
|
|
// Object { page: 0, pages: 3, start: 0, end: 10, length: 10, recordsTotal: 28, recordsDisplay: 21, serverSide: false }
|
|
|
|
var info = table.page.info();
|
|
|
|
this.searchUtils.totalResults = info.recordsDisplay;
|
2017-12-19 13:53:46 +01:00
|
|
|
|
|
|
|
var urlParameters = this.createUrlParameters(this.filters,true);
|
|
|
|
this.location.go(location.pathname,urlParameters);
|
2018-01-11 11:55:54 +01:00
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
filterChanged($event){
|
2018-01-11 11:55:54 +01:00
|
|
|
this.goTo(1);
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
|
|
|
keywordChanged($event) {
|
|
|
|
this.searchUtils.keyword = $event.value;
|
2018-01-11 11:55:54 +01:00
|
|
|
this.goTo(1);
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
|
|
|
/*
|
|
|
|
downloadClicked($event) {
|
|
|
|
if($event.value == true) {
|
|
|
|
var queryParameters = this.createSearchQueryParameters(this.filters);
|
|
|
|
|
|
|
|
this.downloadClick.emit({
|
|
|
|
value: queryParameters
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
getSelectedValues(filter):any{
|
|
|
|
var selected = [];
|
|
|
|
if(filter.countSelectedValues >0){
|
|
|
|
for (var i=0; i < filter.values.length; i++){
|
|
|
|
if(filter.values[i].selected){
|
|
|
|
selected.push(filter.values[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return selected;
|
|
|
|
|
|
|
|
}
|
2018-01-11 11:55:54 +01:00
|
|
|
/*
|
|
|
|
Trigger a table draw in order to get the initial filtering
|
|
|
|
*/
|
|
|
|
triggerInitialLoad(){
|
|
|
|
setTimeout(function(){
|
|
|
|
var table = $('#dpTable').DataTable();
|
|
|
|
table.page( 0 ).draw( false );
|
2018-01-03 14:12:31 +01:00
|
|
|
|
2018-01-11 11:55:54 +01:00
|
|
|
}, 500);
|
|
|
|
}
|
2018-01-03 14:12:31 +01:00
|
|
|
|
2018-01-11 11:55:54 +01:00
|
|
|
/*
|
|
|
|
Transform initial - not filtered results to get the filtered number
|
|
|
|
*/
|
|
|
|
transform(results): any {
|
|
|
|
if(results.length > 0) {
|
2018-01-03 14:12:31 +01:00
|
|
|
var errorCodes:ErrorCodes = new ErrorCodes();
|
|
|
|
this.searchUtils.status = errorCodes.LOADING;
|
|
|
|
|
2018-01-11 11:55:54 +01:00
|
|
|
var result = results.filter(row=>this.filterAll(row, this.searchUtils.keyword.toLowerCase(),this.filters));
|
2018-01-03 14:12:31 +01:00
|
|
|
|
|
|
|
let oldTotal = this.searchUtils.totalResults;
|
2018-01-11 11:55:54 +01:00
|
|
|
console.log(" Length: "+result.length);
|
2018-01-03 14:12:31 +01:00
|
|
|
this.searchUtils.totalResults = result.length;
|
|
|
|
|
|
|
|
var errorCodes:ErrorCodes = new ErrorCodes();
|
|
|
|
this.searchUtils.status = errorCodes.DONE;
|
|
|
|
if(this.searchUtils.totalResults == 0 ){
|
|
|
|
this.searchUtils.status = errorCodes.NONE;
|
|
|
|
}
|
|
|
|
|
|
|
|
// if(oldTotal != this.searchUtils.totalResults) {
|
|
|
|
// args[3].detectChanges();
|
|
|
|
// }
|
2018-01-11 11:55:54 +01:00
|
|
|
return result;
|
2018-01-03 14:12:31 +01:00
|
|
|
}
|
2018-01-11 11:55:54 +01:00
|
|
|
return [];
|
2018-01-03 14:12:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
filterAll(row: any, query: string, filters:Filter[]) {
|
2018-01-11 11:55:54 +01:00
|
|
|
// console.log(row);
|
2018-01-03 14:12:31 +01:00
|
|
|
let returnValue: boolean = false;
|
|
|
|
|
|
|
|
if(query) {
|
|
|
|
if(row.title.name.toLowerCase().indexOf(query) > -1) {
|
|
|
|
returnValue = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(row.type.toLowerCase().indexOf(query) > -1) {
|
|
|
|
returnValue = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(row.countries && row.countries.length > 0) {
|
|
|
|
for(let country of row.countries) {
|
|
|
|
if(country.toLowerCase().indexOf(query) > -1) {
|
|
|
|
returnValue = true;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(row.compatibility && row.compatibility.toLowerCase().indexOf(query) > -1) {
|
|
|
|
returnValue = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(row.organizations && row.organizations.length > 0) {
|
|
|
|
for(let organization of row.organizations) {
|
|
|
|
if(organization.name.toLowerCase().indexOf(query) > -1) {
|
|
|
|
returnValue = true;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(!returnValue) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for (let filter of filters){
|
|
|
|
if(filter.countSelectedValues > 0){
|
|
|
|
for (let value of filter.values){
|
|
|
|
if(value.selected == true){
|
|
|
|
|
|
|
|
// make it generic in future commit
|
|
|
|
let field:string = "";
|
|
|
|
if(filter.title == "Type") {
|
|
|
|
field = "type";
|
|
|
|
} else if(filter.title == "Compatibility Level") {
|
|
|
|
field = "compatibility";
|
|
|
|
}
|
|
|
|
|
|
|
|
if(row[field] == value.name) {
|
|
|
|
returnValue = true;
|
|
|
|
if(filter.filterOperator == "or") {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if(filter.filterOperator == "and") {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
returnValue = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(!returnValue) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-11 11:55:54 +01:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
filterQuery(data, query){
|
|
|
|
if(data.toLowerCase().indexOf(query.toLowerCase()) > -1){
|
|
|
|
return true;
|
|
|
|
}else{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
filterData(row: any, query: string, filters:Filter[]) {
|
|
|
|
|
|
|
|
|
|
|
|
let returnValue: boolean = false;
|
|
|
|
|
|
|
|
if(query) {
|
|
|
|
for(var i=0; i <5; i++){
|
|
|
|
var r= this.filterQuery(row[i], query);
|
|
|
|
// console.log(query+" "+ row+" "+r);
|
|
|
|
if(r) {
|
|
|
|
returnValue = true;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(!returnValue) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for (let filter of filters){
|
|
|
|
if(filter.countSelectedValues > 0){
|
|
|
|
for (let value of filter.values){
|
|
|
|
if(value.selected == true){
|
|
|
|
let field = 1;
|
|
|
|
if(filter.title == "Type") {
|
|
|
|
field = 1;
|
|
|
|
} else if(filter.title == "Compatibility Level") {
|
|
|
|
field = 4;
|
|
|
|
}
|
|
|
|
r= this.filterQuery(row[field], value.name);
|
|
|
|
if(r) {
|
|
|
|
returnValue = true;
|
|
|
|
if(filter.filterOperator == "or") {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if(filter.filterOperator == "and") {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
returnValue = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(!returnValue) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-03 14:12:31 +01:00
|
|
|
return true;
|
|
|
|
}
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|