[Trunk|Library]: Dataprovider landing page - service: remove prints from latest commit.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@55141 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
c88685cdaf
commit
8a57af2865
|
@ -74,23 +74,18 @@ export class DataProviderService {
|
||||||
var originalIds =(data[0].originalId)?data[0].originalId:"";
|
var originalIds =(data[0].originalId)?data[0].originalId:"";
|
||||||
|
|
||||||
let length = Array.isArray(originalIds) ? originalIds.length : 1;
|
let length = Array.isArray(originalIds) ? originalIds.length : 1;
|
||||||
console.info("originalIds: "+originalIds);
|
|
||||||
|
|
||||||
for(let i=0; i<length; i++) {
|
for(let i=0; i<length; i++) {
|
||||||
var originalId = Array.isArray(originalIds) ? originalIds[i] : originalIds;
|
var originalId = Array.isArray(originalIds) ? originalIds[i] : originalIds;
|
||||||
console.info("originalId: "+originalId);
|
|
||||||
var matched = originalId.match(pattern);
|
var matched = originalId.match(pattern);
|
||||||
//var result = str.substring(14);
|
|
||||||
if(matched && originalId && originalId != ""){
|
if(matched && originalId && originalId != ""){
|
||||||
if(originalId.indexOf("opendoar____::") != -1){
|
if(originalId.indexOf("opendoar____::") != -1){
|
||||||
this.dataProviderInfo.openDoarId = originalId.split("opendoar____::")[1];
|
this.dataProviderInfo.openDoarId = originalId.split("opendoar____::")[1];
|
||||||
console.info("openDoarId: "+this.dataProviderInfo.openDoarId);
|
|
||||||
}else if (originalId.indexOf("re3data_____::") != -1){
|
}else if (originalId.indexOf("re3data_____::") != -1){
|
||||||
this.dataProviderInfo.r3DataId = originalId.split("re3data_____::")[1];
|
this.dataProviderInfo.r3DataId = originalId.split("re3data_____::")[1];
|
||||||
console.info("r3DataId: "+this.dataProviderInfo.r3DataId);
|
|
||||||
}
|
}
|
||||||
this.dataProviderInfo.originalId = originalId;
|
this.dataProviderInfo.originalId = originalId;
|
||||||
console.info("this.dataProviderInfo.originalId: "+this.dataProviderInfo.originalId);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue