Changeset 555:841c2094af63 in documentViewer for zpt
- Timestamp:
- Sep 26, 2012, 10:24:11 AM (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zpt/layer_text_annotator.zpt
r552 r555 32 32 33 33 <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> 39 40 40 41 <script type="text/javascript"> … … 67 68 } 68 69 }).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', 71 72 annotationData : { 72 'uri' : uri 73 'uri' : uri, 74 'resource' : annotatorResourceUrl 73 75 }, 74 76 loadFromSearch : {
Note: See TracChangeset
for help on using the changeset viewer.