Version 2.5.6
Feature additions
- Added Finnish and Korean UI labels
- Added support for percent-encoded Media Fragment selectors. (Annotorious will read both
pixel
andpercent
-encoded fragments. When new rectangle annotations are created, thefragmentUnit
init parameter determines their encoding. SetfragementUnit: 'percent'
to write percent-encoded annotations, orfragmentUnit: '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 totrue
) - 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
andonUpsertBody
methods now properly exposed to VanillaJS widgets