changeset 4241:3510da0e260c

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 09 Oct 2020 12:07:23 +0200
parents 799c0c527ced
children 5cfa6ba75dfc
files OrthancServer/Sources/OrthancWebDav.cpp
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancWebDav.cpp	Fri Oct 09 12:02:40 2020 +0200
+++ b/OrthancServer/Sources/OrthancWebDav.cpp	Fri Oct 09 12:07:23 2020 +0200
@@ -45,7 +45,7 @@
 
 static const char* const BY_PATIENTS = "by-patients";
 static const char* const BY_STUDIES = "by-studies";
-static const char* const BY_DATE = "by-dates";
+static const char* const BY_DATES = "by-dates";
 static const char* const BY_UIDS = "by-uids";
 static const char* const UPLOADS = "uploads";
 static const char* const MAIN_DICOM_TAGS = "MainDicomTags";
@@ -1187,7 +1187,7 @@
       IWebDavBucket::Collection tmp;
       return studies_->ListCollection(tmp, UriComponents(path.begin() + 1, path.end()));
     }
-    else if (path[0] == BY_DATE)
+    else if (path[0] == BY_DATES)
     {
       IWebDavBucket::Collection tmp;
       return dates_->ListCollection(tmp, UriComponents(path.begin() + 1, path.end()));
@@ -1208,7 +1208,7 @@
   {
     if (path.empty())
     {
-      collection.AddResource(new Folder(BY_DATE));
+      collection.AddResource(new Folder(BY_DATES));
       collection.AddResource(new Folder(BY_PATIENTS));
       collection.AddResource(new Folder(BY_STUDIES));
       collection.AddResource(new Folder(BY_UIDS));
@@ -1262,7 +1262,7 @@
     {
       return studies_->ListCollection(collection, UriComponents(path.begin() + 1, path.end()));
     }
-    else if (path[0] == BY_DATE)
+    else if (path[0] == BY_DATES)
     {
       return dates_->ListCollection(collection, UriComponents(path.begin() + 1, path.end()));
     }
@@ -1349,6 +1349,10 @@
     {
       return studies_->GetFileContent(mime, content, modificationTime, UriComponents(path.begin() + 1, path.end()));
     }
+    else if (path[0] == BY_DATES)
+    {
+      return dates_->GetFileContent(mime, content, modificationTime, UriComponents(path.begin() + 1, path.end()));
+    }
     else if (path[0] == UPLOADS)
     {
       return uploads_.GetFileContent(mime, content, modificationTime, UriComponents(path.begin() + 1, path.end()));