[annotator-dev] Reload Annotations

Daniel Röwenstrunk roewenstrunk at edirom.de
Tue Nov 17 13:18:41 UTC 2015


Hi all,

Is there a way to reload the annotations of a page?

We have a situation where the annotations of a page may be changed at different places simultaneously and we need to update the views of these pages by event or user action. It is possible to access the Store plugin somehow and fetch the annotations again?

Our setup is as follows:

$(document).ready(function () {
	var content = $('#' + me.id + '_textCont').annotator();
	
	content.annotator('addPlugin', 'Auth', {
		tokenUrl: 'http://annotateit.org/api/token',
		autoFetch: true
	});
	
	content.annotator('addPlugin', 'Store', {
		prefix: 'http://annotateit.org/api',
		annotationData: {
			'uri': uri
		},
		loadFromSearch: {
			'limit': 20,
			'uri': uri
		},
		urls: {
			create: '/annotations',
			update: '/annotations/:id',
			destroy: '/annotations/:id',
			search: '/search'
		},
		
		showViewPermissionsCheckbox: true,
		
		showEditPermissionsCheckbox: true
	});
});

Thanks and Cheers,
Daniel


--
Dipl. Wirt. Inf. Daniel Röwenstrunk
Project manager
BMBF-Project "Freischütz Digital"

Musikwiss. Seminar Detmold/Paderborn
Hornsche Str. 44
D-32756 Detmold

Tel.: +49 5231 975876
Mail: roewenstrunk at edirom.de
URL: http://www.freischuetz-digital.de




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20151117/ee063f2b/attachment-0003.html>


More information about the annotator-dev mailing list