annotate zpt/layer_text_gis.zpt @ 526:3f375a048402

moved search and dict into separate layers. removed search_template. added tocMode=concordance. fixed bug with paging tocs.
author casties
date Tue, 10 Apr 2012 19:41:44 +0200
parents 70c3ae5eac7c
children 6cdc31e9ed8e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
525
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml">
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
4 <head>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
5 <!-- not used here
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
6 <metal:block metal:define-macro="html_head">
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
7 </metal:block>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
8 -->
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
9 </head>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
10 <body>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
11 <!-- right-side options -->
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
12 <div class="col buttons">
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
13 <!-- LAYER DISPLAY OPTION -->
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
14 <ul>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
15 <metal:block metal:define-macro="layer_select_li">
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
16 <li tal:condition="python:docinfo.get('numPlaces',0)">
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
17 <input type="checkbox" class="autosubmit" name="viewLayer" value="gis"
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
18 tal:attributes="checked python:'gis' in viewLayers" /> Places<br />
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
19 </li>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
20 </metal:block>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
21 </ul>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
22 </div>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
23
526
3f375a048402 moved search and dict into separate layers.
casties
parents: 525
diff changeset
24 <metal:block metal:define-macro="options_box" tal:condition="python:'gis' in viewLayers">
525
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
25 <!--"BEGIN PLACES"-->
526
3f375a048402 moved search and dict into separate layers.
casties
parents: 525
diff changeset
26 <div class="options">
525
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
27 <tal:block
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
28 tal:define="
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
29 name docinfo/documentName;
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
30 places python:here.getPlacesOnPage(docinfo=docinfo, pn=pn);
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
31 pidlist python:','.join([p['id'] for p in places]);">
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
32 <h4>Places</h4>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
33 <ul>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
34 <li>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
35 <a
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
36 tal:attributes="href python:'http://mappit.mpiwg-berlin.mpg.de/db/RESTdb/db/mpdl/%s?id=%s&format=gis'%(name,pidlist)"
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
37 target="_blank">on this page</a>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
38 </li>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
39 <li>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
40 <a
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
41 tal:attributes="href python:'http://mappit.mpiwg-berlin.mpg.de/db/RESTdb/db/mpdl/%s?format=gis'%(name)"
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
42 target="_blank">in whole document</a>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
43 </li>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
44 </ul>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
45 </tal:block>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
46 </div>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
47 <!--"END PLACES"-->
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
48 </metal:block>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
49
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
50 </body>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
51
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
52 </html>