# HG changeset patch # User Alain Mazy <am@orthanc.team> # Date 1722929588 -7200 # Node ID ae2e3d4c54a254e2c09824c3e38d0b78086a2159 # Parent 18e33869cce03a3159d66e1ec64732249ca9e78d Added a 'Server' entry in the DICOMWeb job content diff -r 18e33869cce0 -r ae2e3d4c54a2 NEWS --- a/NEWS Tue Aug 06 09:22:19 2024 +0200 +++ b/NEWS Tue Aug 06 09:33:08 2024 +0200 @@ -1,6 +1,8 @@ Pending changes in the mainline =============================== +* Added a "Server" entry in the DICOMWeb job content. + Version 1.17 (2024-06-05) ========================= diff -r 18e33869cce0 -r ae2e3d4c54a2 Plugin/DicomWebClient.cpp --- a/Plugin/DicomWebClient.cpp Tue Aug 06 09:22:19 2024 +0200 +++ b/Plugin/DicomWebClient.cpp Tue Aug 06 09:33:08 2024 +0200 @@ -727,6 +727,7 @@ boost::mutex::scoped_lock lock(that_.mutex_); context.SetContent("InstancesCount", boost::lexical_cast<std::string>(that_.instances_.size())); context.SetContent("Resources", that_.GetResourcesForJobContent()); + context.SetContent("Server", that_.GetServerName()); serverName = that_.serverName_; startPosition = that_.position_; @@ -871,6 +872,11 @@ { return resourcesForJobContent_; } + + const std::string& GetServerName() + { + return serverName_; + } };