Changeset 590:ed4485d2748e in documentViewer for zpt
- Timestamp:
- Nov 16, 2012, 10:44:21 AM (11 years ago)
- Branch:
- default
- Location:
- zpt
- Files:
-
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
zpt/common_template.zpt
r584 r590 28 28 <li tal:condition="docpath" tal:attributes="class python:here.getStyle(viewMode, 'text')"><a 29 29 tal:omit-tag="python:viewMode=='text'" tal:attributes="href python:here.getLink('viewMode','text')">Text</a></li> 30 <li tal:condition="python:docinfo.get('imagePath',None)" tal:attributes="class python:here.getStyle(viewMode, 'image s')"><a31 tal:omit-tag="python:viewMode=='image s'" tal:attributes="href python:here.getLink('viewMode','images')">Image</a></li>30 <li tal:condition="python:docinfo.get('imagePath',None)" tal:attributes="class python:here.getStyle(viewMode, 'image')"><a 31 tal:omit-tag="python:viewMode=='image'" tal:attributes="href python:here.getLink('viewMode','image')">Image</a></li> 32 32 <li tal:condition="docpath" tal:attributes="class python:here.getStyle(viewMode, 'xml')"><a 33 33 tal:omit-tag="python:viewMode=='xml'" tal:attributes="href python:here.getLink('viewMode','xml')">XML</a></li> -
zpt/viewer_image.zpt
r585 r590 4 4 tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode pageinfo/viewMode; 5 5 viewLayer pageinfo/viewLayer; viewLayers pageinfo/viewLayers; 6 availableLayers python:here.getAvailableLayers().get('image s', None);6 availableLayers python:here.getAvailableLayers().get('image', None); 7 7 tocMode pageinfo/tocMode; viewerUrl docinfo/viewerUrl; 8 8 numPages docinfo/numPages | nothing; dlBaseUrl docinfo/digilibBaseUrl | nothing;"> … … 32 32 <!-- layer headers (rendered always) --> 33 33 <tal:block tal:repeat="layer availableLayers"> 34 <tal:block tal:define="mpath string:here/template/layer_image s_${layer}/macros/html_head" tal:condition="python:exists(mpath)">34 <tal:block tal:define="mpath string:here/template/layer_image_${layer}/macros/html_head" tal:condition="python:exists(mpath)"> 35 35 <metal:block metal:use-macro="python:path(mpath)" /> 36 36 </tal:block> … … 71 71 <metal:block metal:use-macro="here/template/common_template/macros/page_ruler" /> 72 72 </div> 73 <div class="content image s">73 <div class="content image"> 74 74 <div id="scaler"> 75 75 <img tal:attributes="src string:${docinfo/imageURL}&pn=${pageinfo/pn}&dw=500&dh=500" /> … … 90 90 <!-- layer select buttons (rendered always) --> 91 91 <tal:block tal:repeat="layer availableLayers"> 92 <tal:block tal:define="mpath string:here/template/layer_image s_${layer}/macros/layer_select_li"92 <tal:block tal:define="mpath string:here/template/layer_image_${layer}/macros/layer_select_li" 93 93 tal:condition="python:exists(mpath)"> 94 94 <li metal:use-macro="python:path(mpath)" /> … … 138 138 <!-- layer option boxes (rendered if active) --> 139 139 <tal:block tal:repeat="layer availableLayers"> 140 <tal:block tal:define="mpath string:here/template/layer_image s_${layer}/macros/options_box"140 <tal:block tal:define="mpath string:here/template/layer_image_${layer}/macros/options_box" 141 141 tal:condition="python:exists(mpath)"> 142 142 <metal:block metal:use-macro="python:path(mpath)" />
Note: See TracChangeset
for help on using the changeset viewer.