From 152e7286bff7812d35fb5a9a4f1a92fd7a406a9e Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Wed, 22 May 2013 07:16:14 -0400 Subject: [PATCH] Adds mergekey parameter to search and show --- .../com/indexdata/mkjsf/pazpar2/commands/SearchCommand.java | 9 +++++++++ .../com/indexdata/mkjsf/pazpar2/commands/ShowCommand.java | 7 +++++++ 2 files changed, 16 insertions(+) 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); -- 1.7.10.4