Changeset 36:0bf5aac0ff41 in documentViewer for zpt


Ignore:
Timestamp:
Apr 12, 2006, 5:47:53 PM (18 years ago)
Author:
casties
Branch:
default
Message:

version 0.2.4

  • minor improvements
  • tries more than one time to read info from digilib
Location:
zpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zpt/thumbs_main.zpt

    r32 r36  
    66    <a tal:attributes="href python:here.getLink(param='start',val=max(start-grpsize,1))">&lt;</a>
    77  </span>
    8   <select tal:attributes="onChange python:'location.href=\'%s&start=\'+this.options[this.selectedIndex].value'%here.getLink(param='start',val=None)">
     8  <select tal:attributes="onChange python:'location.href=\''+here.getLink(param='start',val=None)+'&start=\'+this.options[this.selectedIndex].value'">
    99    <option tal:repeat="grp python:range(pageinfo['numgroups'])"
    1010      tal:attributes="selected python:(start==grp*grpsize+1); value python:(grp*grpsize+1)"
     
    1818  <tr tal:repeat="row python:range(rows)">
    1919    <tal:block tal:repeat="idx python:range(start+row*cols,start+(row+1)*cols)">
    20       <td align="center" tal:condition="python:(idx <= end)"
     20      <td align="center" tal:condition="python:(idx<=end)"
    2121                        tal:attributes="class python:here.getStyle(idx,current,'thumb')">
    2222                <a tal:attributes="href python:here.getLink(param='pn',val=idx)">
    23                   <img class="thumbimg" border="0" tal:attributes="src python:'%s&pn=%d&dw=100&dh=100'%(docinfo['imageURL'],idx)"/>
     23                  <img class="thumbimg" border="0" tal:attributes="src string:${docinfo/imageURL}&pn=$idx&dw=100&dh=100"/>
    2424                  <div class="thumbcap" tal:content="idx"/>
    2525                </a>
  • zpt/viewer_main.zpt

    r34 r36  
    55<body tal:condition="docinfo/numPages">
    66<div tal:replace="structure python:here.template.head_main(docinfo=docinfo)"/>
    7 <tal:block tal:condition="python:here.accessOK(docinfo)">
     7<tal:block tal:condition="python:here.isAccessible(docinfo)">
    88<table border="0" width="100%" height="100%">
    99  <tr>
     
    1717</table>
    1818</tal:block>
    19 <tal:block tal:condition="not:python:here.accessOK(docinfo)">
     19<tal:block tal:condition="not:python:here.isAccessible(docinfo)">
    2020<div class="errortext">Sorry, access to this document is restricted.</div>
    2121</tal:block>
Note: See TracChangeset for help on using the changeset viewer.