read database name from config
[irspy-moved-to-github.git] / web / htdocs / details / ap.mc
index abec956..51ba3ea 100644 (file)
@@ -4,7 +4,8 @@ $id
 $set
 </%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));