-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ImgBrowser] Add DICOM Download #2791
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,13 +96,17 @@ class Imaging_Session_ControlPanel | |
$params['PCandID'] = $timePoint->getCandID(); | ||
$params['PVL'] = $timePoint->getVisitLabel(); | ||
} | ||
$tarchiveIDs = $DB->pselect( | ||
"SELECT TarchiveID | ||
FROM tarchive | ||
|
||
// To enable DICOM download: Add pair: tarchiveID, ArchiveLocation | ||
$qresult = $DB->pselectRow( | ||
"SELECT TarchiveID, ArchiveLocation | ||
FROM tarchive | ||
WHERE PatientName LIKE $ID", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure how to use a prepared query with $ID being defined a few lines earlier with 2 cases and the second case being a concat of 3 different variables)... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I confirmed with @AnyhowStep, and he did not see the query the way it is as a security risk. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's just not obvious in the diff that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. discussed at the Imaging meeting of July 18th, 2017:
|
||
$params | ||
); | ||
$subjectData['tarchiveids'] = $tarchiveIDs; | ||
$subjectData['tarchiveids'] = $qresult['TarchiveID']; | ||
$subjectData['tarchiveidLoc'] = (empty($qresult['ArchiveLocation'])) ? "" | ||
: $qresult['ArchiveLocation']; | ||
|
||
$config =& NDB_Config::singleton(); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,13 @@ | |
<li><a href="{$baseurl}/{$subject.candid}/{$subject.sessionID}/radiology_review/?commentID={$subject.RadiologyReviewCommentID}">Radiology Review</a></li> | ||
{/if} | ||
{foreach from=$subject.tarchiveids item=tarchive} | ||
<li><a href="{$baseurl}/dicom_archive/viewDetails/?tarchiveID={$tarchive.TarchiveID}&backURL={$backURL|escape:"url"}">DICOM Archive {$tarchive.TarchiveID}</a></li>{/foreach} | ||
<li><a href="{$baseurl}/dicom_archive/viewDetails/?tarchiveID={$tarchive}&backURL={$backURL|escape:"url"}">DICOM Archive(s) {$tarchive}</a></li> | ||
{/foreach} | ||
{foreach from=$subject.tarchiveidLoc item=tarchiveLoc} | ||
<li><a href="/mri/jiv/get_file.php?file=tarchive/{$tarchiveLoc}" class="btn btn-primary btn-small"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. once this is merged (#2649); and |
||
<span class="glyphicon glyphicon-cloud-download"></span><span class="hidden-xs"> Download DICOM</span> | ||
</a></li> | ||
{/foreach} | ||
{if $mantis} | ||
<li><a target="mantis" href="{$mantis}">Report a Bug (Mantis)</a></li> | ||
{/if} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@christinerogers
$imagePath can eventually be changed to get the tarchiveLibraryDir from Config table (once #2649 is merged).