annotate zpt/viewer/viewer_index.zpt @ 606:37ad612edf5a

fixed bug in indexonly with no image.
author casties
date Tue, 11 Dec 2012 16:33:12 -0500
parents 530a9a024450
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml"
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
4 tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode pageinfo/viewMode;
505
29f2172db368 title also for non-bib-tag.
casties
parents: 502
diff changeset
5 tocMode pageinfo/tocMode; viewerUrl docinfo/viewerUrl;
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
6 viewLayer pageinfo/viewLayer; viewLayers pageinfo/viewLayers;
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
7 availableLayers python:here.getAvailableLayers().get('index', None);
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
8 docpath docinfo/textURLPath | nothing;
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
9 query nothing;
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
10 numPages docinfo/numPages | nothing;
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
11 global formattedData python:here.metadata.getBibFormattedMetaData(bibdata=docinfo.get('bib', None));">
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
12 <head>
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
13 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
14 <title tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')" />
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
15 <link rel="stylesheet" tal:attributes="href string:$viewerUrl/template/docuviewer_css" type="text/css" />
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
16 <script type="text/javascript" tal:attributes="src string:$viewerUrl/template/jquery_js"></script>
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
17 <script type="text/javascript">
606
37ad612edf5a fixed bug in indexonly with no image.
casties
parents: 605
diff changeset
18 // <!--
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
19 $(document).ready(function() {
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
20 // autosubmit forms
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
21 $('form.autosubmit').find('.autosubmit').change(function() {
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
22 this.form.submit();
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
23 });
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
24 $('form.autosubmit input[type="submit"]').hide();
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
25 });
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
26 // -->
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
27 </script>
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
28 <!-- layer headers (all available) -->
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
29 <tal:block tal:repeat="layer availableLayers">
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
30 <tal:block tal:define="mpath string:here/template/layer_index_${layer}/macros/html_head" tal:condition="python:exists(mpath)">
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
31 <metal:block metal:use-macro="python:path(mpath)" />
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
32 </tal:block>
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
33 </tal:block>
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
34 </head>
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
35 <body tal:condition="numPages">
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
36 <!-- header -->
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
37 <div class="page-head">
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
38 <metal:block metal:use-macro="here/template/common_template/macros/head" />
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
39 </div>
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
40
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
41 <!-- main -->
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
42 <div class="page-body">
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
43
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
44 <div class="col index-image">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
45 <!-- image -->
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
46 <a tal:define="tp docinfo/titlePage | string:1"
603
8ed0317633f8 better handling of no images in index page.
casties
parents: 594
diff changeset
47 tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img tal:condition="python:docinfo.get('imageURL',None) and tp" border="0"
562
60f5a636bc57 bugfixes for stability.
casties
parents: 560
diff changeset
48 tal:attributes="src python:'%s&pn=%s&dw=300&dh=500'%(docinfo.get('imageURL',None),tp)" /><img
604
6e7bcc628a76 more better thumbnail on index page.
casties
parents: 603
diff changeset
49 tal:condition="python:(not docinfo.get('imageURL',None)) and exists('here/template/book.png')" border="0"
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
50 src="template/book.png" /></a>
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
51 </div>
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
52
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
53 <div class="col main">
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
54 <!-- main content column -->
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
55 <div class="index-info">
550
a35ec08c782d small fixes.
casties
parents: 543
diff changeset
56 <h2>Bibliographic information</h2>
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
57 <table border="0">
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
58 <tal:x condition="python:formattedData">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
59 <!-- wenn es bibinfo in docinfo gibt -->
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
60 <tr tal:replace="structure python:formattedData" />
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
61 </tal:x>
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
62
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
63 <tal:x condition="not:formattedData">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
64 <!-- kein template fuer die daten -->
605
530a9a024450 fixed bug when mapping doesn't exist.
casties
parents: 604
diff changeset
65 <tal:block condition="exists:docinfo/bib">
530a9a024450 fixed bug when mapping doesn't exist.
casties
parents: 604
diff changeset
66 <tal:block tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo">
530a9a024450 fixed bug when mapping doesn't exist.
casties
parents: 604
diff changeset
67 <tr tal:condition="python:bib[0]!='@'">
530a9a024450 fixed bug when mapping doesn't exist.
casties
parents: 604
diff changeset
68 <td class="type" tal:content="python:bib.capitalize().replace('_',' ') + ':'" />
530a9a024450 fixed bug when mapping doesn't exist.
casties
parents: 604
diff changeset
69 <td class="content" tal:content="python:bibinfo[bib]" />
530a9a024450 fixed bug when mapping doesn't exist.
casties
parents: 604
diff changeset
70 </tr>
530a9a024450 fixed bug when mapping doesn't exist.
casties
parents: 604
diff changeset
71 </tal:block>
530a9a024450 fixed bug when mapping doesn't exist.
casties
parents: 604
diff changeset
72 </tal:block>
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
73
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
74 <tal:y condition="not:exists:docinfo/bib">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
75 <!-- wenn es kein bibinfo gibt (archimedes-texte) -->
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
76 <tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
77 <td class="type">Author:</td>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
78 <td class="content" tal:content="docinfo/creator" />
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
79 </tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
80 <tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
81 <td class="type">Title:</td>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
82 <td class="content" tal:content="docinfo/title" />
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
83 </tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
84 <tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
85 <td class="type">Date:</td>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
86 <td class="content" tal:content="docinfo/date" />
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
87 </tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
88 </tal:y>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
89 </tal:x>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
90 <!-- ende kein template fuer die daten -->
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
91 </table>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
92
539
37d122560028 more nicer
casties
parents: 538
diff changeset
93 <tal:block tal:define="dri docinfo/DRI | nothing" tal:condition="dri">
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
94 <h2>Permanent URL</h2>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
95 <table>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
96 <tr>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
97 <td class="type">Document ID:</td>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
98 <td class="content" tal:content="dri" />
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
99 </tr>
582
bf0f514b6f92 show permanent url on index page.
casties
parents: 579
diff changeset
100 <tr>
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
101 <td class="type">Permanent URL:</td>
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
102 <td class="content"><a target="_blank" tal:attributes="href string:http://echo.mpiwg-berlin.mpg.de/$dri"
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
103 tal:content="string:http://echo.mpiwg-berlin.mpg.de/$dri" /></td>
582
bf0f514b6f92 show permanent url on index page.
casties
parents: 579
diff changeset
104 </tr>
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
105 </table>
539
37d122560028 more nicer
casties
parents: 538
diff changeset
106 </tal:block>
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
107
579
fc861a6cef17 update in w-tag format.
casties
parents: 578
diff changeset
108 <tal:block tal:define="ctxs docinfo/presentationContext | nothing" tal:condition="ctxs">
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
109 <h2>Presentation context</h2>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
110 <ul>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
111 <li tal:repeat="ctx ctxs"><a tal:define="link ctx/link | nothing; name ctx/name | link;" tal:content="name"
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
112 tal:attributes="href link" target="_blank" tal:omit-tag="not:link" /></li>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
113 </ul>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
114 </tal:block>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
115
539
37d122560028 more nicer
casties
parents: 538
diff changeset
116 <tal:block tal:define="attribution docinfo/attribution | nothing; copyright docinfo/copyright | nothing">
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
117 <h2>Copyright information</h2>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
118 <table border="0" tal:condition="attribution | copyright">
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
119 <!-- attribution -->
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
120 <tr tal:condition="attribution"
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
121 tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=attribution)" />
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
122 <!-- copyright -->
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
123 <tr tal:condition="copyright"
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
124 tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=copyright)" />
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
125 </table>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
126 <table border="0" tal:condition="not:attribution | copyright">
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
127 <tr>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
128 <td class="type">Copyright:</td>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
129 <td class="content"><a target="_blank" href="http://www.mpiwg-berlin.mpg.de">Max Planck Institute for the
560
04c330b92cab uses escidoc-dri (instead of -test). updated default license display for access!=free.
casties
parents: 559
diff changeset
130 History of Science</a> (unless stated otherwise)</td>
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
131 </tr>
562
60f5a636bc57 bugfixes for stability.
casties
parents: 560
diff changeset
132 <tr tal:define="accType python:docinfo.get('accessType', None)">
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
133 <td class="type">License:</td>
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
134 <td tal:condition="python:accType == 'free'" class="content"><a target="_blank"
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
135 href="http://creativecommons.org/licenses/by-sa/3.0/de/">CC-BY-SA</a> (unless stated otherwise)</td>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
136 <td tal:condition="python:accType != 'free'" class="content">Internal use only<span tal:condition="accType"
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
137 tal:content="string: ($accType)" />, please contact <a href="mailto:library@mpiwg-berlin.mpg.de">library@mpiwg-berlin.mpg.de</a>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
138 (unless stated otherwise)
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
139 </td>
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
140 </tr>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
141 </table>
539
37d122560028 more nicer
casties
parents: 538
diff changeset
142 </tal:block>
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
143 </div>
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
144 </div>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
145 <!-- /main content column -->
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
146
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
147 <div class="col buttons">
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
148 <!-- option block column -->
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
149 <div class="options">
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
150 <h4>Browse</h4>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
151 <ul class="list">
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
152 <li><a class="openbutton" tal:attributes="href python:context.getLink('viewMode','auto')">View full document</a></li>
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
153 </ul>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
154 </div>
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
155
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
156 <div class="options" tal:condition="docpath">
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
157 <h4>Download</h4>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
158 Download full document
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
159 <ul class="list">
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
160 <li><a target="_blank" rel="nofollow" class="download"
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
161 tal:attributes="href python:here.getTextDownloadUrl(type='html',docinfo=docinfo)" target="_blank">as HTML</a></li>
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
162 <li><a target="_blank" rel="nofollow" class="download"
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
163 tal:attributes="href python:here.getTextDownloadUrl(type='xml',docinfo=docinfo)" target="_blank">as XML</a></li>
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
164 </ul>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
165 (copyright and license see below)
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
166 </div>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
167
543
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 542
diff changeset
168 <div class="options" tal:condition="docpath">
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
169 <h4>Search</h4>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
170 <form tal:define="queryType string:fulltextMorph" tal:condition="docpath" tal:attributes="action viewerUrl">
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
171 <input type="hidden"
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
172 tal:define="params python:here.getParams(params={'query':None,'queryType':None,'viewMode':None,'viewLayer':'search'})"
543
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 542
diff changeset
173 tal:repeat="param params" tal:attributes="name param; value python:params[param]" />
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
174 <!-- query text -->
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
175 <input type="text" name="query" tal:attributes="value query" /> <br /> <input type="submit" value="Search" /> <a
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
176 tal:condition="query" tal:attributes="href python:here.getLink('query',None)">Clear</a>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
177 <ul>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
178 <li><input type="radio" name="queryType" value="fulltext" tal:attributes="checked python:queryType=='fulltext'" />
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
179 Exact</li>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
180 <li><input type="radio" name="queryType" value="fulltextMorph"
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
181 tal:attributes="checked python:queryType=='fulltextMorph'" /> All forms</li>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
182 <li><input type="radio" name="queryType" value="ftIndex" tal:attributes="checked python:queryType=='ftIndex'" />
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
183 Fulltext index</li>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
184 <li><input type="radio" name="queryType" value="ftIndexMorph"
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
185 tal:attributes="checked python:queryType=='ftIndexMorph'" /> Morphological index</li>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
186 </ul>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
187 </form>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
188 </div>
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
189
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
190 <div class="options" tal:condition="availableLayers">
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
191 <h4>Metadata</h4>
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
192 <form tal:attributes="action viewerUrl" class="autosubmit">
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
193 <input type="hidden" tal:define="params python:here.getParams(params={'viewLayer':None})" tal:repeat="param params"
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
194 tal:attributes="name param; value python:params[param]" />
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
195 <ul>
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
196 <!-- text layer select buttons (rendered always) -->
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
197 <tal:block tal:repeat="layer availableLayers">
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
198 <tal:block tal:define="mpath string:here/template/layer_index_${layer}/macros/layer_select_li"
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
199 tal:condition="python:exists(mpath)">
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
200 <li metal:use-macro="python:path(mpath)" />
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
201 </tal:block>
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
202 </tal:block>
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
203 </ul>
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
204 <input type="submit" value="Go!" />
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
205 </form>
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
206 </div>
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
207 </div>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
208 <!-- /option block column -->
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
209 </div>
543
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 542
diff changeset
210 <tal:block tal:condition="exists:here/template/site_template.pt/macros/footer">
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 542
diff changeset
211 <!-- footer -->
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
212 <metal:block metal:use-macro="here/template/site_template.pt/macros/footer" />
543
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 542
diff changeset
213 </tal:block>
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
214
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
215 </body>
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
216 <body tal:condition="not:numPages">
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
217 <div class="errortext">Sorry, document doesn't exist.</div>
543
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 542
diff changeset
218 <tal:block tal:condition="exists:here/template/site_template.pt/macros/footer">
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 542
diff changeset
219 <!-- footer -->
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
220 <metal:block metal:use-macro="here/template/site_template.pt/macros/footer" />
543
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 542
diff changeset
221 </tal:block>
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
222 </body>
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
223 </html>