remove queries unused queries for funders in home
remove unused assets
|
@ -144,7 +144,7 @@ export class HomeComponent {
|
||||||
this.showSoftware, this.showOrp, this.showProjects, this.showDataProviders, this.customFilter ?
|
this.showSoftware, this.showOrp, this.showProjects, this.showDataProviders, this.customFilter ?
|
||||||
StringUtils.URIEncode(this.customFilter.queryFieldName + " exact " + StringUtils.quote((this.customFilter.valueId))) : '');
|
StringUtils.URIEncode(this.customFilter.queryFieldName + " exact " + StringUtils.quote((this.customFilter.valueId))) : '');
|
||||||
}
|
}
|
||||||
this.getFunders();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
|
@ -226,61 +226,6 @@ export class HomeComponent {
|
||||||
return params;
|
return params;
|
||||||
}
|
}
|
||||||
|
|
||||||
getFunders() {
|
|
||||||
let refineParams1 = '&fq=country%20exact%20%22CA%22';
|
|
||||||
let refineParams2 = '&fq=resultbestaccessright%20exact%20%22Open%20Access%22&fq=country%20exact%20%22CA%22%20';
|
|
||||||
this.subs.push(zip(
|
|
||||||
this._refineFieldResultsService.getRefineFieldsResultsByEntityName(['relfunder'], 'result', this.properties, refineParams1),
|
|
||||||
this._refineFieldResultsService.getRefineFieldsResultsByEntityName(['relfunder'], 'result', this.properties, refineParams2)
|
|
||||||
).subscribe((data: any[]) => {
|
|
||||||
let queriedFunders1 = data[0][1][0].values;
|
|
||||||
queriedFunders1.forEach(queriedFunder => {
|
|
||||||
if(queriedFunder.id.includes('nserc')) {
|
|
||||||
this.funders.push({
|
|
||||||
"id": queriedFunder.id,
|
|
||||||
"name": queriedFunder.name,
|
|
||||||
"publications": queriedFunder.number,
|
|
||||||
"openAccessPublications": null,
|
|
||||||
"logo": 'assets/nserc_logo.png',
|
|
||||||
"params": {
|
|
||||||
relfunder: '"'+encodeURIComponent(queriedFunder.id)+'"'
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else if(queriedFunder.id.includes('cihr')) {
|
|
||||||
this.funders.push({
|
|
||||||
"id": queriedFunder.id,
|
|
||||||
"name": queriedFunder.name,
|
|
||||||
"publications": queriedFunder.number,
|
|
||||||
"openAccessPublications": null,
|
|
||||||
"logo": 'assets/cihr_logo.png',
|
|
||||||
"params": {
|
|
||||||
relfunder: '"'+encodeURIComponent(queriedFunder.id)+'"'
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else if(queriedFunder.id.includes('sshrc')) {
|
|
||||||
this.funders.push({
|
|
||||||
"id": queriedFunder.id,
|
|
||||||
"name": queriedFunder.name,
|
|
||||||
"publications": queriedFunder.number,
|
|
||||||
"openAccessPublications": null,
|
|
||||||
"logo": 'assets/sshrc_logo.png',
|
|
||||||
"params": {
|
|
||||||
relfunder: '"'+encodeURIComponent(queriedFunder.id)+'"'
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
let queriedFunders2 = data[1][1][0].values;
|
|
||||||
queriedFunders2.forEach(queriedFunder => {
|
|
||||||
for(let funder of this.funders) {
|
|
||||||
if(queriedFunder.id == funder.id) {
|
|
||||||
funder.openAccessPublications = queriedFunder.number;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// console.log(this.funders);
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
|
|
||||||
isRouteAvailable(routeToCheck: string) {
|
isRouteAvailable(routeToCheck: string) {
|
||||||
for (let i = 0; i < this._router.config.length; i++) {
|
for (let i = 0; i < this._router.config.length; i++) {
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 70.876 70.876"><defs><style>.a{fill:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:3px;}.a,.b{stroke:#d95f2d;}.b{fill:#d95f2d;stroke-width:2px;}</style></defs><g transform="translate(-1000.9 -961.038)"><g transform="translate(1002.4 962.538)"><path class="a" d="M1036.338,1914.9a33.938,33.938,0,1,1-33.938,33.938A33.923,33.923,0,0,1,1036.338,1914.9Z" transform="translate(-1002.4 -1914.9)"/></g><path class="b" d="M1033.929,975.9a10.839,10.839,0,0,0-10.829,10.829.839.839,0,0,0,1.675.112h0a9.154,9.154,0,1,1,18.308,0,10.223,10.223,0,0,1-3.238,7.256,58.886,58.886,0,0,1-6.475,5.359.8.8,0,0,0-.335.67v6.587a.839.839,0,1,0,1.674.112h0v-6.252a53.715,53.715,0,0,0,6.252-5.247,12.159,12.159,0,0,0,3.684-8.373A10.66,10.66,0,0,0,1033.929,975.9Z" transform="translate(2.409 0.327)"/><circle class="b" cx="1.675" cy="1.675" r="1.675" transform="translate(1034.663 1013.514)"/></g></svg>
|
|
Before Width: | Height: | Size: 964 B |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 189 KiB |
Before Width: | Height: | Size: 420 KiB |
|
@ -1 +0,0 @@
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72.3 64.727"><defs><style>.a{fill:#fff;}.a,.b{stroke:#d95f2d;stroke-linecap:round;stroke-miterlimit:10;stroke-width:3px;}.b{fill:none;}</style></defs><g transform="translate(1 1)"><circle class="a" cx="14.574" cy="14.574" r="14.574" transform="translate(0.5 33.078)"/><circle class="a" cx="14.574" cy="14.574" r="14.574" transform="translate(40.508 33.078)"/><line class="b" x2="10.717" transform="translate(29.792 47.653)"/><path class="b" d="M51.788,47.653V9.788L42.5.5" transform="translate(18.012)"/><path class="b" d="M.5,48.081V9.788L9.788.5"/></g></svg>
|
|
Before Width: | Height: | Size: 613 B |
|
@ -1 +0,0 @@
|
||||||
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg width="20px" height="20px" id="els2_x5F_basic" style="enable-background:new 0 0 40 40;" version="1.1" viewBox="0 0 40 40" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M29.688,17H10.294c-1.817,0-3.3,1.482-3.3,3.298 v12.381c0,1.817,1.482,3.299,3.3,3.299h19.395c1.817,0,3.3-1.482,3.3-3.299V20.298C32.988,18.482,31.506,17,29.688,17z" style="fill:none;stroke:#999999;stroke-width:1.33;stroke-miterlimit:10;"/><path d="M28,17v-6.094C28,6.558,24.4,3,20,3 s-8,3.558-8,7.906V17" style="fill:none;stroke:#999999;stroke-width:1.33;stroke-miterlimit:10;"/><line style="fill:none;stroke:#999999;stroke-width:1.33;stroke-linecap:round;stroke-miterlimit:10;" x1="20" x2="20" y1="23" y2="30"/></svg>
|
|
Before Width: | Height: | Size: 878 B |
Before Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 331 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 9.0 KiB |