changeset 549:7bff5a6b0be5

enabled Annotator Tags plugin.
author casties
date Tue, 04 Sep 2012 20:05:19 +0200
parents 7acc919f52ff
children a35ec08c782d
files zpt/layer_text_annotator.zpt
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/zpt/layer_text_annotator.zpt	Fri Aug 31 15:55:45 2012 +0200
+++ b/zpt/layer_text_annotator.zpt	Tue Sep 04 20:05:19 2012 +0200
@@ -25,7 +25,7 @@
     tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/permissions.js"></script>
   <!-- <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/annotateitpermissions.js"></script> -->
   <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/auth.js"></script>
-  <!-- <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/tags.js"></script> -->
+  <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/tags.js"></script>
   <script
     tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/unsupported.js"></script>
   <!-- <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/filter.js"></script> -->
@@ -60,8 +60,8 @@
                         return user;
                     }
                 }).addPlugin('Store', {
-                    //prefix: 'http://tuxserve03.mpiwg-berlin.mpg.de/AnnotationManager/annotator',
-                    prefix: 'http://r583-1.mpiwg-berlin.mpg.de:18080/AnnotationManager/annotator',
+                    prefix: 'http://tuxserve03.mpiwg-berlin.mpg.de/AnnotationManager/annotator',
+                    //prefix: 'http://r583-1.mpiwg-berlin.mpg.de:18080/AnnotationManager/annotator',
                     annotationData : {
                         'uri' : uri
                     },
@@ -69,7 +69,8 @@
                         'limit' : 20,
                         'uri' : uri
                     }
-                });
+                }).addPlugin('Tags'
+                );
             });
         // -->
         </script>
@@ -110,6 +111,10 @@
           <input type="submit" value="Go!" />
         </p>
       </form>
+      <p tal:define="std modules/Products.PythonScripts.standard">
+        <a class="button" tal:attributes="href python:'%s/login/login?came_from=%s'%(viewerUrl,std.url_quote(here.getLink()))">log in</a>
+        <a class="button" tal:attributes="href python:'%s/login/logout?came_from=%s'%(viewerUrl,std.url_quote(here.getLink()))">log out</a>
+      </p>
     </div>
     <!-- END ANNOTATIONS -->
   </metal:block>