Changeset 1228


Ignore:
Timestamp:
Oct 18, 2008, 3:51:09 PM (13 years ago)
Author:
nick
Message:

Finish off the metadata discovery things

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r1226 r1228  
    77        Correctly specify all build_requires (#245)
    88        Fix some broken POD (#246)
     9        Metadata discovery features (action=metadata)
     10        JSON support for node details and metatdata discovery
    911
    10120.63    16 August 2008
  • trunk/lib/OpenGuides.pm

    r1227 r1228  
    10241024    my @values;
    10251025    my $type;
    1026     if($args{"type"}) {
     1026    my $may_descend = 0;
     1027    if($args{"type"} && $args{"type"} ne "metadata_type") {
    10271028       $type = $args{"type"};
    10281029       @values = $wiki->store->list_metadata_by_type($args{"type"});
    10291030    } else {
     1031       $may_descend = 1;
    10301032       $type = "metadata_type";
    10311033       @values = $wiki->store->list_metadata_names;
     
    10331035
    10341036    my %tt_vars = ( type          => $type,
     1037                    may_descend   => $may_descend,
    10351038                    metadata      => \@values,
    10361039                    num_results   => scalar @values,
  • trunk/templates/node.tt

    r1139 r1228  
    124124  <a href="[% cgi_url %]?id=[% node_param %];format=rdf">RDF/XML for this
    125125  node</a>
     126  <a href="[% cgi_url %]?id=[% node_param %];format=json">JSON for this
     127  node</a>
    126128  [% IF rss_locale_url %]
    127129    / <a href="[% rss_locale_url %]">RSS feed for this locale</a>
Note: See TracChangeset for help on using the changeset viewer.