From: Niels Erik G. Nielsen Date: Wed, 22 May 2013 11:16:14 +0000 (-0400) Subject: Adds mergekey parameter to search and show X-Git-Tag: v0.0.7~87 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=152e7286bff7812d35fb5a9a4f1a92fd7a406a9e;p=mkjsf-moved-to-github.git Adds mergekey parameter to search and show --- diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/SearchCommand.java b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/SearchCommand.java index af340b0..c314ec6 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/SearchCommand.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/SearchCommand.java @@ -97,6 +97,15 @@ public class SearchCommand extends Pazpar2Command implements ServiceProxyCommand return getParameterValue("rank"); } + public void setMergekey (String mergekey) { + setParameter(new CommandParameter("mergekey","=",mergekey)); + } + + public String getMergekey () { + return getParameterValue("mergekey"); + } + + /** * Sets a facet, in CQL, to restrict the current results, * then executes the search diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/ShowCommand.java b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/ShowCommand.java index c37158b..3b1cf01 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/ShowCommand.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/ShowCommand.java @@ -96,6 +96,13 @@ public class ShowCommand extends Pazpar2Command implements ServiceProxyCommand { return getParameterValue("block"); } + public void setMergekey (String mergekey) { + setParameter(new CommandParameter("mergekey","=",mergekey)); + } + + public String getMergekey () { + return getParameterValue("mergekey"); + } public ShowCommand copy () { ShowCommand newCommand = new ShowCommand(stateMgr);