Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Commit

Permalink
Merge branch 'release-v33.11.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
mdellabitta committed Jun 7, 2017
2 parents db96901 + dc42bc5 commit 8d9b4ca
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
13 changes: 12 additions & 1 deletion lib/mappers/esdn_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,17 +273,28 @@ def map_relation(self):
def map_rights(self):
prop = self.root_key + "accessCondition"
rights = []
edm_rights = None
if exists(self.provider_data, prop):
for right in iterify(getprop(self.provider_data, prop)):
if isinstance(right, dict):
rights.append(right.get("#text"))
_type = getprop(right, "type", True)
if _type and _type == "use and reproduction":
edm_rights = right.get("xlink:href")
else:
rights.append(right.get("#text"))
elif isinstance(right, list):
for r in right:
rights.append(r)
else:
rights.append(right)
if rights:
self.update_source_resource({"rights": rights})
if edm_rights:
self.mapped_data.update({"rights": edm_rights})

def map_edm_rights(self):
# defer to map_rights for edm:rights implementation
pass

def map_subject_and_spatial_and_temporal(self):
prop = self.root_key + "subject"
Expand Down
1 change: 0 additions & 1 deletion profiles/esdn.pjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"HarrisonDigital",
"newburgh",
"hrvi",
"wp",
"cornpl",
"fdr",
"pipc",
Expand Down
2 changes: 1 addition & 1 deletion profiles/maryland.pjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "maryland",
"type": "oai_verbs",
"metadata_prefix": "oai_qdc",
"endpoint_url": "http://webconfig.digitalmaryland.org/oai/oai.php",
"endpoint_url": "http://collections.digitalmaryland.org/oai/oai.php",
"contributor": {
"@id": "http://dp.la/api/contributor/maryland",
"name": "Digital Maryland"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from distutils.core import setup

setup( name = 'ingestion',
version = '33.11.1',
version = '33.11.2',
description='DPLA Ingestion System',
author='Digital Public Library of America',
author_email='[email protected]',
Expand Down

0 comments on commit 8d9b4ca

Please sign in to comment.