Mercurial > hg > digilib-old
changeset 1148:05413c47a976
new parameter showAnnotationNumbers (for rectangles).
author | robcast |
---|---|
date | Fri, 23 Nov 2012 18:02:52 +0100 |
parents | 684ba9b317c2 |
children | 05f7eb1ba0a2 |
files | webapp/src/main/webapp/jquery/jquery.digilib.annotator.js |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.annotator.js Fri Nov 23 11:46:05 2012 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.annotator.js Fri Nov 23 18:02:52 2012 +0100 @@ -280,7 +280,10 @@ var clippedArea = data.zoomArea.intersect(area); if (clippedArea == null) return; screenRect = data.imgTrafo.transform(clippedArea); - // console.debug("renderRegion: pos=",geom.position(screenRect)); + if (!data.settings.showAnnotationNumbers) { + // suppress annotation number + idx = ''; + } $annotation = $('<div class="'+cssPrefix+'annotationregion '+cssPrefix+'overlay annotator-hl">'+idx+'</div>'); } else { // render point @@ -407,6 +410,8 @@ 'annotationReadOnlySet' : ['annotations', 'lessoptions'], // URL of annotation server .e.g. 'http://tuxserve03.mpiwg-berlin.mpg.de/AnnotationManager/annotator' 'annotationServerUrl' : null, + // show numbers in rectangle annotations + 'showAnnotationNumbers' : true, // are the annotations read-only 'annotationsReadOnly' : false, // URL of authentication token server e.g. 'http://libcoll.mpiwg-berlin.mpg.de/libviewa/template/token'