Skip to content

Version 2.5.6

Compare
Choose a tag to compare
@rsimon rsimon released this 18 Sep 16:37
· 217 commits to main since this release

Feature additions

  • Added Finnish and Korean UI labels
  • Added support for percent-encoded Media Fragment selectors. (Annotorious will read both pixel and percent-encoded fragments. When new rectangle annotations are created, the fragmentUnit init parameter determines their encoding. Set fragementUnit: 'percent' to write percent-encoded annotations, or fragmentUnit: 'pixel' (default) to write pixel-encoded annotations.
  • Added support for tagging vocabularies with ontology terms, where each vocabulary item consists of a label and a URI.
var r = Recogito.init({
  content: 'content', // Element id or DOM node to attach to
  widgets: [{ 
    widget: 'TAG',
    vocabulary: [ 
      { label: 'Place', uri: 'http://www.example.com/ontology/place' },
      { label: 'Person', uri: 'http://www.example.com/ontology/place' }, 
      { label: 'Event', uri: 'http://www.example.com/ontology/event' },
      { label: 'Organization', uri: 'http://www.example.com/ontology/organization' },
      { label: 'Animal', uri: 'http://www.example.com/ontology/animal' }
    ] 
  }]
});

It's also possible to mix normal terms and ontology terms.

var r = Recogito.init({
  content: 'content', // Element id or DOM node to attach to
  widgets: [{ 
    widget: 'TAG',
    vocabulary: [ 
      { label: 'Place', uri: 'http://www.example.com/ontology/place' },
      'Person', 
      { label: 'Event', uri: 'http://www.example.com/ontology/event' },
    ] 
  }]
});

Behavior/bugfixes

  • Clicking outside the selected annotation now cancels the selection
  • Fixed various behavior issues in headless mode (= disableEditor set to true)
  • Fixes a bug that caused Annotorious to crash when calling destroy and initializing a new Annotorious instance on the same OSD viewer
  • Widget API: saveImmediately and onUpsertBody methods now properly exposed to VanillaJS widgets