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

Commit

Permalink
Fixed isShowAt field.
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon Guz committed Mar 21, 2013
1 parent bd25c7a commit f68ba35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/akamod/edan_to_dpla.py
Expand Up @@ -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):
Expand Down

0 comments on commit f68ba35

Please sign in to comment.