# HG changeset patch # User Sebastien Jodogne # Date 1449478799 -3600 # Node ID 5e7feeb63d1f5a07842655a02c04500fa31a7fab # Parent 09a737a6bf3698bad6a520f11c416de93e20d471 SlicesShort diff -r 09a737a6bf36 -r 5e7feeb63d1f OrthancServer/SliceOrdering.cpp --- a/OrthancServer/SliceOrdering.cpp Mon Dec 07 09:48:34 2015 +0100 +++ b/OrthancServer/SliceOrdering.cpp Mon Dec 07 09:59:59 2015 +0100 @@ -399,6 +399,8 @@ result["Dicom"] = tmp; + Json::Value slicesShort = Json::arrayValue; + tmp.clear(); for (size_t i = 0; i < GetInstancesCount(); i++) { @@ -407,8 +409,16 @@ { tmp.append(base + "/frames/" + boost::lexical_cast(j)); } + + Json::Value tmp2 = Json::arrayValue; + tmp2.append(GetInstanceId(i)); + tmp2.append(0); + tmp2.append(GetFramesCount(i)); + + slicesShort.append(tmp2); } result["Slices"] = tmp; + result["SlicesShort"] = slicesShort; } }