X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Fform.mc;h=74d165b558f7905db897801c77fbaaadd944d766;hp=407b3022e4287d33e0670a3c087420ddf508b769;hb=e3baa362a4ce3ba74a87e2793e69405a50ae4506;hpb=0322a96cb28174b6ca694e1f0900135df8c61a9c diff --git a/web/htdocs/details/form.mc b/web/htdocs/details/form.mc index 407b302..74d165b 100644 --- a/web/htdocs/details/form.mc +++ b/web/htdocs/details/form.mc @@ -1,4 +1,4 @@ -%# $Id: form.mc,v 1.2 2006-11-14 16:00:28 mike Exp $ +%# $Id: form.mc,v 1.4 2006-11-15 13:10:42 mike Exp $ <%args> $id => undef $conn @@ -8,7 +8,8 @@ $rec my $xc = irspy_xpath_context($rec); my @fields = ( - [ protocol => 0, "Protocol", "e:serverInfo/\@protocol" ], + [ protocol => [ qw(Z39.50 SRW SRU SRW/U) ], + "Protocol", "e:serverInfo/\@protocol" ], [ host => 0, "Host", "e:serverInfo/e:host" ], [ port => 0, "Port", "e:serverInfo/e:port" ], [ dbname => 0, "Database Name", "e:serverInfo/e:database", @@ -55,7 +56,7 @@ if (defined $update) { ZOOM::IRSpy::_really_rewrite_record($conn, $xc->getContextNode()); } -

<% xml_encode($xc->find("e:databaseInfo/e:title")) %>

+

<% xml_encode($xc->find("e:databaseInfo/e:title"), "[Untitled]") %>

% if ($nchanges) {

The record has been updated.
@@ -71,9 +72,14 @@ foreach my $ref (@fields) { <% $caption %> -% my $data = $xc->find($xpath); -% $data = defined $data ? xml_encode($data) : ""; -% if ($nlines) { +% my $data = xml_encode($xc->find($xpath), ""); +% if (ref $nlines) { + +% } elsif ($nlines) { % } else {