Mercurial > hg > orthanc-dicomweb
changeset 186:a99830eb937c
handling of limit/offset parameters
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 11 Jul 2017 17:28:16 +0200 |
parents | a0d2f20a8b30 |
children | f6117663df63 |
files | Plugin/QidoRs.cpp |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)