-
-
-
-
-
-
0) && (totalPages > 1) && ( 0 < page && page <= totalPages )) " >
-
-
+
+
+
+
+
+
+
+
0">
+
{{crossrefResultsNum }} Total Results
+
+
+
+
+
-
0">
-
{{item['work-title']['title'].value}} ({{item['publication-date']['year'].value}})
+
TODO put openaire results here...
+
+
+
+
No authors found for keyword: {{keyword}}
+
+
+
Not the right author? Choose one of these:
+
+
+
+
+
+
+
+
+
+
+
+
0) && (totalPages > 1) && ( 0 < page && page <= totalPages )) " >
+
+
+
+
+
0">
+
{{item['work-title']['title'].value}} ({{item['publication-date']['year'].value}})
+
-
+
diff --git a/src/app/linking/claimPublication/claimPublication.component.ts b/src/app/linking/claimPublication/claimPublication.component.ts
index dd407131..6456c14e 100644
--- a/src/app/linking/claimPublication/claimPublication.component.ts
+++ b/src/app/linking/claimPublication/claimPublication.component.ts
@@ -174,10 +174,11 @@ search(term: string, size : number, page : number){
var result ={id: item.DOI, type :itemType, source : itemSource, title: itemTitle,url: itemUrl, result: item, accessRights: 'OPEN', embargoEndDate:''};
console.info("Add result:"+result.id+" "+result.source+" "+item);
this.selectedPublications.push(result);
- var index:number =this.crossrefResults.indexOf(item);
- if (index > -1) {
- this.crossrefResults.splice(index, 1);
- }
+ //do not remove it from the list
+ // var index:number =this.crossrefResults.indexOf(item);
+ // if (index > -1) {
+ // this.crossrefResults.splice(index, 1);
+ // }
this.publicationsChange.emit({
value: this.selectedPublications
});
@@ -202,4 +203,13 @@ search(term: string, size : number, page : number){
this.orcidResultsToShow=[];
this.orcidResultsToShow = this.orcidResults.slice(($event.value-1)*this.size, $event.value*this.size);
}
+
+ isSelected(item){
+ var index:number =this.selectedPublications.indexOf(item);
+ if (index > -1) {
+ return true;
+ }else{
+ return false;
+ }
+ }
}
diff --git a/src/app/linking/linking.component.ts b/src/app/linking/linking.component.ts
index 65823dc8..acca5542 100644
--- a/src/app/linking/linking.component.ts
+++ b/src/app/linking/linking.component.ts
@@ -8,32 +8,58 @@ import {ClaimDatasetComponent} from './claimDataset/claimDataset.component';
import {ClaimSelectedComponent} from './selected/selected.component';
import {ClaimInsertComponent} from './insertClaim/insertClaim.component';
import {ClaimProjectsComponent} from './claimProject/claimProject.component';
+// import { MD_RADIO_DIRECTIVES, MdRadioDispatcher } from '@angular2-material/radio';
+// import { MD_INPUT_DIRECTIVES } from '@angular2-material/input';
+
+
@Component({
selector: 'linking',
+ //providers: [MdRadioDispatcher],
directives: [ROUTER_DIRECTIVES, ClaimContextComponent, ClaimPublicationComponent, ClaimSelectedComponent, ClaimInsertComponent,ClaimDatasetComponent, ClaimProjectsComponent],
template: `
-
Linking...
+
Linking Research Results