Changeset 555:841c2094af63 in documentViewer for zpt


Ignore:
Timestamp:
Sep 26, 2012, 10:24:11 AM (12 years ago)
Author:
casties
Branch:
default
Message:

setting resource for annotations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/layer_text_annotator.zpt

    r552 r555  
    3232
    3333  <script type="text/javascript"
    34     tal:define="annUrl python:'http://echo.mpiwg-berlin.mpg.de/documents%s?pn=%s'%(docinfo['documentPath'],pageinfo['pn']);
    35       global annUser python:here.getAuthenticatedUser(anon='anonymous');
    36       global annGroup python:request.get('annotator_group', None);
    37       permUser python:test(annGroup, 'group:%s'%annGroup, annUser);"
    38     tal:content="structure string:var annotatorPageUrl='$annUrl'; var annotatorUser='$annUser'; var permissionUser='$permUser';"></script>
     34    tal:define="annUrl python:'http://echo.mpiwg-berlin.mpg.de/documents%s?pn=%s'%(docinfo['documentPath'],pageinfo['pn']);
     35    resUrl python:'http://echo.mpiwg-berlin.mpg.de/documents%s'%(docinfo['DRI']);
     36    global annUser python:here.getAuthenticatedUser(anon='anonymous');
     37    global annGroup python:request.get('annotator_group', None);
     38    permUser python:test(annGroup, 'group:%s'%annGroup, annUser);"
     39    tal:content="structure string:var annotatorPageUrl='$annUrl'; var annotatorResourceUrl='$resUrl'; var annotatorUser='$annUser'; var permissionUser='$permUser';"></script>
    3940
    4041  <script type="text/javascript">
     
    6768                    }
    6869                }).addPlugin('Store', {
    69                     //prefix: 'http://tuxserve03.mpiwg-berlin.mpg.de/AnnotationManager/annotator',
    70                     prefix: 'http://r583-1.mpiwg-berlin.mpg.de:18080/AnnotationManager/annotator',
     70                    prefix: 'http://tuxserve03.mpiwg-berlin.mpg.de/AnnotationManager/annotator',
     71                    //prefix: 'http://localhost:18080/AnnotationManager/annotator',
    7172                    annotationData : {
    72                         'uri' : uri
     73                        'uri' : uri,
     74                        'resource' : annotatorResourceUrl
    7375                    },
    7476                    loadFromSearch : {
Note: See TracChangeset for help on using the changeset viewer.