# HG changeset patch # User Sebastien Jodogne # Date 1417709898 -3600 # Node ID eac00401cb9613e81c3658b468a885d2521eb2cc # Parent f1c01451a8ee81ed2a9e190b4f73012fdb4c60af fixes diff -r f1c01451a8ee -r eac00401cb96 OrthancServer/OrthancRestApi/OrthancRestSystem.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp Thu Dec 04 17:04:40 2014 +0100 +++ b/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp Thu Dec 04 17:18:18 2014 +0100 @@ -122,6 +122,8 @@ { Json::Value v = Json::arrayValue; + v.append("explorer.js"); + if (OrthancRestApi::GetContext(call).HasPlugins()) { std::list plugins; diff -r f1c01451a8ee -r eac00401cb96 Plugins/OrthancCPlugin/OrthancCPlugin.h --- a/Plugins/OrthancCPlugin/OrthancCPlugin.h Thu Dec 04 17:04:40 2014 +0100 +++ b/Plugins/OrthancCPlugin/OrthancCPlugin.h Thu Dec 04 17:18:18 2014 +0100 @@ -1760,6 +1760,15 @@ } + /** + * @brief Set a description for this plugin. + * + * Set a description for this plugin. It is displayed in the + * "Plugins" page of Orthanc Explorer. + * + * @param context The Orthanc plugin context, as received by OrthancPluginInitialize(). + * @param description The description. + **/ ORTHANC_PLUGIN_INLINE void OrthancPluginSetDescription( OrthancPluginContext* context, const char* description) @@ -1773,6 +1782,15 @@ } + /** + * @brief Extend the JavaScript code of Orthanc Explorer. + * + * Add JavaScript code to customize the default behavior of Orthanc + * Explorer. This can for instance be used to add new buttons. + * + * @param context The Orthanc plugin context, as received by OrthancPluginInitialize(). + * @param javascript The custom JavaScript code. + **/ ORTHANC_PLUGIN_INLINE void OrthancPluginExtendOrthancExplorer( OrthancPluginContext* context, const char* javascript)