Commit d07ed514 authored by Randall Leeds's avatar Randall Leeds

configure store with discovery

parent 47cf533b
class Hypothesis extends Annotator
# Events - overridden for good measure. Unused in the angular Annotator.
events: {}
events:
serviceDiscovery: 'serviceDiscovery'
# Plugin configuration
options:
Discovery: {}
Heatmap: {}
Permissions:
permissions:
......@@ -169,13 +170,13 @@ class Hypothesis extends Annotator
@provider.call
method: 'getHref'
success: (href) =>
this.addPlugin 'Store',
options = angular.extend {}, (@options.Store or {}),
annotationData:
uri: href
loadFromSearch:
limit: 1000
uri: href
prefix: '/api'
this.addPlugin 'Store', options
patch_update this.plugins.Store
console.log "Loaded annotions for '" + href + "'."
for href in this.getSynonymURLs href
......@@ -342,6 +343,8 @@ class Hypothesis extends Annotator
@element.find('#toolbar').removeClass('shown')
.find('.tri').attr('draggable', false)
serviceDiscovery: (options) => angular.extend @options, Store: options
class DraftProvider
drafts: []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment