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

Commit

Permalink
object and hasView fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Rosolovskiy committed Mar 19, 2013
1 parent b720c84 commit 6f0a895
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/akamod/mods_to_dpla.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ def location_handler(d, p):
if url_dict["access"] == "object in context":
out["isShownAt"] = {"@id:": url_dict["#text"], "format": format}
if url_dict["access"] == "preview":
out["object"] = url_dict["#text"]
if url_dict["access"] == "raw object":
out["hasView"] = {"@id:": url_dict["#text"], "format": format}
out["object"] = {"@id:": url_dict["#text"], "format": format}
if "physicalLocation" in _dict and isinstance(_dict["physicalLocation"], basestring):
out["dataProvider"] = _dict["physicalLocation"]
except Exception as e:
Expand Down

0 comments on commit 6f0a895

Please sign in to comment.