Skip to content
Browse files

Fixed bug in object transformation.

  • Loading branch information...
1 parent 2fe7fbc commit f9ee572c09ceecdd581b4a62df09d7ba1bf0415e Szymon Guz committed Mar 21, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/akamod/edan_to_dpla.py
View
4 lib/akamod/edan_to_dpla.py
@@ -117,11 +117,13 @@ def transform_is_shown_at(d):
def transform_object(d):
- propname = "descriptiveNonRepeating/online_media/media/@thumbnail"
+ propname = "descriptiveNonRepeating/online_media/media/"
obj = getprop(d, propname, True)
if isinstance(obj, list):
return {}
+
+ obj = getprop(d, propname + "@thumbnail", True)
return {"object": obj} if obj else {}

0 comments on commit f9ee572

Please sign in to comment.
Something went wrong with that request. Please try again.