X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fconnection.c;h=3ef5cf6b94cde4708fbb0b4d25cd70fa885c7117;hb=09e752194178c47e62eb2cc45bdf58728a87ea54;hp=12785b9ee13036e775769bd1bae4307bbcdc7030;hpb=9593a4408b5f2ebf87181d721ab93cecf97e5444;p=pazpar2-moved-to-github.git diff --git a/src/connection.c b/src/connection.c index 12785b9..3ef5cf6 100644 --- a/src/connection.c +++ b/src/connection.c @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2010 Index Data + Copyright (C) 2006-2011 Index Data Pazpar2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -393,6 +393,7 @@ static int connection_connect(struct connection *con, iochan_man_t iochan_man) const char *charset; const char *sru; const char *sru_version = 0; + const char *extra_args = 0; struct session_database *sdb = client_get_database(con->client); const char *zproxy = session_setting_oneval(sdb, PZ_ZPROXY); @@ -423,6 +424,8 @@ static int connection_connect(struct connection *con, iochan_man_t iochan_man) if ((sru_version = session_setting_oneval(sdb, PZ_SRU_VERSION)) && *sru_version) ZOOM_options_set(zoptions, "sru_version", sru_version); + if ((extra_args = session_setting_oneval(sdb, PZ_EXTRA_ARGS)) && *extra_args) + ZOOM_options_set(zoptions, "extraArgs", extra_args); if (!(link = ZOOM_connection_create(zoptions))) {