changeset 605:530a9a024450

fixed bug when mapping doesn't exist.
author casties
date Tue, 11 Dec 2012 16:11:39 -0500
parents 6e7bcc628a76
children 37ad612edf5a
files zpt/viewer/viewer_index.zpt
diffstat 1 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/zpt/viewer/viewer_index.zpt	Mon Nov 26 14:30:33 2012 +0100
+++ b/zpt/viewer/viewer_index.zpt	Tue Dec 11 16:11:39 2012 -0500
@@ -61,12 +61,14 @@
 
           <tal:x condition="not:formattedData">
             <!-- kein template fuer die daten -->
-            <tal:x condition="exists:docinfo/bib">
-              <tr tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo">
-                <td class="type" tal:content="python:bib.capitalize().replace('_',' ') + ':'" />
-                <td class="content" tal:content="bibinfo/bib" />
-              </tr>
-            </tal:x>
+            <tal:block condition="exists:docinfo/bib">
+              <tal:block tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo">
+                <tr tal:condition="python:bib[0]!='@'">
+                  <td class="type" tal:content="python:bib.capitalize().replace('_',' ') + ':'" />
+                  <td class="content" tal:content="python:bibinfo[bib]" />
+                </tr>
+              </tal:block>
+            </tal:block>
 
             <tal:y condition="not:exists:docinfo/bib">
               <!-- wenn es kein bibinfo gibt (archimedes-texte) -->