Changeset 590:ed4485d2748e in documentViewer for zpt


Ignore:
Timestamp:
Nov 16, 2012, 10:44:21 AM (11 years ago)
Author:
casties
Branch:
default
Message:

viewMode "images" changed to "image".

Location:
zpt
Files:
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • zpt/common_template.zpt

    r584 r590  
    2828        <li tal:condition="docpath" tal:attributes="class python:here.getStyle(viewMode, 'text')"><a
    2929          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, 'images')"><a
    31           tal:omit-tag="python:viewMode=='images'" 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>
    3232        <li tal:condition="docpath" tal:attributes="class python:here.getStyle(viewMode, 'xml')"><a
    3333          tal:omit-tag="python:viewMode=='xml'" tal:attributes="href python:here.getLink('viewMode','xml')">XML</a></li>
  • zpt/viewer_image.zpt

    r585 r590  
    44  tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode pageinfo/viewMode;
    55              viewLayer pageinfo/viewLayer; viewLayers pageinfo/viewLayers;
    6               availableLayers python:here.getAvailableLayers().get('images', None);
     6              availableLayers python:here.getAvailableLayers().get('image', None);
    77              tocMode pageinfo/tocMode; viewerUrl docinfo/viewerUrl;
    88              numPages docinfo/numPages | nothing; dlBaseUrl docinfo/digilibBaseUrl | nothing;">
     
    3232<!--  layer headers (rendered always) -->
    3333<tal:block tal:repeat="layer availableLayers">
    34   <tal:block tal:define="mpath string:here/template/layer_images_${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)">
    3535    <metal:block metal:use-macro="python:path(mpath)" />
    3636  </tal:block>
     
    7171          <metal:block metal:use-macro="here/template/common_template/macros/page_ruler" />
    7272        </div>
    73         <div class="content images">
     73        <div class="content image">
    7474          <div id="scaler">
    7575            <img tal:attributes="src string:${docinfo/imageURL}&pn=${pageinfo/pn}&dw=500&dh=500" />
     
    9090              <!-- layer select buttons (rendered always) -->
    9191              <tal:block tal:repeat="layer availableLayers">
    92                 <tal:block tal:define="mpath string:here/template/layer_images_${layer}/macros/layer_select_li"
     92                <tal:block tal:define="mpath string:here/template/layer_image_${layer}/macros/layer_select_li"
    9393                  tal:condition="python:exists(mpath)">
    9494                  <li metal:use-macro="python:path(mpath)" />
     
    138138        <!--  layer option boxes (rendered if active) -->
    139139        <tal:block tal:repeat="layer availableLayers">
    140           <tal:block tal:define="mpath string:here/template/layer_images_${layer}/macros/options_box"
     140          <tal:block tal:define="mpath string:here/template/layer_image_${layer}/macros/options_box"
    141141            tal:condition="python:exists(mpath)">
    142142            <metal:block metal:use-macro="python:path(mpath)" />
Note: See TracChangeset for help on using the changeset viewer.