read database name from config
[irspy-moved-to-github.git] / web / htdocs / details / full.mc
index 4157b1f..baec260 100644 (file)
@@ -3,7 +3,8 @@
 $id
 </%args>
 <%perl>
-my $conn = new ZOOM::Connection("localhost:8018/IR-Explain---1");
+my $db = ZOOM::IRSpy::connect_to_registry();
+my $conn = new ZOOM::Connection($db);
 $conn->option(elementSetName => "zeerex");
 my $query = cql_target($id);
 my $rs = $conn->search(new ZOOM::Query::CQL($query));
@@ -97,7 +98,7 @@ if ($n == 0) {
 
 sub calc_reliability_wrapper {
     my($id, $xc) = @_;
-    return calc_reliability($xc);
+    return calc_reliability_string($xc);
 }
 
 sub calc_init_options {