Changeset 758


Ignore:
Timestamp:
Apr 8, 2006, 4:40:52 AM (15 years ago)
Author:
Earle Martin
Message:

New about screen (action=about) and DOAP data screen (action=about;format=rdf). Link to same in footer template. Closes #42.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r757 r758  
    110.53
    22        Miscellanous fixes for mod_perl.
     3        #42 New "About" screen. Try action=about and action=about;format=rdf.
    34        #97 Use "summary" metadata to generate HTML meta descriptions.
    45        Support for Atom feeds for RecentChanges; new OpenGuides::Feed
  • trunk/lib/OpenGuides.pm

    r753 r758  
    721721}
    722722
     723sub display_about {
     724    my ($self, %args) = @_;
     725
     726    my $output;
     727
     728    if ($args{format} && $args{format} =~ /^rdf$/i) {
     729        $output = qq{Content-Type: application/rdf+xml
     730
     731<?xml version="1.0" encoding="UTF-8"?>
     732<rdf:RDF xmlns      = "http://usefulinc.com/ns/doap#"
     733         xmlns:rdf  = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     734         xmlns:foaf = "http://xmlns.com/foaf/0.1/">
     735<Project rdf:ID="OpenGuides">
     736  <name>OpenGuides</name>
     737
     738  <created>2003-04-29</created>
     739 
     740  <shortdesc xml:lang="en">
     741    A wiki engine for collaborative description of places with specialised
     742    geodata metadata features.
     743  </shortdesc>
     744
     745  <description xml:lang="en">
     746    OpenGuides is a collaborative wiki environment, written in Perl, for
     747    building guides and sharing information, as both human-readable text
     748    and RDF. The engine contains a number of geodata-specific metadata
     749    mechanisms such as locale search, node classification and integration
     750    with Google Maps.
     751  </description>
     752
     753  <homepage rdf:resource="http://openguides.org/" />
     754  <mailing-list rdf:resource="http://openguides.org/mm/listinfo/openguides-dev/" />
     755  <mailing-list rdf:resource="http://urchin.earth.li/mailman/listinfo/openguides-commits/" />
     756
     757  <maintainer>
     758    <foaf:Person>
     759      <foaf:name>Dominic Hargreaves</foaf:name>
     760      <foaf:homepage rdf:resource="http://www.larted.org.uk/~dom/" />
     761    </foaf:Person>
     762  </maintainer>
     763
     764  <repository>
     765    <SVNRepository>
     766      <location rdf:resource="https://urchin.earth.li/svn/openguides/" />
     767      <browse rdf:resource="http://dev.openguides.org/browser" />
     768    </SVNRepository>
     769  </repository>
     770
     771  <release>
     772    <Version>
     773      <revision>$VERSION</revision>
     774    </Version>
     775  </release>
     776
     777  <download-page rdf:resource="http://search.cpan.org/dist/OpenGuides/" />
     778 
     779  <!-- Freshmeat category: Internet :: WWW/HTTP :: Dynamic Content -->
     780  <category rdf:resource="http://freshmeat.net/browse/92/" />
     781 
     782  <license rdf:resource="http://www.opensource.org/licenses/gpl-license.php" />
     783  <license rdf:resource="http://www.opensource.org/licenses/artistic-license.php" />
     784
     785</Project>
     786
     787</rdf:RDF>};
     788    }
     789    else {
     790        my $site_name  = $self->config->{site_name};
     791        my $script_url = $self->config->{script_url};
     792        $output = qq{Content-Type: text/html; charset=utf-8
     793
     794<html>
     795<head>
     796  <title>About $site_name</title>
     797<style type="text/css">
     798body        { margin: 0px; }
     799#content    { padding: 50px; margin: auto; width: 50%; }
     800h1          { margin-bottom: 0px; font-style: italic; }
     801h2          { margin-top: 0px; }
     802#logo       { text-align: center; }
     803#logo a img { border: 1px solid #000; }
     804#about      { margin: 0em 0em 1em 0em; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
     805#meta       { font-size: small; text-align: center;}
     806</style>
     807<link rel="alternate"
     808  type="application/rdf+xml"
     809  title="DOAP (Description Of A Project) profile for this site's software"
     810  href="$script_url?action=about;format=rdf" />
     811</head>
     812<body>
     813<div id="content">
     814<div id="logo">
     815<a href="http://openguides.org/"><img
     816src="http://openguides.org/img/logo.jpg" alt="OpenGuides.org"></a>
     817<h1><a href="$script_url">$site_name</a></h1>
     818<h2>is powered by <a href="http://openguides.org/">OpenGuides</a> -<br>
     819the guides built by you.</h2>
     820<h3>version <a href="http://search.cpan.org/~dom/OpenGuides-$VERSION">$VERSION</a></h3>
     821</div>
     822<div id="about">
     823<p>
     824<a href="http://www.w3.org/RDF/"><img
     825src="http://openguides.org/img/rdf_icon.png" width="44" height="48"
     826style="float: right; margin-left: 10px; border: 0px"></a> OpenGuides is a
     827web-based collaborative <a href="http://wiki.org/wiki.cgi?WhatIsWiki">wiki</a>
     828environment for building guides and sharing information, as both
     829human-readable text and <a href="http://www.w3.org/RDF/"><acronym
     830title="Resource Description Framework">RDF</acronym></a>. The engine contains
     831a number of geodata-specific metadata mechanisms such as locale search, node
     832classification and integration with <a href="http://maps.google.com/">Google
     833Maps</a>.
     834</p>
     835<p>
     836OpenGuides is written in <a href="http://www.perl.org/">Perl</a>, and is
     837made available under the same license as Perl itself (dual <a
     838href="http://dev.perl.org/licenses/artistic.html" title='The "Artistic Licence"'>Artistic</a> and <a
     839href="http://www.opensource.org/licenses/gpl-license.php"><acronym
     840title="GNU Public Licence">GPL</acronym></a>). Developer information for the
     841project is available from the <a href="http://dev.openguides.org/">OpenGuides
     842development site</a>.
     843</p>
     844<p>
     845Copyright &copy;2003-2006, <a href="http://openguides.org/">The OpenGuides
     846Project</a>. "OpenGuides", "[The] Open Guide To..." and "The guides built by
     847you" are trademarks of The OpenGuides Project. Any uses on this site are made
     848with permission.
     849</p>
     850</div>
     851<div id="meta">
     852<a href="$script_url?action=about;format=rdf"><acronym
     853title="Description Of A Project">DOAP</acronym> RDF version of this
     854information</a>
     855</div>
     856</div>
     857</body>
     858</html>};
     859    }
     860   
     861    return $output if $args{return_output};
     862    print $output;
     863}
     864
    723865=item B<commit_node>
    724866
     
    9781120}
    9791121
    980 =back
    9811122
    9821123=head1 BUGS AND CAVEATS
  • trunk/templates/footer.tt

    r716 r758  
    2222    </p>
    2323    <p>
    24       This wiki powered by <a href="http://openguides.org/">OpenGuides</a> (version [% openguides_version %]).
     24      Powered by <a href="[% full_cgi_url%]?action=about">OpenGuides [% openguides_version %]</a>.
    2525    </p>
    2626  [% END %]
Note: See TracChangeset for help on using the changeset viewer.