source: documentViewer/zpt/viewer_index.zpt @ 538:dbf25bd05fc6

Last change on this file since 538:dbf25bd05fc6 was 538:dbf25bd05fc6, checked in by casties, 12 years ago

digilib buttons get icons. pid on index page.

File size: 5.2 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        <table border="0"
34          tal:define="formattedData python:here.metadata.getBibFormattedMetaDataExtended(bibdata=docinfo.get('bib', None))">
35          <tal:x condition="python:formattedData">
36            <!-- wenn es bibinfo in docinfo gibt -->
37            <tr tal:replace="structure python:formattedData" />
38          </tal:x>
39
40          <tal:x condition="not:formattedData">
41            <!-- kein template fuer die daten -->
42            <tal:x condition="exists:docinfo/bib">
43              <tr tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo">
44                <td class="type" tal:content="python:bib.capitalize().replace('_',' ') + ':'" />
45                <td class="content" tal:content="bibinfo/bib" />
46              </tr>
47            </tal:x>
48
49            <tal:y condition="not:exists:docinfo/bib">
50              <!-- wenn es kein bibinfo gibt (archimedes-texte) -->
51              <tr>
52                <td class="type">Author:</td>
53                <td class="content" tal:content="docinfo/creator" />
54              </tr>
55              <tr>
56                <td class="type">Title:</td>
57                <td class="content" tal:content="docinfo/title" />
58              </tr>
59              <tr>
60                <td class="type">Date:</td>
61                <td class="content" tal:content="docinfo/date" />
62              </tr>
63            </tal:y>
64          </tal:x>
65          <!-- ende kein template fuer die daten -->
66        </table>
67
68        <table tal:define="dri docinfo/DRI | nothing" tal:condition="dri">
69          <tr>
70            <td class="type">Document ID:</td>
71            <td class="content" tal:content="dri" />
72          </tr>
73          <tr>
74            <td class="type">Permanent URL:</td>
75            <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>
77          </tr>
78        </table>
79
80        <table border="0">
81          <!-- attribution -->
82          <tr tal:condition="exists:docinfo/attribution"
83            tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=docinfo['attribution'])" />
84          <!-- copyright -->
85          <tr tal:condition="exists:docinfo/copyright"
86            tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=docinfo['copyright'])" />
87        </table>
88      </div>
89
90      <div class="index-actions">
91        <div class="action">
92          <a class="openbutton" tal:attributes="href python:context.getLink('viewMode','auto')">&#8594;Browse document</a>
93        </div>
94        <div class="action" tal:condition="docpath">
95          Download full document as <a
96            tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath.replace('.xml','.html'))"
97            target="_blank">&#8594;HTML</a> or <a
98            tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)" target="_blank">&#8594;XML</a>
99        </div>
100        <div class="action">
101          <!--BEGIN search -->
102          <form tal:condition="docpath" tal:attributes="action python:here.getLink()">
103            <input type="hidden" tal:define="params python:here.getParams('viewMode', None)" tal:repeat="param params"
104              tal:attributes="name param; value python:params[param]" /> <input class="textMain" name="query"
105              onfocus="this.select();" type="text" tal:attributes="value query" /> <input type="submit" class="buttonMain"
106              value="Search in Book" />
107          </form>
108          <!-- END search-->
109        </div>
110      </div>
111    </div>
112  </div>
113</body>
114<body tal:condition="not:numPages">
115  <div class="errortext">Sorry, document doesn't exist.</div>
116</body>
117</html>
Note: See TracBrowser for help on using the repository browser.