From 2b65e254f89d56454eba2b0d7f9baf179f79f53d Mon Sep 17 00:00:00 2001 From: Ahmad Assaf Date: Tue, 10 Feb 2015 21:43:26 +0100 Subject: [PATCH] adding license detection for enriched quality profiles by Roomba --- parsers/CKAN/profiler/profilers/quality/measures/licensing.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parsers/CKAN/profiler/profilers/quality/measures/licensing.js b/parsers/CKAN/profiler/profilers/quality/measures/licensing.js index ea93595..7362b7c 100644 --- a/parsers/CKAN/profiler/profilers/quality/measures/licensing.js +++ b/parsers/CKAN/profiler/profilers/quality/measures/licensing.js @@ -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) {