diff --git a/portal-2/src/app/app-routing.module.ts b/portal-2/src/app/app-routing.module.ts
index df9cbd5f..ce5419e6 100644
--- a/portal-2/src/app/app-routing.module.ts
+++ b/portal-2/src/app/app-routing.module.ts
@@ -119,6 +119,10 @@ export function getLinkingModule() {
return System.import('./claims/linking/linking.module' + (process.env.AOT ? '.ngfactory' : ''))
.then(mod => mod[(process.env.AOT ? 'LinkingModuleNgFactory' : 'LinkingModule')]);
}
+export function getBulkLinkingModule() {
+ return System.import('./claims/linking/bulkLinking.module' + (process.env.AOT ? '.ngfactory' : ''))
+ .then(mod => mod[(process.env.AOT ? 'BulkLinkingModuleNgFactory' : 'BulkLinkingModule')]);
+}
@NgModule({
imports: [
RouterModule.forChild([
@@ -151,7 +155,10 @@ export function getLinkingModule() {
{ path: 'project-report', loadChildren: gethtmlProjectReportModule },
{ path: 'myclaims', loadChildren: getMyClaimsModule },
{ path: 'claims', loadChildren: getClaimsAdminModule },
- { path: 'linking', loadChildren: getLinkingModule }
+ { path: 'bulk-linking', loadChildren: getBulkLinkingModule },
+ { path: 'linking', loadChildren: getLinkingModule },
+
+
diff --git a/portal-2/src/app/claims/claim-utils/displayClaims/displayClaims.component.ts b/portal-2/src/app/claims/claim-utils/displayClaims/displayClaims.component.ts
index b7a78410..5ca26bf6 100644
--- a/portal-2/src/app/claims/claim-utils/displayClaims/displayClaims.component.ts
+++ b/portal-2/src/app/claims/claim-utils/displayClaims/displayClaims.component.ts
@@ -423,12 +423,12 @@ export class DisplayClaimsComponent {
deleteById(id:string){
- console.warn("Deleting claim with id:"+id);
+ console.log("Deleting claim with id:"+id);
// this._claimService.deleteClaimById(id);
this._claimService.deleteClaimById(id).subscribe(
res => {
- console.info('Delete response'+res.code );
- console.warn("Deleted claim with id:"+ id);
+ console.log('Delete response'+res.code );
+ console.log("Deleted claim with id:"+ id);
//remove this claim from the
let newClaims=this.claims;
for (var _i = 0; _i < this.claims.length; _i++) {
diff --git a/portal-2/src/app/claims/claim-utils/entityFormatter/claimEntityFormatter.module.ts b/portal-2/src/app/claims/claim-utils/entityFormatter/claimEntityFormatter.module.ts
index 3053559e..01a1d0ac 100644
--- a/portal-2/src/app/claims/claim-utils/entityFormatter/claimEntityFormatter.module.ts
+++ b/portal-2/src/app/claims/claim-utils/entityFormatter/claimEntityFormatter.module.ts
@@ -1,14 +1,15 @@
import { NgModule} from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
-
+import { RouterModule } from '@angular/router';
+
import {ProjectTitleFormatter} from './projectTitleFormatter.component';
import {PublicationTitleFormatter} from './publicationTitleFormatter.component';
import {ClaimEntityFormatter} from './claimEntityFormatter.component';
@NgModule({
imports: [
- CommonModule
+ CommonModule, RouterModule
],
declarations: [
ProjectTitleFormatter, PublicationTitleFormatter, ClaimEntityFormatter
diff --git a/portal-2/src/app/claims/claim-utils/entityFormatter/projectTitleFormatter.component.ts b/portal-2/src/app/claims/claim-utils/entityFormatter/projectTitleFormatter.component.ts
index 77f8e38f..a6c56ba6 100644
--- a/portal-2/src/app/claims/claim-utils/entityFormatter/projectTitleFormatter.component.ts
+++ b/portal-2/src/app/claims/claim-utils/entityFormatter/projectTitleFormatter.component.ts
@@ -1,5 +1,6 @@
import {Component, Input} from '@angular/core';
import {OpenaireProperties} from '../../../utils/properties/openaireProperties';
+import {RouterHelper} from '../../../utils/routerHelper.class';
//Usage Example " "
@@ -7,7 +8,7 @@ import {OpenaireProperties} from '../../../utils/properties/openaireProperties';
selector: 'project-title',
template: `
`
})
@@ -15,6 +16,7 @@ import {OpenaireProperties} from '../../../utils/properties/openaireProperties';
export class ProjectTitleFormatter {
@Input() project: string[];
public url:string;
+ public routerHelper:RouterHelper = new RouterHelper();
constructor () {}
ngOnInit() {
diff --git a/portal-2/src/app/claims/claim-utils/entityFormatter/publicationTitleFormatter.component.ts b/portal-2/src/app/claims/claim-utils/entityFormatter/publicationTitleFormatter.component.ts
index 2c87c50a..f02d2226 100644
--- a/portal-2/src/app/claims/claim-utils/entityFormatter/publicationTitleFormatter.component.ts
+++ b/portal-2/src/app/claims/claim-utils/entityFormatter/publicationTitleFormatter.component.ts
@@ -6,7 +6,7 @@ import {Component, Input} from '@angular/core';
selector: 'publication-title',
template: `
`
diff --git a/portal-2/src/app/claims/linking/bulkClaim/bulkClaim.component.ts b/portal-2/src/app/claims/linking/bulkClaim/bulkClaim.component.ts
index c312e7a7..e820374c 100644
--- a/portal-2/src/app/claims/linking/bulkClaim/bulkClaim.component.ts
+++ b/portal-2/src/app/claims/linking/bulkClaim/bulkClaim.component.ts
@@ -8,37 +8,38 @@ import {Dates, DOI} from '../../../utils/string-utils.class';
@Component({
selector: 'bulk-claim',
template: `
-
- Upload a csv file containing DOIs. For each DOI found in file, metadata will be fetched from CrossRef.
- Available results can be linked with the selected Projects and Contexts.
-
More information
-
- CSV format:
-
- The format of CSV file should be "DOI","ACCESS_MODE","DATE".
- Access mode column should have values: "OPEN","CLOSED" or "EMBARGO".
- Date column valid format is YYYY-MM-DD and is required when access mode has value EMBARGO.
- In case access mode is not available default value is "OPEN".
-
-
-
-
+
Upload
+
+
+
+
Upload information:
+ Upload a csv file containing a list of DOIs. For each DOI found in the file, metadata will be fetched from CrossRef.
+ Available results will be linked with the selected Projects and Contexts.
+
+
+ CSV format:
+
+ The format of CSV file should be "DOI","ACCESS_MODE","DATE".
+ The value "DOI" is required
+ Access mode column should have values: "OPEN","CLOSED" or "EMBARGO".
+ Date column valid format is YYYY-MM-DD and is required when access mode has value EMBARGO.
+ In case access mode is not available default value is "OPEN".
+
+
+
+
+
{{all}} rows found in file.
{{found}} results fetched from CrossRef.
0" [title] = "'Duplicate DOIs: '+ duplicateIds.join()">{{duplicate}} DOIs were duplicates.
0" [title] = "'Not found DOIs: '+ notFoundIds.join()" >{{notFound}} DOIs not found in crossref. ({{notFoundIds.join()}})
- Please make sure you are using the right format for he csv file...
+ Please make sure you are using the right format for the csv file...
-
0 " class="alert alert-danger" role="alert">{{errorMessage}}
+
0 " class="uk-alert uk-alert-danger" role="alert">{{errorMessage}}
`
diff --git a/portal-2/src/app/claims/linking/bulkLinking-routing.module.ts b/portal-2/src/app/claims/linking/bulkLinking-routing.module.ts
new file mode 100644
index 00000000..c90954f4
--- /dev/null
+++ b/portal-2/src/app/claims/linking/bulkLinking-routing.module.ts
@@ -0,0 +1,14 @@
+import { NgModule } from '@angular/core';
+import { RouterModule } from '@angular/router';
+
+import { BulkLinkingComponent } from './bulkLinking.component';
+
+@NgModule({
+ imports: [
+ RouterModule.forChild([
+ { path: '', component: BulkLinkingComponent},
+
+ ])
+ ]
+})
+export class BulkLinkingRoutingModule { }
diff --git a/portal-2/src/app/claims/linking/bulkLinking.module.ts b/portal-2/src/app/claims/linking/bulkLinking.module.ts
new file mode 100644
index 00000000..97a14111
--- /dev/null
+++ b/portal-2/src/app/claims/linking/bulkLinking.module.ts
@@ -0,0 +1,20 @@
+import { NgModule } from '@angular/core';
+
+import { SharedModule } from '../../shared/shared.module';
+import { BulkLinkingComponent } from './bulkLinking.component';
+import { BulkLinkingRoutingModule } from './bulkLinking-routing.module';
+import {LinkingGenericModule} from './linkingGeneric.module';
+import {BulkClaimModule} from './bulkClaim/bulkClaim.module';
+@NgModule({
+ imports: [
+ SharedModule,
+ BulkLinkingRoutingModule,
+ LinkingGenericModule,
+ BulkClaimModule
+
+ ],
+ declarations: [
+ BulkLinkingComponent
+ ], exports:[BulkLinkingComponent]
+})
+export class BulkLinkingModule { }
diff --git a/portal-2/src/app/claims/linking/insertClaim/insertClaim.component.ts b/portal-2/src/app/claims/linking/insertClaim/insertClaim.component.ts
index ffe43e1a..75c6ef29 100644
--- a/portal-2/src/app/claims/linking/insertClaim/insertClaim.component.ts
+++ b/portal-2/src/app/claims/linking/insertClaim/insertClaim.component.ts
@@ -206,7 +206,7 @@ private validateDates(){
}
private afterclaimsInsertion(insertedIds, errorInClaims){
this.loading.close();
- if(errorInClaims.length == 0){
+ if(errorInClaims.length == 0 && insertedIds.length > 0 ){
if(this.inline){
this.show = "end";
}else{
diff --git a/portal-2/src/app/claims/linking/linkingGeneric.component.ts b/portal-2/src/app/claims/linking/linkingGeneric.component.ts
index 0b239459..2fac7d80 100644
--- a/portal-2/src/app/claims/linking/linkingGeneric.component.ts
+++ b/portal-2/src/app/claims/linking/linkingGeneric.component.ts
@@ -6,9 +6,11 @@ import { Router } from '@angular/router';
selector: 'linking-generic',
//providers: [MdRadioDispatcher],
template: `
-
+
@@ -24,47 +26,39 @@ import { Router } from '@angular/router';
@@ -83,12 +77,12 @@ import { Router } from '@angular/router';
-
-
diff --git a/portal-2/src/app/claims/linking/linkingHome.component.ts b/portal-2/src/app/claims/linking/linkingHome.component.ts
index 834ccede..5c8348ae 100644
--- a/portal-2/src/app/claims/linking/linkingHome.component.ts
+++ b/portal-2/src/app/claims/linking/linkingHome.component.ts
@@ -5,33 +5,36 @@ import {Observable} from 'rxjs/Observable';
selector: 'linking-home',
template: `
-
-
-
-
Link with project
-
Link your research result with funded projects.
-
Link with project
-
+
+
-
-
-
Bulk mode linking
+
+
+
+
+
+
+
`
diff --git a/portal-2/src/app/claims/linking/selected/selectedContexts.component.ts b/portal-2/src/app/claims/linking/selected/selectedContexts.component.ts
index fbd28d61..eec56938 100644
--- a/portal-2/src/app/claims/linking/selected/selectedContexts.component.ts
+++ b/portal-2/src/app/claims/linking/selected/selectedContexts.component.ts
@@ -7,7 +7,7 @@ import {ClaimContext} from '../../claim-utils/claimEntities.class';
-
Concepts ({{(contexts.length)}})
+ Concepts ({{(contexts.length)}})
diff --git a/portal-2/src/app/claims/linking/selected/selectedDatasets.component.ts b/portal-2/src/app/claims/linking/selected/selectedDatasets.component.ts
index 084fd3b3..f4299b7b 100644
--- a/portal-2/src/app/claims/linking/selected/selectedDatasets.component.ts
+++ b/portal-2/src/app/claims/linking/selected/selectedDatasets.component.ts
@@ -6,7 +6,7 @@ import {ClaimResult} from '../../claim-utils/claimEntities.class';
template: `
-
Research Data ({{(datasets.length)}})
+
Research Data ({{(datasets.length)}})
+
Publisher: {{pub.result.publisher}}
+
0" class="uk-article-meta">Authors: {{author.family}} {{author.given}}{{(i < (pub.result.author.length-1))?"; ":""}}
+
Editors: {{author.family}} {{author.given}}{{(i < (pub.result.editor.length-1))?"; ":""}}
+
+
+
0 " class="uk-article-meta">Authors: {{author.name}}{{(i < (pub.result.authors.length-1))?"; ":""}}
+
+
+
Journal: {{pub.result['journal-title'].value}}
+
0" class="uk-article-meta">Authors: {{author}}{{(i < (pub.result.contributors.length-1))?"; ":""}}
+
+
-
+
{{type}}
-
-
-
+
{{pub.accessRights}}
diff --git a/portal-2/src/app/searchPages/simple/searchPublications.component.ts b/portal-2/src/app/searchPages/simple/searchPublications.component.ts
index 8be4f19a..1bfffae1 100644
--- a/portal-2/src/app/searchPages/simple/searchPublications.component.ts
+++ b/portal-2/src/app/searchPages/simple/searchPublications.component.ts
@@ -234,7 +234,7 @@ private _getResults(parameters:string,refine:boolean, page: number, size: number
}
public getAggregatorResults(id:string, page: number, size: number){
- this.subResults = this._searchPublicationsService.searchAggregators('&fq=collectedfromdatasourceid exact "'+id+'"',"&refine=true&fields=resulthostingdatasourceid" , page, size).subscribe(
+ this.subResults = this._searchPublicationsService.searchAggregators('&fq=collectedfromdatasourceid exact "'+id+'"',"&refine=true&fields=resulthostingdatasource" , page, size).subscribe(
data => {
this.results = data;
diff --git a/portal-2/src/app/services/searchPublications.service.ts b/portal-2/src/app/services/searchPublications.service.ts
index 7d232f65..479ca305 100644
--- a/portal-2/src/app/services/searchPublications.service.ts
+++ b/portal-2/src/app/services/searchPublications.service.ts
@@ -380,15 +380,15 @@ export class SearchPublicationsService {
parseRefineResults(data: any): any {
var results:any = [];
- if(data.hasOwnProperty("resulthostingdatasourceid")) {
- let length = Array.isArray(data['resulthostingdatasourceid']) ? data['resulthostingdatasourceid'].length : 1;
+ if(data.hasOwnProperty("resulthostingdatasource")) {
+ let length = Array.isArray(data['resulthostingdatasource']) ? data['resulthostingdatasource'].length : 1;
for(let i=0; i
+
+ Linking
+
+
+
+
diff --git a/portal-2/src/app/utils/fetchEntitiesClasses/fetchPublications.class.ts b/portal-2/src/app/utils/fetchEntitiesClasses/fetchPublications.class.ts
index d95f6a21..216d72f5 100644
--- a/portal-2/src/app/utils/fetchEntitiesClasses/fetchPublications.class.ts
+++ b/portal-2/src/app/utils/fetchEntitiesClasses/fetchPublications.class.ts
@@ -180,7 +180,7 @@ public getResultsForDataproviders(id:string, resultsFrom:string, page: number, s
}
public getAggregatorResults(id:string, page: number, size: number){
- this.subResults = this._searchPublicationsService.searchAggregators('&fq=collectedfromdatasourceid exact "'+id+'"',"&refine=true&fields=resulthostingdatasourceid" , page, size).subscribe(
+ this.subResults = this._searchPublicationsService.searchAggregators('&fq=collectedfromdatasourceid exact "'+id+'"',"&refine=true&fields=resulthostingdatasource" , page, size).subscribe(
data => {
this.results = data;