# HG changeset patch # User Sebastien Jodogne # Date 1354098894 -3600 # Node ID 6ab7547444464631f09d577a8d093aecd122cf2d # Parent 7f4acf490179bceb6c750fa4599e6e753e970ee2 logging of completed series diff -r 7f4acf490179 -r 6ab754744446 OrthancServer/DatabaseWrapper.cpp --- a/OrthancServer/DatabaseWrapper.cpp Wed Nov 28 11:27:57 2012 +0100 +++ b/OrthancServer/DatabaseWrapper.cpp Wed Nov 28 11:34:54 2012 +0100 @@ -533,12 +533,14 @@ int64_t internalId = s.ColumnInt(2); ResourceType resourceType = static_cast(s.ColumnInt(3)); const std::string& date = s.ColumnString(4); + std::string publicId = GetPublicId(internalId); Json::Value item = Json::objectValue; item["Seq"] = static_cast(seq); item["ChangeType"] = ToString(changeType); item["ResourceType"] = ToString(resourceType); - item["ID"] = GetPublicId(internalId); + item["ID"] = publicId; + item["Path"] = GetBasePath(resourceType, publicId); item["Date"] = date; last = seq; diff -r 7f4acf490179 -r 6ab754744446 OrthancServer/ServerIndex.cpp --- a/OrthancServer/ServerIndex.cpp Wed Nov 28 11:27:57 2012 +0100 +++ b/OrthancServer/ServerIndex.cpp Wed Nov 28 11:34:54 2012 +0100 @@ -293,6 +293,13 @@ } } + // Check whether the series of this new instance is now completed + SeriesStatus seriesStatus = GetSeriesStatus(series); + if (seriesStatus == SeriesStatus_Complete) + { + db_->LogChange(ChangeType_CompletedSeries, series, ResourceType_Series); + } + t->Commit(); return StoreStatus_Success;