<target>bagel.indexdata.dk:80</target>
</virtual>
<virtual>
+ <database>cf</database>
+ <target>connect.indexdata.com</target>
+ </virtual>
+ <virtual>
<database>gils</database>
- <target>indexdata.dk/gils</target>
+ <target>z3950.indexdata.dk/gils</target>
</virtual>
<virtual>
<database>marc</database>
- <target>indexdata.dk/marc</target>
+ <target>z3950.indexdata.dk/marc1</target>
</virtual>
<virtual>
<database>loc</database>
Z_GDU *gdu = init_package.response().get();
// we hope to get an init response
- error_code = YAZ_BIB1_DATABASE_UNAVAILABLE;
+ error_code = 0;
if (gdu && gdu->which == Z_GDU_Z3950
&& gdu->u.z3950->which == Z_APDU_initResponse)
{
}
mp::util::get_init_diagnostics(res, error_code, addinfo);
}
+ if (error_code == 0)
+ {
+ std::list<std::string>::const_iterator db_it = databases.begin();
+ error_code = YAZ_BIB1_ACCESS_TO_SPECIFIED_DATABASE_DENIED;
+ if (db_it != databases.end())
+ addinfo = *db_it;
+ }
if (!init_package.session().is_closed())
{
Package close_package(b->m_backend_session, package.origin());