yaz/commit

fix reconcile

authorMichiel Hildebrand
Tue Nov 8 10:55:57 2011 +0100
committerMichiel Hildebrand
Tue Nov 8 10:55:57 2011 +0100
commita3a50f692c933d340aaae8e7c77c083b8033eda9
treeba0b5d16e99a8bbfdd0169eb216903641921f4a3
parentcdf70aa2f147319611c6da0269656d918a83b14f
Diff style: patch stat
diff --git a/api/reconcile.pl b/api/reconcile.pl
index 89fbc4e..72dc39c 100644
--- a/api/reconcile.pl
+++ b/api/reconcile.pl
@@ -53,14 +53,20 @@ http_reconcile(Request) :-
 				[json,
 				 optional(true),
 				 description('a json object of the form {q1:{query:STRING}, ...}')]),
+			  limit(Limit,
+				[default(3),
+				 description('max number of results')]),
+			  type(Type,
+			       [default([]),
+				description('filter by type')]),
+			  properties(Properties,
+				     [default([]),
+				      description('other filters')]),
 			  callback(Callback,
 				   [optional(true),
 				    description('callback function for JSONP results')
 				   ])
 			]),
-	Limit = 3,
-	Type = [],
-	Properties = [],
 	(   nonvar(Queries), Queries = json(QueryList)
 	->  reconcile_list(QueryList, Limit, Type, Properties, Results),
 	    reply(Callback, json(Results))