Changeset 527:652cc8d3f1a9 in documentViewer


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

fixed bug with text when layer is only annotator.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r519 r527  
    235235        if len(modes) > 1:
    236236            logging.debug("getTextPage: more than one mode=%s"%mode)
    237            
     237                       
    238238        # search mode
    239239        if 'search' in modes:
     
    252252            # dict is called textPollux in the backend
    253253            textmode = 'textPollux'
    254         elif len(modes) == 0:
     254        else:
    255255            # text is default mode
    256256            textmode = 'text'
    257         else:
    258             # just take first mode
    259             textmode = modes[0]
    260257       
    261258        textParams['mode'] = textmode
  • 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.