X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=web%2Fhtdocs%2Fdetails%2Ffull.mc;h=6655727664a3d0aa44de705f6b6cb77ae3ec6929;hb=137b6b21a1b8443f83d6ebd69cf4121d7596da6c;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..6655727 100644 --- a/web/htdocs/details/full.mc +++ b/web/htdocs/details/full.mc @@ -22,6 +22,7 @@ if ($n == 0) { [ Host => "e:serverInfo/e:host" ], [ Port => "e:serverInfo/e:port" ], [ "Database Name" => "e:serverInfo/e:database" ], + [ "Access Name (Unique DB)" => "e:databaseInfo/i:udb" ], [ "Type of Library" => "i:status/i:libraryType" ], # [ "Username (if needed)" => "e:serverInfo/e:authentication/e:user" ], # [ "Password (if needed)" => "e:serverInfo/e:authentication/e:password" ], @@ -45,11 +46,13 @@ 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 ], [ "Explain" => \&calc_explain, $xc ], [ "Multiple OPAC records" => \&calc_mor, $xc ], + [ "Piggyback searching" => \&calc_piggyback, $xc ], ); my $title = $xc->find("e:databaseInfo/e:title"); @@ -159,6 +162,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) = @_; @@ -173,6 +185,7 @@ sub calc_boolean { sub calc_nrs { _calc_boolean(@_, 'i:status/i:named_resultset[@ok = "1"]') } sub calc_mor { _calc_boolean(@_, 'i:status/i:multiple_opac[@ok = "1"]') } +sub calc_piggyback { _calc_boolean(@_, 'i:status/i:piggyback[@ok = "1"]') } sub _calc_boolean { my($id, $xc, $xpath) = @_;