- Timestamp:
- 06/11/08 16:23:07 (7 months ago)
- Location:
- trunk
- Files:
-
- 4 modified
-
Changes (modified) (1 diff)
-
lib/OpenGuides/RDF.pm (modified) (1 diff)
-
t/21_rdf.t (modified) (1 diff)
-
templates/node_rdf.tt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Changes
r1164 r1166 3 3 More detailed changelogs can be found at 4 4 <http://dev.openguides.org/log/trunk>. 5 6 0.63 7 Link dc:contributor items in RDF output to actual URIs that exist in 8 our system. 5 9 6 10 0.62 8 June 2008 -
trunk/lib/OpenGuides/RDF.pm
r1163 r1166 183 183 INCLUDE_PATH => "$custom_template_path:$template_path" } ); 184 184 185 $tt_vars{full_cgi_url} = $config->script_url . $config->script_name; 186 185 187 my $rdf; 186 188 $tt->process( "node_rdf.tt", \%tt_vars, \$rdf ); -
trunk/t/21_rdf.t
r1081 r1166 99 99 "sets the title correctly" ); 100 100 101 like( $rdfxml, qr| <foaf:Person rdf:ID="Kake">|,101 like( $rdfxml, qr|id=Kake;format=rdf#obj"|, 102 102 "last username to edit used as contributor" ); 103 like( $rdfxml, qr| <foaf:Person rdf:ID="Anonymous">|,103 like( $rdfxml, qr|id=Anonymous;format=rdf#obj"|, 104 104 "... as well as previous usernames" ); 105 105 -
trunk/templates/node_rdf.tt
r1133 r1166 21 21 22 22 [% FOREACH contributor = contributors.values %] 23 <dc:contributor> 24 <foaf:Person rdf:ID="[% contributor.user_id %]"> 25 <foaf:nick>[% contributor.username %]</foaf:nick> 26 </foaf:Person> 27 </dc:contributor> 23 <dc:contributor rdf:resource="[% full_cgi_url %]?id=[% contributor.user_id %];format=rdf#obj" foaf:name="[% contributor.user_id %]" /> 28 24 [% END %] 29 25
