</para>
</listitem>
</varlistentry>
+
+ <varlistentry>
+ <term>pz:sru_version</term>
+ <listitem>
+ <para>
+ This allows SRU version to be specified. If unset Pazpar2
+ will the default of YAZ (currently 1.2). Should be set
+ to 1.1 or 1.2.
+ </para>
+ </listitem>
+ </varlistentry>
</variablelist>
</refsect2>
<!-- Simple test against a local SRU server (could be yaz-ztest) -->
<set name="pz:sru" value="get"/> <!-- must be get, post or soap -->
+ <set name="pz:sru_version" value="1.2"/>
<set name="pz:name" value="Local Test"/>
<!-- mapping for unqualified search -->
ZOOM_connection link = 0;
struct host *host = connection_get_host(con);
ZOOM_options zoptions = ZOOM_options_create();
- char *auth;
- char *sru;
+ const char *auth;
+ const char *sru;
+ const char *sru_version = 0;
char ipport[512] = "";
struct session_database *sdb = client_get_database(con->client);
if (apdulog && *apdulog)
ZOOM_options_set(zoptions, "apdulog", apdulog);
- if ((auth = (char*) session_setting_oneval(sdb, PZ_AUTHENTICATION)))
+ if ((auth = session_setting_oneval(sdb, PZ_AUTHENTICATION)))
ZOOM_options_set(zoptions, "user", auth);
- if ((sru = (char*) session_setting_oneval(sdb, PZ_SRU)) && *sru)
+ if ((sru = session_setting_oneval(sdb, PZ_SRU)) && *sru)
ZOOM_options_set(zoptions, "sru", sru);
+ if ((sru_version = session_setting_oneval(sdb, PZ_SRU_VERSION))
+ && *sru_version)
+ ZOOM_options_set(zoptions, "sru_version", sru_version);
if (!(link = ZOOM_connection_create(zoptions)))
{