From: Mike Taylor Date: Mon, 6 Nov 2006 17:34:58 +0000 (+0000) Subject: Calculate record-syntaxes. X-Git-Tag: CPAN-v1.02~829 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=31907e40f4977a12c9255c87e4877bb5dfd7feab;p=irspy-moved-to-github.git 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); +} +