source: documentViewer/zpt/viewer/viewer_indexonly.zpt @ 606:37ad612edf5a

Last change on this file since 606:37ad612edf5a was 606:37ad612edf5a, checked in by casties, 11 years ago

fixed bug in indexonly with no image.

File size: 6.1 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml"
4  tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode pageinfo/viewMode;
5                  tocMode pageinfo/tocMode; viewerUrl docinfo/viewerUrl;
6                  docpath docinfo/textURLPath | nothing;
7                  query nothing;
8                  numPages docinfo/numPages | nothing;
9                  global formattedData python:here.metadata.getBibFormattedMetaData(bibdata=docinfo.get('bib', None));">
10<head>
11<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
12<title tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')" />
13<link rel="stylesheet" tal:attributes="href string:$viewerUrl/template/docuviewer_css" type="text/css" />
14</head>
15<body tal:condition="numPages">
16  <!-- header -->
17  <div class="page-head">
18    <metal:block metal:use-macro="here/template/common_template/macros/head">
19      <div metal:fill-slot="view-switcher"></div>
20    </metal:block>
21  </div>
22
23  <!-- main -->
24  <div class="page-body">
25
26    <div class="col index-image">
27      <!-- image -->
28      <a tal:define="tp docinfo/titlePage | string:1" tal:condition="python:docinfo.get('imageURL',None) and tp or exists('here/template/book.png')"
29        tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img tal:condition="python:docinfo.get('imageURL',None) and tp" border="0"
30        tal:attributes="src python:'%s&pn=%s&dw=300&dh=500'%(docinfo.get('imageURL',None),tp)" /><img
31        tal:condition="python:(not docinfo.get('imageURL',None)) and exists('here/template/book.png')" border="0"
32        src="template/book.png" /></a>
33    </div>
34
35    <div class="col main">
36      <!-- main content column -->
37      <div class="index-info">
38        <h2>Bibliographic information</h2>
39        <table border="0">
40          <tal:x condition="python:formattedData">
41            <!-- wenn es bibinfo in docinfo gibt -->
42            <tr tal:replace="structure python:formattedData" />
43          </tal:x>
44
45          <tal:x condition="not:formattedData">
46            <!-- kein template fuer die daten -->
47            <tal:block condition="exists:docinfo/bib">
48              <tal:block tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo">
49                <tr tal:condition="python:bib[0]!='@'">
50                  <td class="type" tal:content="python:bib.capitalize().replace('_',' ') + ':'" />
51                  <td class="content" tal:content="python:bibinfo[bib]" />
52                </tr>
53              </tal:block>
54            </tal:block>
55
56            <tal:y condition="not:exists:docinfo/bib">
57              <!-- wenn es kein bibinfo gibt (archimedes-texte) -->
58              <tr>
59                <td class="type">Author:</td>
60                <td class="content" tal:content="docinfo/creator" />
61              </tr>
62              <tr>
63                <td class="type">Title:</td>
64                <td class="content" tal:content="docinfo/title" />
65              </tr>
66              <tr>
67                <td class="type">Date:</td>
68                <td class="content" tal:content="docinfo/date" />
69              </tr>
70            </tal:y>
71          </tal:x>
72          <!-- ende kein template fuer die daten -->
73        </table>
74
75        <tal:block tal:define="dri docinfo/DRI | nothing" tal:condition="dri">
76          <h2>Permanent URL</h2>
77          <table>
78            <tr>
79              <td class="type">Document ID:</td>
80              <td class="content" tal:content="dri" />
81            </tr>
82            <tr>
83              <td class="type">Permanent URL:</td>
84              <td class="content"><a target="_blank" tal:attributes="href string:http://echo.mpiwg-berlin.mpg.de/$dri"
85                tal:content="string:http://echo.mpiwg-berlin.mpg.de/$dri" /></td>
86            </tr>
87          </table>
88        </tal:block>
89
90        <tal:block tal:define="ctxs docinfo/presentationContext | nothing" tal:condition="ctxs">
91          <h2>Presentation context</h2>
92          <ul>
93            <li tal:repeat="ctx ctxs"><a tal:define="link ctx/link | nothing; name ctx/name | link;" tal:content="name"
94              tal:attributes="href link" target="_blank" tal:omit-tag="not:link" /></li>
95          </ul>
96        </tal:block>
97
98        <tal:block tal:define="attribution docinfo/attribution | nothing; copyright docinfo/copyright | nothing">
99          <h2>Copyright information</h2>
100          <table border="0" tal:condition="attribution | copyright">
101            <!-- attribution -->
102            <tr tal:condition="attribution"
103              tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=attribution)" />
104            <!-- copyright -->
105            <tr tal:condition="copyright"
106              tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=copyright)" />
107          </table>
108          <table border="0" tal:condition="not:attribution | copyright">
109            <tr>
110              <td class="type">Copyright:</td>
111              <td class="content"><a target="_blank" href="http://www.mpiwg-berlin.mpg.de">Max Planck Institute for the
112                  History of Science</a> (unless stated otherwise)</td>
113            </tr>
114            <tr tal:define="accType python:docinfo.get('accessType', None)">
115              <td class="type">License:</td>
116              <td tal:condition="python:accType == 'free'" class="content"><a target="_blank"
117                href="http://creativecommons.org/licenses/by-sa/3.0/de/">CC-BY-SA</a> (unless stated otherwise)</td>
118              <td tal:condition="python:accType != 'free'" class="content">Internal use only<span tal:condition="accType"
119                tal:content="string: ($accType)" />, please contact <a href="mailto:library@mpiwg-berlin.mpg.de">library@mpiwg-berlin.mpg.de</a>
120                (unless stated otherwise)
121              </td>
122            </tr>
123          </table>
124        </tal:block>
125      </div>
126    </div>
127    <!-- /main content column -->
128  </div>
129
130</body>
131<body tal:condition="not:numPages">
132  <div class="errortext">Sorry, document doesn't exist.</div>
133</body>
134</html>
Note: See TracBrowser for help on using the repository browser.