X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fchrome%2Flayout.mc;h=1ec34b32d535ebca42a0c5a2e0e2a5085c1d1cff;hb=6b614447756888f630e7af280cb9c03b98ec6b4e;hp=d44c17a87edd212a4d602273cc13e8f074769d91;hpb=158733952295baf05923238dbaf4f439ef8aa2df;p=irspy-moved-to-github.git diff --git a/web/htdocs/chrome/layout.mc b/web/htdocs/chrome/layout.mc index d44c17a..1ec34b3 100644 --- a/web/htdocs/chrome/layout.mc +++ b/web/htdocs/chrome/layout.mc @@ -1,31 +1,142 @@ -%# $Id: layout.mc,v 1.11 2006-10-26 17:22:15 mike Exp $ +%# $Id: layout.mc,v 1.30 2007-04-27 14:04:40 mike Exp $ <%args> $debug => undef $title $component <%once> -use URI::Escape; -BEGIN { - use vars qw($LIBDIR); - $LIBDIR = $r->dir_config("IRSpyLibDir"); -} -use lib $LIBDIR; +use URI::Escape qw(uri_escape uri_escape_utf8); +use ZOOM; use ZOOM::IRSpy::Web; -use ZOOM::IRSpy qw(irspy_xpath_context xml_encode); +use ZOOM::IRSpy::Utils qw(isodate xml_encode cql_target cql_quote + irspy_xpath_context irspy_make_identifier + irspy_record2identifier + irspy_identifier2target modify_xml_document + bib1_access_point); -<& /chrome/head.mc, title => $title &> +% $r->content_type("text/html; charset=utf-8"); + + + + + IRSpy: <% xml_encode($title) %> + + + -<& /chrome/bannerrow.mc, title => $title &> + + + +
-<& /chrome/lmenu.mc &> + + + + +
+   + + + + + +

-<& /chrome/menu.mc &> +

+ Home
+ Test all targets
+ Find a target
+ Add a target
+ Statistics
+

+

+ Show targets +
+% foreach my $i ('a' .. 'z') { + <% uc($i) %> +% } + [Others] +

+<%perl> +my $id = $r->param("id"); +{ + # Make up ID for newly created records. + my $protocol = $r->param("protocol"); + my $host = $r->param("host"); + my $port = $r->param("port"); + my $dbname = $r->param("dbname"); + #warn "id='$id', protocol='$protocol' host='$host', port='$port', dbname='$dbname'"; + #warn "%ARGS = {\n" . join("", map { "\t'$_' => '" . $ARGS{$_} . ",'\n" } sort keys %ARGS) . "}\n"; + if ((!defined $id || $id eq "") && + defined $protocol && defined $host && + defined $port && defined $dbname) { + $id = irspy_make_identifier($protocol, $host, $port, $dbname); + #warn "id set to '$id'"; + } +} + +% if (defined $id && $r->param("op") ne "copy") { +
+ This Target +
+ Show details +
+ ">Edit details +
+ ">Copy target +
+ Delete target +

+ ">Quick Test +
+ ">Full Test +

+

+ XML +

+<%doc> +
+% my $host = "bagel.indexdata.dk"; +% my $port = 210; + All databases on this server + +
+% } +

+ Documentation +
+ Contents +

+

 

+

+ Valid XHTML 1.0 Strict +
+ Valid CSS! +

  @@ -33,4 +144,14 @@ use ZOOM::IRSpy qw(irspy_xpath_context xml_encode);
-<& /chrome/tail.mc &> +

+


+
+ + Powered by Index Data + +
+ +