Skip to content

Commit

Permalink
adding license detection for enriched quality profiles by Roomba
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadassaf committed Feb 10, 2015
1 parent ffa9c73 commit 2b65e25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions parsers/CKAN/profiler/profilers/quality/measures/licensing.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ function licensing(parent, dataset) {
var isLicenseURLDereferenceable = false, licenseErrors = 0;
var root = dataset.result ? dataset.result : dataset;

if (_.has(root, "license_information") && root.license_information)
profileTemplate.setQualityIndicatorScore("licensing", "QI.23", 0);

// Check if the dataset has a defined license URL
if (_.has(root, "license_url") && root.license_url) {
licensing.util.checkAddress(root.license_url, function(error, body, response) {
Expand Down

0 comments on commit 2b65e25

Please sign in to comment.