projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d962efc
)
add new test function: is_SRW
author
Dennis Schafroth
<dennis@indexdata.com>
Thu, 26 Aug 2010 13:24:53 +0000
(15:24 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Thu, 26 Aug 2010 13:24:53 +0000
(15:24 +0200)
client/client.c
patch
|
blob
|
history
diff --git
a/client/client.c
b/client/client.c
index
e77e35c
..
f80bb47
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-2280,6
+2280,22
@@
static int only_z3950(void)
return 0;
}
+static int is_SRW(void)
+{
+ if (!conn)
+ {
+ printf("Not connected yet\n");
+ return 1;
+ }
+ if (protocol == PROTO_HTTP && yaz_matchstr(sru_method, "solr"))
+ {
+ printf("Not supported by SRW\n");
+ return 1;
+ }
+ return 0;
+}
+
+
static int cmd_update_common(const char *arg, int version);
static int cmd_update(const char *arg)