Mercurial > hg > orthanc
comparison OrthancServer/Sources/LuaScripting.cpp @ 4460:6831de40acd9
New metadata automatically computed at the series level: "RemoteAET"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 20 Jan 2021 14:20:37 +0100 |
parents | d9473bd5ed43 |
children | b4c58795f3a8 |
comparison
equal
deleted
inserted
replaced
4459:16392fe89ce0 | 4460:6831de40acd9 |
---|---|
167 Json::Value tags; | 167 Json::Value tags; |
168 | 168 |
169 if (that.context_.GetIndex().LookupResource(tags, change_.GetPublicId(), change_.GetResourceType())) | 169 if (that.context_.GetIndex().LookupResource(tags, change_.GetPublicId(), change_.GetResourceType())) |
170 { | 170 { |
171 std::map<MetadataType, std::string> metadata; | 171 std::map<MetadataType, std::string> metadata; |
172 that.context_.GetIndex().GetAllMetadata(metadata, change_.GetPublicId()); | 172 that.context_.GetIndex().GetAllMetadata(metadata, change_.GetPublicId(), change_.GetResourceType()); |
173 | 173 |
174 Json::Value formattedMetadata = Json::objectValue; | 174 Json::Value formattedMetadata = Json::objectValue; |
175 | 175 |
176 for (std::map<MetadataType, std::string>::const_iterator | 176 for (std::map<MetadataType, std::string>::const_iterator |
177 it = metadata.begin(); it != metadata.end(); ++it) | 177 it = metadata.begin(); it != metadata.end(); ++it) |