Changeset 759

Show
Ignore:
Timestamp:
04/04/07 17:01:18 (2 years ago)
Author:
sgillies
Message:

Bring kml template customizations in synch with PleiadesGeocoder (#215)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • PleiadesEntity/trunk/profiles/default/skins/custom/kml_macros.pt

    r713 r759  
    1 <?xml version="1.0" encoding="UTF-8"?> 
     1<?xml version="1.0" encoding="utf-8"?> 
    22<kml 
    33  xmlns="http://earth.google.com/kml/2.1" 
     
    55  xmlns:metal="http://xml.zope.org/namespaces/metal" 
    66  > 
    7  
    87  <Feature> 
    98    <metal:description_macro metal:define-macro="description"> 
    10       <description tal:content="structure python:''' 
     9      <description> 
     10        <span tal:replace="structure string:&lt;![CDATA[" /> 
     11          <div> 
     12            <p> 
     13              <span tal:content="info/description">ITEM DESCRIPTION</span> 
     14              <img align="right" valign="top" hspace="4" width="149" src="http://pleiades.stoa.org/images/awmcrose.png"/> 
     15            </p> 
     16            <br clear="right"/> 
     17            <p>URL:  
     18              <a  
     19                tal:attributes="href info/url"  
     20                tal:content="info/url" 
     21                >ITEM URL 
     22              </a> 
     23            </p> 
     24            <br clear="right"/> 
     25            <p> 
     26              <a href="http://pleiades.stoa.org">Pleiades</a> is hosted by the  
     27              <a href="http://www.stoa.org/?page_id=519">Stoa Consortium for Electronic Publication in the Humanities</a> 
     28              and sponsored by the <a href="http://www.neh.gov">National Endowment for the Humanities</a>. 
     29            </p> 
     30          </div> 
     31        <span tal:replace="structure string:]]&gt;" /> 
     32      </description> 
     33    </metal:description_macro> 
     34    <metal:geometry_macro metal:define-macro="geometry"> 
     35      <Point> 
     36        <coordinates 
     37          tal:content="python:','.join(info['spatialCoordinates'].split())" 
     38          >COORDINATE LIST 
     39        </coordinates> 
     40      </Point> 
     41    </metal:geometry_macro> 
     42  </Feature> 
     43</kml> 
    1144 
    12 &lt;![CDATA[ 
    13 &lt;div&gt; 
    14  
    15 &lt;p&gt; 
    16 %s 
    17 &lt;img align='right' valign='top' hspace='4' width='149' height='149' src='http://pleiades.stoa.org/images/awmcrose.png'&gt; 
    18 &lt;/p&gt; 
    19  
    20 &lt;br clear='right'&gt; 
    21 &lt;p&gt; 
    22 URL: &lt;a href='%s'&gt;%s&lt;/a&gt; 
    23 &lt;/p&gt; 
    24  
    25 &lt;br clear='right'&gt; 
    26 &lt;p&gt; 
    27 &lt;a href='http://pleiades.stoa.org'&gt;Pleiades&lt;/a&gt; is hosted by the  
    28 &lt;a href='http://www.stoa.org/?page_id=519'&gt;Stoa Consortium for Electronic Publication in the Humanities&lt;/a&gt; 
    29 and sponsored by the &lt;a href='http://www.neh.gov'&gt;National Endowment for the Humanities&lt;/a&gt;. 
    30 &lt;/p&gt; 
    31  
    32 &lt;/div&gt; 
    33 ]]&gt; 
    34  
    35       ''' % (info['description'], info['url'], info['url'])">DESCRIPTION</description> 
    36     </metal:description_macro> 
    37   </Feature> 
    38  
    39 </kml>