Sfoglia il codice sorgente

Fixed reconstruction to diplay content properly

Andreas Fetzer 11 anni fa
parent
commit
05245617d5
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      Libs/XNAT/Core/ctkXnatReconstruction.cpp

+ 4 - 4
Libs/XNAT/Core/ctkXnatReconstruction.cpp

@@ -61,7 +61,7 @@ ctkXnatReconstruction::~ctkXnatReconstruction()
 //----------------------------------------------------------------------------
 QString ctkXnatReconstruction::resourceUri() const
 {
-  return QString("%1/reconstructions/%2").arg(parent()->resourceUri(), this->id());
+  return QString("%1/%2").arg(parent()->resourceUri(), this->id());
 }
 
 //----------------------------------------------------------------------------
@@ -73,16 +73,16 @@ void ctkXnatReconstruction::reset()
 //----------------------------------------------------------------------------
 void ctkXnatReconstruction::fetchImpl()
 {
-  QString reconstructionResourcesUri = this->resourceUri() + "/resources";
+  QString reconstructionResourcesUri = this->resourceUri() + "/files";
   ctkXnatSession* const session = this->session();
   QUuid queryId = session->httpGet(reconstructionResourcesUri);
 
   QList<ctkXnatObject*> reconstructionResources = session->httpResults(queryId,
-                                                                       ctkXnatDefaultSchemaTypes::XSI_RECONSTRUCTION_RESOURCE);
+                                                                       ctkXnatDefaultSchemaTypes::XSI_FILE);
 
   foreach (ctkXnatObject* reconstructionResource, reconstructionResources)
   {
-    QString label = reconstructionResource->property("label");
+    QString label = reconstructionResource->property("Name");
     if (!label.isEmpty())
     {
       reconstructionResource->setProperty("ID", label);