Skip to content

Commit

Permalink
make all thumbnails images
Browse files Browse the repository at this point in the history
  • Loading branch information
azaroth42 committed Aug 3, 2017
1 parent 222141c commit 8da0309
Show file tree
Hide file tree
Showing 3 changed files with 750 additions and 3 deletions.
2 changes: 1 addition & 1 deletion iiif_prezi/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Version number for this IIIF Presentation API library."""
__version__ = '0.2.7'
__version__ = '0.2.8'
5 changes: 3 additions & 2 deletions iiif_prezi/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def read(self):
raise SerializationError("Data is not valid JSON", data)

# Try to see if we're valid JSON-LD before further testing

versions = self.getVersion(js)
if self.require_version:
factory = self.buildFactory(self.require_version)
Expand Down Expand Up @@ -199,7 +198,9 @@ def readObject(self, js, parent=None, parentProperty=None):
try:
typ = js['@type']
except:
if parentProperty != 'service':
if parentProperty == 'thumbnail':
typ = "dctypes:Image"
elif parentProperty != 'service':
raise RequirementError(
'Every resource must have @type', parent)
else:
Expand Down

0 comments on commit 8da0309

Please sign in to comment.