Skip to content

Commit

Permalink
add Access Level from CMS Navigator for HHS/hd2-drupal#131
Browse files Browse the repository at this point in the history
  • Loading branch information
zr2d2 committed Nov 14, 2014
1 parent ef8deae commit 0d72723
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/datajson/harvester_cmsdatanavigator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CmsDataNavigatorHarvester(DatasetHarvesterBase):
A Harvester for the CMS Data Navigator catalog.
'''

HARVESTER_VERSION = "0.9ao" # increment to force an update even if nothing has changed
HARVESTER_VERSION = "0.9ap" # increment to force an update even if nothing has changed

def info(self):
return {
Expand Down Expand Up @@ -43,6 +43,7 @@ def set_dataset_info(self, package, dataset, harvester_config):
extra(package, "Coverage Period", dataset_hd.get("Coverage Period"))
extra(package, "Collection Frequency", dataset_hd.get("Collection Frequency"))
extra(package, "Geographic Scope", dataset_hd.get("GeographicScope"))
extra(package, "Access Level", "restricted public" if dataset.get("RequiresCustomAccessForms") else "public")
#extra(package, "Contact Name", dataset_hd.get("GenericContactName", None) or dataset_hd.get("ContactName")) # 'X or Y' syntax returns Y if X is either None or the empty string
#extra(package, "Contact Email", dataset_hd.get("GenericContactEmail", None) or dataset_hd.get("ContactEmail"))
extra(package, "License Agreement", dataset_hd.get("DataLicenseAgreementURL"))
Expand Down

0 comments on commit 0d72723

Please sign in to comment.