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: roewenstr...@edirom.de
URL: http://www.freischuetz-digital.de




_______________________________________________
annotator-dev mailing list
annotator-dev@lists.okfn.org
https://lists.okfn.org/mailman/listinfo/annotator-dev
Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev

Reply via email to