Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ali1k committed Jul 30, 2015
1 parent 3a25bd9 commit d035fd7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions services/utils/ResourceUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ class ResourceUtil{
//overwrite config with extension config
config[cp] = ex.config[cp];
}

}
});
}
Expand Down Expand Up @@ -121,7 +120,7 @@ class ResourceUtil{
let output=[], propIndex={}, finalOutput=[];
if(parsed.results.bindings.length){
parsed.results.bindings.forEach(function(el) {
config = {};
config = configurator.preparePropertyConfig(graphName, resourceURI, el.p.value);
if(el.p.value === 'http://purl.org/dc/terms/title'){
title = el.o.value;
}else if(el.p.value === 'http://www.w3.org/2000/01/rdf-schema#label'){
Expand All @@ -132,7 +131,10 @@ class ResourceUtil{
if(configExceptional && configExceptional.extensions){
configExceptional.extensions.forEach(function(ex){
if(ex.spec.propertyURI === el.p.value){
config = ex.config;
for(let cp in ex.config) {
//overwrite config with extension config
config[cp] = ex.config[cp];
}
}
});
}
Expand Down

0 comments on commit d035fd7

Please sign in to comment.