# HG changeset patch # User Sebastien Jodogne # Date 1500284994 -7200 # Node ID a95beca72e99f3a1110cffd252bcf3abf5a2db27 # Parent 174c3616ab6db2344d3a5ec7df03efd8d8c8f62f fix header and query/retrieve in Orthanc Explorer diff -r 174c3616ab6d -r a95beca72e99 OrthancExplorer/explorer.js --- a/OrthancExplorer/explorer.js Mon Jul 17 10:25:25 2017 +0200 +++ b/OrthancExplorer/explorer.js Mon Jul 17 11:49:54 2017 +0200 @@ -334,11 +334,11 @@ cache: false, success: function(s) { if (s.Name != "") { - $('.orthanc-name').append($('') - .addClass('ui-link') - .attr('href', 'explorer.html') - .text(s.Name) - .append(' » ')); + $('.orthanc-name').html($('') + .addClass('ui-link') + .attr('href', 'explorer.html') + .text(s.Name) + .append(' » ')); } } }); diff -r 174c3616ab6d -r a95beca72e99 OrthancExplorer/query-retrieve.js --- a/OrthancExplorer/query-retrieve.js Mon Jul 17 10:25:25 2017 +0200 +++ b/OrthancExplorer/query-retrieve.js Mon Jul 17 11:49:54 2017 +0200 @@ -149,21 +149,22 @@ async: false, success: function(study) { var series = '#query-retrieve-3?server=' + pageData.server + '&uuid=' + study['StudyInstanceUID']; - var info = $('').attr('href', series).html( - ('

{0} - {1}

' + - '

Accession number: {2}

' + - '

Birth date: {3}

' + - '

Patient sex: {4}

' + - '

Study description: {5}

' + - '

Study date: {6}

').format( - study['PatientID'], - study['PatientName'], - study['AccessionNumber'], - FormatDicomDate(study['PatientBirthDate']), - study['PatientSex'], - study['StudyDescription'], - FormatDicomDate(study['StudyDate']))); + var content = ($('
') + .append($('

').text(study['PatientID'] + ' - ' + study['PatientName'])) + .append($('

').text('Accession number: ') + .append($('').text(study['AccessionNumber']))) + .append($('

').text('Birth date: ') + .append($('').text(study['PatientBirthDate']))) + .append($('

').text('Patient sex: ') + .append($('').text(study['PatientSex']))) + .append($('

').text('Study description: ') + .append($('').text(study['StudyDescription']))) + .append($('

').text('Study date: ') + .append($('').text(FormatDicomDate(study['StudyDate']))))); + + var info = $('').attr('href', series).html(content); + var answerId = answers[i]; var retrieve = $('').text('Retrieve all study').click(function() { ChangePage('query-retrieve-4', { @@ -228,15 +229,14 @@ dataType: 'json', async: false, success: function(series) { - var info = $('').html( - ('

{0}

' + - '

Modality: {1}

' + - '

Protocol name: {2}

' - ).format( - series['SeriesDescription'], - series['Modality'], - series['ProtocolName'] - )); + var content = ($('