Finally merged the branch 'apache20'(+'apache2') back to the main trunk.
[www.jankratochvil.net.git] / project / kewensis / Index.pm
old mode 100755 (executable)
new mode 100644 (file)
similarity index 67%
rename from project/kewensis/ListItem.pm
rename to project/kewensis/Index.pm
index ad74f7f..61244c9
@@ -1,8 +1,6 @@
-#! /usr/bin/perl
-# 
 # $Id$
-# Definition of 'My::Project::kewensis' for list.cgi.pl
-# Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
+# Main page of 'My::Project::kewensis'
+# Copyright (C) 2003-2005 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
 # 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -18,7 +16,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 
-package project::kewensis::ListItem;
+package project::kewensis::Index;
 require 5.6.0; # at least 'use warnings;' but we need some 5.6.0+ modules anyway
 our $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
 our $CVS_ID=q$Id$;
@@ -26,6 +24,7 @@ use strict;
 use warnings;
 
 use My::Web;
+Wuse 'project::Lib';
 
 
 our @ListItem=(
@@ -33,11 +32,11 @@ our @ListItem=(
                "platform"=>"web",
                "priority"=>120,
                "cvs"=>"kewensis",
-               "summary"=>a_href('http://www.ipni.org/','Plant Name Index').' custom engine',
+               "summary"=>sub { return a_href('http://www.ipni.org/','Plant Name Index').' custom engine'; },
                "license"=>"PD",
                "maintenance"=>"ready",
                "language"=>"PHP, Perl",
-               "description"=><<"HERE",
+               "description"=>sub { return <<"HERE"; },
 <p>@{[ a_href 'http://www.ipni.org/','International Plant Name Index' ]}
 provides information about plants in duplicated and unconveniently searchable
 pages. You can download their database and run your own engine on it locally.</p>
@@ -46,4 +45,22 @@ plants and it groups synonyms of the same plant.</p>
 HERE
                );
 
+sub handler
+{
+project::Lib->init();
+
+
+print <<"HERE";
+<!--iframe src="out-list.html" width="90%" height="1500"-->
+<p>@{[ a_href 'out-list.html','Output listing illustration.' ]}</p>
+<!--/iframe-->
+@{[ vskip "3ex" ]}
+<!--iframe src="out-edit.html" width="90%" height="500"-->
+<p>@{[ a_href 'out-edit.html','Record editing illustration.' ]}</p>
+<!--/iframe-->
+HERE
+
+
+exit;
+}
 1;