diff --git a/claims/claim-utils/entityFormatter/publicationTitleFormatter.component.ts b/claims/claim-utils/entityFormatter/publicationTitleFormatter.component.ts
index 321e440d..8991097b 100644
--- a/claims/claim-utils/entityFormatter/publicationTitleFormatter.component.ts
+++ b/claims/claim-utils/entityFormatter/publicationTitleFormatter.component.ts
@@ -1,4 +1,5 @@
import {Component, Input} from '@angular/core';
+import {RouterHelper} from '../../../utils/routerHelper.class';
//Usage Example "
"
@@ -6,16 +7,21 @@ import {Component, Input} from '@angular/core';
selector: 'publication-title',
template: `
- {{title}}
- {{title}}
-
+
+
{{title}}
+
+
`
})
export class PublicationTitleFormatter {
- @Input() title: string[];
- @Input() url: string[];
-
+ @Input() title: string;
+ @Input() url: string;
+ @Input() id: string;
+ @Input() param: string;
+ @Input() path: string;
+ public routerHelper:RouterHelper = new RouterHelper();
constructor () {}
ngOnInit() {
diff --git a/searchPages/searchUtils/browseStatistic.component.html b/searchPages/searchUtils/browseStatistic.component.html
index f97f1177..ba8b952c 100644
--- a/searchPages/searchUtils/browseStatistic.component.html
+++ b/searchPages/searchUtils/browseStatistic.component.html
@@ -42,11 +42,22 @@
{{filter.title}}
+
+
+
+
+
diff --git a/searchPages/searchUtils/browseStatistic.component.ts b/searchPages/searchUtils/browseStatistic.component.ts
index 1505e67b..6d9f0b35 100644
--- a/searchPages/searchUtils/browseStatistic.component.ts
+++ b/searchPages/searchUtils/browseStatistic.component.ts
@@ -24,6 +24,8 @@ export class BrowseStatisticComponent {
private _maxCharacters = 30;
public viewAll = false;
public routerHelper:RouterHelper = new RouterHelper();
+ keyword = "";
+ sortBy = "num";
constructor () {
}
@@ -40,5 +42,35 @@ export class BrowseStatisticComponent {
private _formatName(value){
return value.name+" ";//(((value.name+" ("+value.number+")").length >this._maxCharacters)?(value.name.substring(0,(this._maxCharacters - (" ("+value.number+")").length - ('...').length))+"..."):value.name)
}
+ filterKeywords(value){
+ if(this.keyword.length > 0){
+ if(value.toLowerCase().indexOf(this.keyword.toLowerCase()) ==-1){
+ return false;
+ }
+ }
+ return true;
+ }
+ getValues(filter, sortBy:string = "num"):any{
+
+ if(sortBy == "name"){
+ var array = filter.values.slice();
+ array.sort((n1,n2)=> {
+ if (n1.name > n2.name) {
+ return 1;
+ }
+
+ if (n1.name < n2.name) {
+ return -1;
+ }
+
+ return 0;
+ });
+ return array;
+ }else{
+ return filter.values;
+ }
+
+
+ }
}
diff --git a/searchPages/searchUtils/searchDownload.component.ts b/searchPages/searchUtils/searchDownload.component.ts
index 5fda861a..e73e093e 100644
--- a/searchPages/searchUtils/searchDownload.component.ts
+++ b/searchPages/searchUtils/searchDownload.component.ts
@@ -10,12 +10,12 @@ import{EnvProperties} from '../../utils/properties/env-properties';
@Component({
selector: 'search-download',
template: `
-