Changeset 1059
- Timestamp:
- 06/10/07 16:31:06 (18 months ago)
- Location:
- trunk
- Files:
-
- 4 modified
-
Changes (modified) (1 diff)
-
lib/OpenGuides/RDF.pm (modified) (2 diffs)
-
t/21_rdf.t (modified) (3 diffs)
-
templates/node_rdf.tt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Changes
r1057 r1059 17 17 If an unknown action is supplied to wiki.cgi, redirect to 18 18 action=display (partial fix for #102) 19 Include <os:map_link> in node RDF (fixes #26). 19 20 20 21 0.60 13 May 2007 -
trunk/lib/OpenGuides/RDF.pm
r1052 r1059 82 82 foreach my $var ( qw( phone fax website opening_hours_text address 83 83 postcode city country latitude longitude username 84 os_x os_y summary ) ) {84 os_x os_y summary map_link ) ) { 85 85 my $val = $metadata{$var}[0] || $defaults{$var} || ""; 86 86 $tt_vars{$var} = $val; … … 104 104 my $is_geospatial; 105 105 foreach my $var ( qw( os_x os_y latitude longitude address postcode 106 opening_hours_text ) ) {106 opening_hours_text map_link ) ) { 107 107 $is_geospatial = 1 if $tt_vars{$var}; 108 108 } -
trunk/t/21_rdf.t
r1016 r1059 16 16 } 17 17 18 plan tests => 2 7;18 plan tests => 28; 19 19 20 20 Wiki::Toolkit::Setup::SQLite::setup( { dbname => "t/node.db" } ); … … 57 57 latitude => "51.524193", 58 58 longitude => "-0.114436", 59 map_link => "http://pubsite.com/calthorpe/get_there.htm", 59 60 summary => "a nice pub", 60 61 } … … 81 82 qr|<dc:title>Wiki::Toolkit Test Site: Calthorpe Arms</dc:title>|, 82 83 "sets the title correctly" ); 84 85 like( $rdfxml, 86 qr|<os:map_link rdf:resource="http://pubsite.com/calthorpe/get_there.htm" />|, 87 "includes map link" ); 83 88 84 89 like( $rdfxml, qr|<foaf:Person rdf:ID="Kake">|, -
trunk/templates/node_rdf.tt
r1051 r1059 78 78 [% END %] 79 79 80 [% IF map_link %] 81 <os:map_link rdf:resource="[% map_link %]" /> 82 [% END %] 83 80 84 [% END %] 81 85
