Changeset 605:530a9a024450 in documentViewer for zpt


Ignore:
Timestamp:
Dec 11, 2012, 9:11:39 PM (11 years ago)
Author:
casties
Branch:
default
Message:

fixed bug when mapping doesn't exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/viewer/viewer_index.zpt

    r604 r605  
    6262          <tal:x condition="not:formattedData">
    6363            <!-- kein template fuer die daten -->
    64             <tal:x condition="exists:docinfo/bib">
    65               <tr tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo">
    66                 <td class="type" tal:content="python:bib.capitalize().replace('_',' ') + ':'" />
    67                 <td class="content" tal:content="bibinfo/bib" />
    68               </tr>
    69             </tal:x>
     64            <tal:block condition="exists:docinfo/bib">
     65              <tal:block tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo">
     66                <tr tal:condition="python:bib[0]!='@'">
     67                  <td class="type" tal:content="python:bib.capitalize().replace('_',' ') + ':'" />
     68                  <td class="content" tal:content="python:bibinfo[bib]" />
     69                </tr>
     70              </tal:block>
     71            </tal:block>
    7072
    7173            <tal:y condition="not:exists:docinfo/bib">
Note: See TracChangeset for help on using the changeset viewer.