Changeset 632


Ignore:
Timestamp:
May 26, 2005, 7:43:47 PM (17 years ago)
Author:
Earle Martin
Message:

add geo:lat, geo:lon and rss link to items

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/rdf_index.tt

    r631 r632  
    77  xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
    88  xmlns:foaf="http://xmlns.com/foaf/0.1/"
     9  xmlns="http://purl.org/rss/1.0/"
    910>
    1011
     
    1314  <dc:title>[% CGI.escapeHTML(criterion.name) %]</dc:title>
    1415[% ELSE %]
    15   <dc:title>Full site index</dc:title>
     16  <dc:title>RDF index</dc:title>
    1617[% END %]
    1718  <foaf:topic rdf:resource="#listing" />
    1819</rdf:Description>
    1920
    20 [% USE Dumper %]
     21<!-- [% nodes.size %] nodes found. -->
     22
    2123<rdf:Bag rdf:ID="listing">
    2224[%- FOREACH node = nodes %]
     
    3436      <rdfs:seeAlso rdf:resource="[% full_cgi_url %]?id=[% node.param %];format=rdf" />
    3537      <dc:title>[% node.name %]</dc:title>
     38      [% IF metadata.latitude.list.first AND metadata.longitude.list.first %]
     39      <geo:lat>[% metadata.latitude.list.first %]</geo:lat>
     40      <geo:long>[% metadata.longitude.list.first %]</geo:long>
     41      [% END %]
     42      <link>[% full_cgi_url %]?[% node.param %]</link>
    3643    </[% nodeType %]>
    3744  </rdf:li>
Note: See TracChangeset for help on using the changeset viewer.