[Connect|Trunk]

Add property showAddthis
Search Projects: 
	show static filters only if there are results
	add showOnly results and breadcrumb options

Search Projects: 
	add showOnly results and breadcrumb options



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@58554 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2020-04-27 08:22:46 +00:00
parent 17e7eb2d7f
commit 04b3bc4c72
6 changed files with 25 additions and 9 deletions

View File

@ -4,6 +4,7 @@
"enablePiwikTrack" : true,
"useCache" : true,
"showContent" : true,
"showAddThis" : false,
"metricsAPIURL" : "https://beta.services.openaire.eu/usagestats/",
"framesAPIURL" : "https://beta.openaire.eu/stats3/",
"statisticsAPIURL" : "https://beta.services.openaire.eu/stats-api/",

View File

@ -4,6 +4,7 @@
"enablePiwikTrack" : false,
"useCache" : true,
"showContent" : true,
"showAddThis" : false,
"metricsAPIURL" : "https://services.openaire.eu/usagestats/",
"framesAPIURL" : "https://www.openaire.eu/stats3/",
"statisticsAPIURL" : "https://services.openaire.eu/stats-api/",

View File

@ -25,7 +25,8 @@ import {PiwikHelper} from '../../utils/piwikHelper';
[enableSearchView]="enableSearchView"
searchFormClass="datasourcesTableSearchForm"
formPlaceholderText="Search for Content Providers"
[piwikSiteId]="piwikSiteId" [hasPrefix]="false" [customFilter]="customFilter" [enableEntitySelection]="true">
[piwikSiteId]="piwikSiteId" [hasPrefix]="false" [customFilter]="customFilter" [enableEntitySelection]="true"
[includeOnlyResultsAndFilter]="true" [showBreadcrumb]="true">
</search-page-table>
`

View File

@ -27,7 +27,8 @@ import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
[enableSearchView]="enableSearchView"
searchFormClass="projectsTableSearchForm"
formPlaceholderText="Search for Projects"
[piwikSiteId]="piwikSiteId" [hasPrefix]="false" [customFilter]="customFilter" [enableEntitySelection]="true">
[piwikSiteId]="piwikSiteId" [hasPrefix]="false" [customFilter]="customFilter" [enableEntitySelection]="true"
[includeOnlyResultsAndFilter]="true" [showBreadcrumb]="true">
</search-page-table>
`
@ -183,13 +184,24 @@ export class OpenaireSearchProjectsComponent {
var filters: Filter[] =[];
for(i =0 ; i < filter_names.length;i++){
var values:Value[] = [];
for(var j =0 ; j < value_names[i].length;j++){
var value:Value = {name: value_names[i][j], id: value_original_ids[i][j], number:j, selected:false}
values.push(value);
if(value_names[i].length > 0) {
var values: Value[] = [];
for (var j = 0; j < value_names[i].length; j++) {
var value: Value = {name: value_names[i][j], id: value_original_ids[i][j], number: j, selected: false}
values.push(value);
}
var filter: Filter = {
title: filter_names[i],
filterId: filter_ids[i],
originalFilterId: filter_original_ids[i],
values: values,
countSelectedValues: 0,
"filterOperator": 'or',
valueIsExact: true,
filterType: "checkbox"
};
filters.push(filter);
}
var filter:Filter = {title: filter_names[i], filterId: filter_ids[i], originalFilterId: filter_original_ids[i], values : values, countSelectedValues:0, "filterOperator": 'or', valueIsExact: true, filterType: "checkbox" };
filters.push(filter);
}
return filters;
}

View File

@ -10,7 +10,7 @@ import {PiwikHelper} from "../../utils/piwikHelper";
template: `
<search-research-results resultType="result" openaireLink="https://beta.explore.openaire.eu/search/find/publications"
[customFilter]=customFilter [piwikSiteId]="piwikSiteId" [hasPrefix]="false"
[includeOnlyResultsAndFilter]="true" [showBreadcrumb]="true"></search-research-results>
[includeOnlyResultsAndFilter]="true" [showBreadcrumb]="true" [showAdvancedSearchLink]="false"></search-research-results>
`
})

View File

@ -4,6 +4,7 @@
"enablePiwikTrack" : false,
"useCache" : false,
"showContent" : true,
"showAddThis" : false,
"metricsAPIURL" : "https://beta.services.openaire.eu/usagestats/",
"framesAPIURL" : "https://beta.openaire.eu/stats3/",
"statisticsAPIURL" : "https://beta.services.openaire.eu/stats-api/",