Changeset 1060
- Timestamp:
- 06/10/07 17:02:07 (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
r1059 r1060 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).20 19 21 20 0.60 13 May 2007 -
trunk/lib/OpenGuides/RDF.pm
r1059 r1060 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 map_link) ) {84 os_x os_y summary ) ) { 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 map_link) ) {106 opening_hours_text ) ) { 107 107 $is_geospatial = 1 if $tt_vars{$var}; 108 108 } -
trunk/t/21_rdf.t
r1059 r1060 16 16 } 17 17 18 plan tests => 2 8;18 plan tests => 27; 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",60 59 summary => "a nice pub", 61 60 } … … 82 81 qr|<dc:title>Wiki::Toolkit Test Site: Calthorpe Arms</dc:title>|, 83 82 "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" );88 83 89 84 like( $rdfxml, qr|<foaf:Person rdf:ID="Kake">|, -
trunk/templates/node_rdf.tt
r1059 r1060 78 78 [% END %] 79 79 80 [% IF map_link %]81 <os:map_link rdf:resource="[% map_link %]" />82 [% END %]83 84 80 [% END %] 85 81
