X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=web%2Fhtdocs%2Fchrome%2Flayout.mc;h=fa0d6600dfb829154b52462d8d2ea8d12978ec5b;hp=600b9f001d203aa1ce64e72f94aa1ac2e7e35da2;hb=679e35331b3c4b99f8b941453518f239aa4f7f2b;hpb=e9e146950dc9089b50d770f3b07bc5c82fc0211e diff --git a/web/htdocs/chrome/layout.mc b/web/htdocs/chrome/layout.mc index 600b9f0..fa0d660 100644 --- a/web/htdocs/chrome/layout.mc +++ b/web/htdocs/chrome/layout.mc @@ -1,30 +1,135 @@ -%# $Id: layout.mc,v 1.10 2006-10-20 16:56:07 mike Exp $ +%# $Id: layout.mc,v 1.22 2007-01-02 17:26:40 mike Exp $ <%args> $debug => undef $title $component <%once> -BEGIN { - use vars qw($LIBDIR); - $LIBDIR = $r->dir_config("IRSpyLibDir"); -} -use lib $LIBDIR; +use URI::Escape; +use ZOOM; use ZOOM::IRSpy::Web; -use ZOOM::IRSpy qw(irspy_xpath_context xml_encode); +use ZOOM::IRSpy::Utils qw(isodate xml_encode cql_quote cql_target + irspy_xpath_context 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) %> +% } +

+<%perl> +my $id = $r->param("id"); +{ + # Make up ID for newly created records. It would be more + # rigorously correct, but insanely inefficient, to submit the + # record to Zebra and then search for it; but since we know the + # formula for IDs anyway, we just build one by hand. + my $id = $r->param("id"); + my $host = $r->param("host"); + my $port = $r->param("port"); + my $dbname = $r->param("dbname"); + #warn "id='$id', host='$host', port='$port', dbname='$dbname'"; + #warn "%ARGS = {\n" . join("", map { "\t'$_' => '" . $ARGS{$_} . ",'\n" } sort keys %ARGS) . "}\n"; + if ((!defined $id || $id eq "") && + defined $host && defined $port && defined $dbname) { + $id = "$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! +

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

+


+
+ + Powered by Index Data + +
+ +