Mercurial > hg > orthanc
changeset 1188:2e11c3353356
download dicomdir in Orthanc Explorer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 16 Oct 2014 10:43:23 +0200 |
parents | b17b6bd59747 |
children | 851a55d183c9 |
files | NEWS OrthancExplorer/explorer.html OrthancExplorer/explorer.js THANKS |
diffstat | 4 files changed, 23 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS Tue Oct 14 14:47:58 2014 +0200 +++ b/NEWS Thu Oct 16 10:43:23 2014 +0200 @@ -1,6 +1,7 @@ Pending changes in the mainline =============================== +* Download ZIP + DICOMDIR from Orthanc Explorer * Sample plugin framework to serve static resources * Fix issue 21 (Microsoft Visual Studio precompiled headers)
--- a/OrthancExplorer/explorer.html Tue Oct 14 14:47:58 2014 +0200 +++ b/OrthancExplorer/explorer.html Thu Oct 16 10:43:23 2014 +0200 @@ -105,6 +105,7 @@ <a href="#" id="patient-modified-from">Before modification</a> </li> <li data-icon="gear"><a href="#" id="patient-archive">Download ZIP</a></li> + <li data-icon="gear"><a href="#" id="patient-media">Download DICOMDIR</a></li> </ul> </div> </div> @@ -151,6 +152,7 @@ <a href="#" id="study-modified-from">Before modification</a> </li> <li data-icon="gear"><a href="#" id="study-archive">Download ZIP</a></li> + <li data-icon="gear"><a href="#" id="study-media">Download DICOMDIR</a></li> </ul> </div> </div> @@ -200,6 +202,7 @@ </li> <li data-icon="search"><a href="#" id="series-preview">Preview this series</a></li> <li data-icon="gear"><a href="#" id="series-archive">Download ZIP</a></li> + <li data-icon="gear"><a href="#" id="series-media">Download DICOMDIR</a></li> </ul> </div> </div>
--- a/OrthancExplorer/explorer.js Tue Oct 14 14:47:58 2014 +0200 +++ b/OrthancExplorer/explorer.js Thu Oct 16 10:43:23 2014 +0200 @@ -935,6 +935,24 @@ window.location.href = '../series/' + $.mobile.pageData.uuid + '/archive'; }); + +$('#patient-media').live('click', function(e) { + e.preventDefault(); //stop the browser from following + window.location.href = '../patients/' + $.mobile.pageData.uuid + '/media'; +}); + +$('#study-media').live('click', function(e) { + e.preventDefault(); //stop the browser from following + window.location.href = '../studies/' + $.mobile.pageData.uuid + '/media'; +}); + +$('#series-media').live('click', function(e) { + e.preventDefault(); //stop the browser from following + window.location.href = '../series/' + $.mobile.pageData.uuid + '/media'; +}); + + + $('#protection').live('change', function(e) { var isProtected = e.target.value == "on"; $.ajax({
--- a/THANKS Tue Oct 14 14:47:58 2014 +0200 +++ b/THANKS Thu Oct 16 10:43:23 2014 +0200 @@ -25,6 +25,7 @@ * Chris Hafey <chafey@gmail.com>, for suggesting many features and improvements, the Windows service and Windows installer. * Manabu Tokunaga <manabu@lury.net>, for the Windows service. +* Vincent Kersten <vincent1234567@gmail.com>, for DICOMDIR in the GUI. Thanks also to all the contributors active in our Google Group: