Changeset 527:652cc8d3f1a9 in documentViewer for zpt


Ignore:
Timestamp:
Apr 12, 2012, 12:27:37 PM (13 years ago)
Author:
casties
Branch:
default
Message:

fixed bug with text when layer is only annotator.

Location:
zpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zpt/common_template.zpt

    r526 r527  
    4343        tal:condition="python:originalPage!=None"> (<span tal:replace="originalPage" /><span
    4444        tal:define="originalPageNorm pageinfo/pageNumberOrigNorm | nothing" tal:condition="python:originalPageNorm!=None"> [<span
    45           tal:replace="originalPageNorm" />]
    46       </span>)
     45          tal:replace="originalPageNorm" />]</span>)
    4746      </span> <input type="submit" value="Go" /> of <span tal:replace="numPages" /> <a tal:condition="right"
    4847        tal:attributes="href python:here.getLink('pn',right)">&gt;</a> <span tal:condition="not:right">&gt;</span> <a
  • zpt/layer_text_annotator.zpt

    r526 r527  
    4141                var devAnnotator = new Annotator(elem).addPlugin('Auth', {
    4242                    //tokenUrl: 'http://annotateit.org/api/token'
    43                     tokenUrl : 'http://localhost:8080/test/annotator/token?user=casties'
     43                    tokenUrl : 'template/token?user=anonymous'
    4444                //autoFetch: false
    4545                }).addPlugin('Permissions', {
    46                     user : 'casties',
     46                    user : 'anonymous',
    4747                    userString : function(user) {
    4848                        if (user && user.name) {
     
    5858                    }
    5959                }).addPlugin('Store', {
    60                     prefix : 'http://localhost:18080/AnnotationManager/annotator',
    61                     //prefix: 'http://virtuoso.mpiwg-berlin.mpg.de:8080/AnnotationManager/annotator',
     60                    //prefix : 'http://localhost:18080/AnnotationManager/annotator',
     61                    prefix: 'http://virtuoso.mpiwg-berlin.mpg.de:8080/AnnotationManager/annotator',
    6262                    //prefix: 'http://annotateit.org/api',
    6363                    annotationData : {
Note: See TracChangeset for help on using the changeset viewer.