Skip to content

Commit

Permalink
[dicom archive] Fix dicom archive details links (#9081)
Browse files Browse the repository at this point in the history
Replace the obsolete link patches for the dicom-archive/view-details page with proper links.

Resolves #9080
  • Loading branch information
maximemulder authored Mar 11, 2024
1 parent 43c3c33 commit cde99c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 78 deletions.
53 changes: 0 additions & 53 deletions modules/dicom_archive/js/view_details_link.js

This file was deleted.

19 changes: 0 additions & 19 deletions modules/dicom_archive/php/viewdetails.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -357,24 +357,6 @@ class ViewDetails extends \NDB_Form
);
}

/**
* Overrides base getJSDependencies() to add additional JS files
*
* @return array of extra JS files that this page depends on
*/
function getJSDependencies()
{
$factory = \NDB_Factory::singleton();
$baseURL = $factory->settings()->getBaseURL();
$deps = parent::getJSDependencies();
return array_merge(
$deps,
[
$baseURL . "/dicom_archive/js/view_details_link.js",
]
);
}

/**
* Generate a breadcrumb trail for this page.
*
Expand All @@ -392,4 +374,3 @@ class ViewDetails extends \NDB_Form
);
}
}

9 changes: 3 additions & 6 deletions modules/dicom_archive/templates/form_viewDetails.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
<tr>
<th>Acquisition ID</th>
<td>
<a class="dicom_archive" style="cursor: pointer"
data-patientname="{$archive.PatientName}">
{$archive.DicomArchiveID}
<a href="/mri_violations?patientName={$archive.PatientName}">
{$archive.DicomArchiveID}
</a>
</td>
</tr>
Expand Down Expand Up @@ -124,9 +123,7 @@
<td>{$archive_series[record].PhaseEncoding}</td>
<td>{$archive_series[record].NumberOfFiles}</td>
<td>
<a href="#" class="dicom_archive"
data-patientname="{$archive.PatientName}"
data-seriesuid="{$archive_series[record].SeriesUID}">
<a href="/mri_violations?patientName={$archive.PatientName}&seriesUID={$archive_series[record].SeriesUID}">
{$archive_series[record].SeriesUID}
</a>
</td>
Expand Down

0 comments on commit cde99c2

Please # to comment.