Skip to content

Commit

Permalink
Merge branch 'annotation-export' of https://github.com/ecds/readux in…
Browse files Browse the repository at this point in the history
…to annotation-export
  • Loading branch information
saracarl committed May 7, 2019
2 parents e5c5f9b + c76e117 commit e15abec
Show file tree
Hide file tree
Showing 11 changed files with 1,223 additions and 76 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ parsetab.py
# only ignore top-level static dir, not app-level static files
# static/
media/

!apps/static/mirador/plugins/media

### python gitignores auto-generated by github

Expand Down Expand Up @@ -142,4 +142,4 @@ assets/upload/*
dev_*.json

# Presentation Validator
presentation-validator/
presentation-validator/
2 changes: 2 additions & 0 deletions apps/cms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ class HomePage(Page):

content_panels = Page.content_panels + [
# AutocompletePanel('featured_volume', target_model='manifests.Manifest'),
FieldPanel('tagline', classname="full"),
FieldPanel('content_display', classname="full"),
FieldPanel('featured_collections', widget=forms.CheckboxSelectMultiple, classname="full"),
FieldPanel('featured_collections_sort_order', classname="full"),
FieldPanel('featured_volumes', widget=forms.CheckboxSelectMultiple, classname="full"),
Expand Down
13 changes: 11 additions & 2 deletions apps/iiif/serializers/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,22 @@ def get_dump_object(self, obj):
"label": "Notes",
"value": obj.metadata
}],
"description": obj.summary,
"thumbnail": {
"@id": "%s/%s/full/600,/0/default.jpg" % (obj.canvas_set.all().first().IIIF_IMAGE_SERVER_BASE, obj.canvas_set.all().first().pid),
"service": {
"@context": "http://iiif.io/api/image/2/context.json",
"@id": "%s/%s" % (obj.canvas_set.all().first().IIIF_IMAGE_SERVER_BASE, obj.canvas_set.all().first().pid),
"profile": "http://iiif.io/api/image/2/level1.json"
}
},
"viewingDirection": obj.viewingDirection,
"viewingHint": "paged",
"sequences": [
{
"@id": "%s/sequence/normal" % (obj.baseurl),
"@type": "sc:Sequence",
"label": "Current Page Order",
"viewingDirection": obj.viewingDirection,
"viewingHint": "paged",
"startCanvas": obj.start_canvas,
"canvases": json.loads(serialize('canvas', obj.canvas_set.all(), islist=True))
}
Expand Down
6 changes: 3 additions & 3 deletions apps/static/css/project.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
}

#viewer {
width: 75%;
height: calc(100% - 280px);
position: fixed;
width: 78%;
height: calc(100% - 250px);
position: absolute;
bottom: 0;
}

Expand Down
30 changes: 21 additions & 9 deletions apps/static/mirador/mirador.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions apps/static/mirador/plugins/media/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Exports the "media" plugin for usage with module loaders
// Usage:
// CommonJS:
// require('tinymce/plugins/media')
// ES2015:
// import 'tinymce/plugins/media'
require('./plugin.js');
Loading

0 comments on commit e15abec

Please sign in to comment.