Permalink
Browse files

Fixed isShowAt field.

  • Loading branch information...
1 parent bd25c7a commit f68ba358afa1d312af53d02a53a65f54f944e854 Szymon Guz committed Mar 21, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/akamod/edan_to_dpla.py
@@ -108,10 +108,12 @@ def source_transform(d):
def transform_is_shown_at(d):
- propname = "descriptiveNonRepeating/online_media/media/#text"
+ #propname = "descriptiveNonRepeating/online_media/media/#text"
+ tmpl="http://collections.si.edu/search/results.htm?q=record_ID%%3A%s&repo=DPLA"
+ propname = "descriptiveNonRepeating/record_ID"
obj = getprop(d, propname, True)
- return {"isShownAt": obj} if obj else {}
+ return {"isShownAt": tmpl % obj} if obj else {}
def transform_object(d):

0 comments on commit f68ba35

Please sign in to comment.