From: Mike Taylor Date: Mon, 6 Nov 2006 17:34:58 +0000 (+0000) Subject: Calculate record-syntaxes. X-Git-Tag: CPAN-v1.02~54^2~774 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=22758a77f0c1cb3f41357468be56cd6b9207baff Calculate record-syntaxes. --- diff --git a/web/htdocs/details/full.mc b/web/htdocs/details/full.mc index bc8a739..a152a74 100644 --- a/web/htdocs/details/full.mc +++ b/web/htdocs/details/full.mc @@ -1,4 +1,4 @@ -%# $Id: full.mc,v 1.10 2006-11-06 17:24:00 mike Exp $ +%# $Id: full.mc,v 1.11 2006-11-06 17:34:58 mike Exp $ <%args> $id @@ -48,7 +48,7 @@ if ($n == 0) { [ "Bib-1 Use attributes" => \&calc_ap, $xc, "bib-1" ], [ "Dan-1 Use attributes" => \&calc_ap, $xc, "dan-1" ], [ "Operators" => \&calc_boolean, $xc ], - [ "Record syntaxes" => sub { "### SUTRS, USmarc, Danmarc" } ], + [ "Record syntaxes" => \&calc_recsyn, $xc ], [ "Explain" => sub { "### CategoryList, TargetInfo, DatabaseInfo, RecordSyntaxInfo, AttributeSetInfo, AttributeDetails" } ], ); @@ -134,4 +134,11 @@ sub calc_boolean { return join(", ", map { $_->findvalue('@operator') } @nodes); } +sub calc_recsyn { + my($xc) = @_; + + my @nodes = $xc->findnodes('e:recordInfo/e:recordSyntax'); + return join(", ", map { $_->findvalue('@name') } @nodes); +} +