comparison zpt/viewer_index.zpt @ 539:37d122560028

more nicer
author casties
date Wed, 15 Aug 2012 16:59:45 +0200
parents dbf25bd05fc6
children 4b43a57ad9b3
comparison
equal deleted inserted replaced
538:dbf25bd05fc6 539:37d122560028
28 tal:condition="python:not tp and exists('here/template/book.png')" border="0" src="template/book.png" /></a> 28 tal:condition="python:not tp and exists('here/template/book.png')" border="0" src="template/book.png" /></a>
29 </div> 29 </div>
30 30
31 <div class="col"> 31 <div class="col">
32 <div class="index-info"> 32 <div class="index-info">
33 <h2>Bibliographical information</h2>
33 <table border="0" 34 <table border="0"
34 tal:define="formattedData python:here.metadata.getBibFormattedMetaDataExtended(bibdata=docinfo.get('bib', None))"> 35 tal:define="formattedData python:here.metadata.getBibFormattedMetaDataExtended(bibdata=docinfo.get('bib', None))">
35 <tal:x condition="python:formattedData"> 36 <tal:x condition="python:formattedData">
36 <!-- wenn es bibinfo in docinfo gibt --> 37 <!-- wenn es bibinfo in docinfo gibt -->
37 <tr tal:replace="structure python:formattedData" /> 38 <tr tal:replace="structure python:formattedData" />
63 </tal:y> 64 </tal:y>
64 </tal:x> 65 </tal:x>
65 <!-- ende kein template fuer die daten --> 66 <!-- ende kein template fuer die daten -->
66 </table> 67 </table>
67 68
68 <table tal:define="dri docinfo/DRI | nothing" tal:condition="dri"> 69 <tal:block tal:define="dri docinfo/DRI | nothing" tal:condition="dri">
70 <h2>Permanent URL</h2>
71 <table>
69 <tr> 72 <tr>
70 <td class="type">Document ID:</td> 73 <td class="type">Document ID:</td>
71 <td class="content" tal:content="dri" /> 74 <td class="content" tal:content="dri" />
72 </tr> 75 </tr>
73 <tr> 76 <tr>
74 <td class="type">Permanent URL:</td> 77 <td class="type">Permanent URL:</td>
75 <td class="content"><a tal:attributes="href string:http://echo.mpiwg-berlin.mpg.de/$dri" 78 <td class="content"><a tal:attributes="href string:http://echo.mpiwg-berlin.mpg.de/$dri"
76 tal:content="string:http://echo.mpiwg-berlin.mpg.de/$dri" /></td> 79 tal:content="string:http://echo.mpiwg-berlin.mpg.de/$dri" /></td>
77 </tr> 80 </tr>
78 </table> 81 </table>
82 </tal:block>
79 83
80 <table border="0"> 84 <tal:block tal:define="attribution docinfo/attribution | nothing; copyright docinfo/copyright | nothing">
85 <h2>Copyright information</h2>
86 <table border="0" tal:condition="attribution | copyright">
81 <!-- attribution --> 87 <!-- attribution -->
82 <tr tal:condition="exists:docinfo/attribution" 88 <tr tal:condition="attribution"
83 tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=docinfo['attribution'])" /> 89 tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=attribution)" />
84 <!-- copyright --> 90 <!-- copyright -->
85 <tr tal:condition="exists:docinfo/copyright" 91 <tr tal:condition="copyright"
86 tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=docinfo['copyright'])" /> 92 tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=copyright)" />
87 </table> 93 </table>
94 <table border="0" tal:condition="not:attribution | copyright">
95 <tr><td></td></tr>
96 </table>
97 </tal:block>
88 </div> 98 </div>
89 99
90 <div class="index-actions"> 100 <div class="index-actions">
91 <div class="action"> 101 <div class="action">
92 <a class="openbutton" tal:attributes="href python:context.getLink('viewMode','auto')">&#8594;Browse document</a> 102 <a class="openbutton" tal:attributes="href python:context.getLink('viewMode','auto')">&#8594;Browse document</a>