X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Ffull.mc;h=546419b54fce24b93aa2405049ba0e8a2eb741ad;hb=1eaed6aa4a401a236ad0b3f3c0c39cebee6090d8;hp=0ff52e617ee0ee0817fcf897fd96e6fb892e11f0;hpb=6139331b9c46136cbd8c501ee497ad381ec489e6;p=irspy-moved-to-github.git diff --git a/web/htdocs/details/full.mc b/web/htdocs/details/full.mc index 0ff52e6..546419b 100644 --- a/web/htdocs/details/full.mc +++ b/web/htdocs/details/full.mc @@ -45,6 +45,7 @@ if ($n == 0) { [ "Services" => \&calc_init_options, $xc ], [ "Bib-1 Use attributes" => \&calc_ap, $xc, "bib-1" ], [ "Dan-1 Use attributes" => \&calc_ap, $xc, "dan-1" ], + [ "Bath Profile searches" => \&calc_bath, $xc ], [ "Operators" => \&calc_boolean, $xc ], [ "Named Result Sets" => \&calc_nrs, $xc ], [ "Record syntaxes" => \&calc_recsyn, $xc ], @@ -159,6 +160,15 @@ sub _list_ap { return sort { $a <=> $b } map { $_->findvalue(".") } @nodes; } +sub calc_bath { + my($id, $xc) = @_; + + my @nodes = $xc->findnodes('i:status/i:search_bath[@ok = "1"]'); + my $res = join(", ", map { $_->findvalue('@name') } @nodes); + $res = "[none]" if $res eq ""; + return $res; +} + sub calc_boolean { my($id, $xc) = @_;