# HG changeset patch # User Sebastien Jodogne # Date 1499786896 -7200 # Node ID a99830eb937c6afb22c55c842ad1a0ad3a4b431a # Parent a0d2f20a8b30fc3f1fbcb8ec6f647b8a35129dfb handling of limit/offset parameters diff -r a0d2f20a8b30 -r a99830eb937c Plugin/QidoRs.cpp --- a/Plugin/QidoRs.cpp Tue Mar 07 10:54:58 2017 +0100 +++ b/Plugin/QidoRs.cpp Tue Jul 11 17:28:16 2017 +0200 @@ -163,10 +163,13 @@ limit_(0), includeAllFields_(false) { + std::string args; + for (uint32_t i = 0; i < request->getCount; i++) { std::string key(request->getKeys[i]); std::string value(request->getValues[i]); + args += " [" + key + "=" + value + "]"; if (key == "limit") { @@ -214,6 +217,8 @@ filters_[OrthancPlugins::ParseTag(*dictionary_, key)] = value; } } + + OrthancPlugins::Configuration::LogInfo("Arguments of QIDO-RS request:" + args); } unsigned int GetLimit() const @@ -267,6 +272,8 @@ result["Expand"] = false; result["CaseSensitive"] = true; result["Query"] = Json::objectValue; + result["Limit"] = limit_; + result["Since"] = offset_; for (Filters::const_iterator it = filters_.begin(); it != filters_.end(); ++it)