projects
/
irspy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b9e75cf
)
Display supported Bath-profile searches.
author
Mike Taylor
<mike@miketaylor.org.uk>
Wed, 9 Jun 2010 16:23:18 +0000
(17:23 +0100)
committer
Mike Taylor
<mike@miketaylor.org.uk>
Wed, 9 Jun 2010 16:23:18 +0000
(17:23 +0100)
web/htdocs/details/full.mc
patch
|
blob
|
history
diff --git
a/web/htdocs/details/full.mc
b/web/htdocs/details/full.mc
index
0ff52e6
..
546419b
100644
(file)
--- 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" ],
[ "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 ],
[ "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;
}
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) = @_;
sub calc_boolean {
my($id, $xc) = @_;