changeset 493:79d414cead6d elementtree

first button for digilib
author casties
date Mon, 05 Sep 2011 11:10:36 +0200
parents f1f55b91f400
children 3146b4e7b6a5
files zpt/viewer_images.zpt
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/zpt/viewer_images.zpt	Wed Aug 31 18:22:39 2011 +0200
+++ b/zpt/viewer_images.zpt	Mon Sep 05 11:10:36 2011 +0200
@@ -36,8 +36,10 @@
             this.form.submit();
         });
         $('form.autosubmit input[type="submit"]').hide();
+        // get digilib div
+        $digilib = $('div.scaler');
         // configure digilib
-        $('div.scaler').digilib(dlOpts);
+        $digilib.digilib(dlOpts);
     });
 //-->
 </script>
@@ -59,7 +61,7 @@
       <div class="col-left">
         <metal:block metal:use-macro="python:path('here/template/toc_%s/macros/main'%tocMode)" />
       </div>
-      <!-- text page -->
+      <!-- col-main: text page -->
       <div class="col-main">
         <div class="ruler">
           <form class="autosubmit" tal:attributes="action viewerUrl">
@@ -79,13 +81,15 @@
               tal:condition="rightest" tal:attributes="href python:here.getLink('pn',rightest)">&gt;|</a> <span
               tal:condition="not:rightest">&gt;|</span>
           </form>
-        </div>
-        <!-- ruler -->
+        </div><!-- ruler -->
         <ul class="switcher">
           <li class="sel">Image</li>
           <li><a tal:condition="docpath" tal:attributes="href python:here.getLink('viewMode','text')">Text</a></li>
         </ul>
         <div class="content">
+          <div class="dl-buttons">
+            <span><a href="javascript:$digilib.digilib('zoomArea')">zoom</a></span>
+          </div>
           <div class="scaler">
             <img tal:attributes="src string:${docinfo/imageURL}&pn=${pageinfo/pn}&dw=500&dh=500" />
           </div>