source: documentViewer/zpt/viewer_index.zpt @ 539:37d122560028

Last change on this file since 539:37d122560028 was 539:37d122560028, checked in by casties, 12 years ago

more nicer

File size: 5.6 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<head>
10<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11<title tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')" />
12<link rel="stylesheet" href="template/docuviewer_css" type="text/css" />
13</head>
14<body tal:condition="numPages">
15  <!-- header -->
16  <div class="page-head">
17    <metal:block metal:use-macro="here/template/common_template/macros/head" />
18  </div>
19
20  <!-- main -->
21  <div class="page-body">
22
23    <div class="col index-image">
24      <!-- image -->
25      <a tal:define="tp docinfo/titlePage | nothing"
26        tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img tal:condition="tp" border="0"
27        tal:attributes="src string:${docinfo/imageURL}&pn=$tp&dw=300&dh=500" /><img
28        tal:condition="python:not tp and exists('here/template/book.png')" border="0" src="template/book.png" /></a>
29    </div>
30
31    <div class="col">
32      <div class="index-info">
33        <h2>Bibliographical information</h2>
34        <table border="0"
35          tal:define="formattedData python:here.metadata.getBibFormattedMetaDataExtended(bibdata=docinfo.get('bib', None))">
36          <tal:x condition="python:formattedData">
37            <!-- wenn es bibinfo in docinfo gibt -->
38            <tr tal:replace="structure python:formattedData" />
39          </tal:x>
40
41          <tal:x condition="not:formattedData">
42            <!-- kein template fuer die daten -->
43            <tal:x condition="exists:docinfo/bib">
44              <tr tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo">
45                <td class="type" tal:content="python:bib.capitalize().replace('_',' ') + ':'" />
46                <td class="content" tal:content="bibinfo/bib" />
47              </tr>
48            </tal:x>
49
50            <tal:y condition="not:exists:docinfo/bib">
51              <!-- wenn es kein bibinfo gibt (archimedes-texte) -->
52              <tr>
53                <td class="type">Author:</td>
54                <td class="content" tal:content="docinfo/creator" />
55              </tr>
56              <tr>
57                <td class="type">Title:</td>
58                <td class="content" tal:content="docinfo/title" />
59              </tr>
60              <tr>
61                <td class="type">Date:</td>
62                <td class="content" tal:content="docinfo/date" />
63              </tr>
64            </tal:y>
65          </tal:x>
66          <!-- ende kein template fuer die daten -->
67        </table>
68
69        <tal:block tal:define="dri docinfo/DRI | nothing" tal:condition="dri">
70        <h2>Permanent URL</h2>
71        <table>
72          <tr>
73            <td class="type">Document ID:</td>
74            <td class="content" tal:content="dri" />
75          </tr>
76          <tr>
77            <td class="type">Permanent URL:</td>
78            <td class="content"><a tal:attributes="href string:http://echo.mpiwg-berlin.mpg.de/$dri"
79              tal:content="string:http://echo.mpiwg-berlin.mpg.de/$dri" /></td>
80          </tr>
81        </table>
82        </tal:block>
83
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">
87          <!-- attribution -->
88          <tr tal:condition="attribution"
89            tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=attribution)" />
90          <!-- copyright -->
91          <tr tal:condition="copyright"
92            tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=copyright)" />
93        </table>
94        <table border="0" tal:condition="not:attribution | copyright">
95          <tr><td></td></tr>
96        </table>       
97        </tal:block>
98      </div>
99
100      <div class="index-actions">
101        <div class="action">
102          <a class="openbutton" tal:attributes="href python:context.getLink('viewMode','auto')">&#8594;Browse document</a>
103        </div>
104        <div class="action" tal:condition="docpath">
105          Download full document as <a
106            tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath.replace('.xml','.html'))"
107            target="_blank">&#8594;HTML</a> or <a
108            tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)" target="_blank">&#8594;XML</a>
109        </div>
110        <div class="action">
111          <!--BEGIN search -->
112          <form tal:condition="docpath" tal:attributes="action python:here.getLink()">
113            <input type="hidden" tal:define="params python:here.getParams('viewMode', None)" tal:repeat="param params"
114              tal:attributes="name param; value python:params[param]" /> <input class="textMain" name="query"
115              onfocus="this.select();" type="text" tal:attributes="value query" /> <input type="submit" class="buttonMain"
116              value="Search in Book" />
117          </form>
118          <!-- END search-->
119        </div>
120      </div>
121    </div>
122  </div>
123</body>
124<body tal:condition="not:numPages">
125  <div class="errortext">Sorry, document doesn't exist.</div>
126</body>
127</html>
Note: See TracBrowser for help on using the repository browser.