diff OrthancServer/Sources/OrthancWebDav.cpp @ 4935:acd3f72e2a21 more-tags

split ExpandResource in 2: read from DB and serialize to json. This will allow us to merge requested tags from both the DB and the file system
author Alain Mazy <am@osimis.io>
date Thu, 10 Mar 2022 19:00:43 +0100
parents 6eff25f70121
children 8422e4f99a18
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancWebDav.cpp	Thu Mar 10 09:03:24 2022 +0100
+++ b/OrthancServer/Sources/OrthancWebDav.cpp	Thu Mar 10 19:00:43 2022 +0100
@@ -259,7 +259,7 @@
                        const Json::Value* dicomAsJson  /* unused (*) */)  ORTHANC_OVERRIDE
     {
       Json::Value resource;
-      if (context_.GetIndex().ExpandResource(resource, publicId, level_, DicomToJsonFormat_Human))
+      if (context_.ExpandResource(resource, publicId, level_, DicomToJsonFormat_Human))
       {
         if (success_)
         {