<div dir="ltr"><div>Hi Sotirios,</div><div><br></div><div>As a further precision, "dicom_archive/jsx/dicom_archive.js" could be js file you need to modify, "fields" of the line 120 could be the filter definition ...<br></div><div><br></div><div>The implemented behavior will depend on what you need to do<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 3, 2020 at 11:40 AM Ling Ma <<a href="mailto:lingyun.ma@mcin.ca">lingyun.ma@mcin.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Sotirios,</div><div><br></div><div>To make the new module work, I suggest  you put it in project/modules, but it is up to you to choose where to put.</div><div><br></div><div>Last time I asked "You will need to customize the dicom_archive modules which resides under <web root>/modules/dicom_archive", I don't believe FilterableDataTable.js is the right place to do. You will need to read the dicom_archive module files, I believe it is straightforward to see what to modify there. The data is passed via JSON function of php/dicom_archive.class.inc or others.<br></div><div><br></div><div>Best regards,</div><div></div><div>Ling Ma<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 3, 2020 at 11:30 AM Sotirios Nikoloutsopoulos <<a href="mailto:sotirisnik@gmail.com" target="_blank">sotirisnik@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I just runned make and it auto runned composer install --no-dev on its own. To make it run i needed to delete the vendor directory. Also when placing the dicom_archive under project/ directory i see it has no effect at the web interface but it worked when i replaced the original module. At the moment I will work at the path of the original module, no harm since we using docker to replace the original path at the building process.</div><div><br></div><div>To display the values of my new column, which files should I edit? I believe it's the FilterableDataTable.js but how does it get its data for the table? ( I am new to React )<br></div><div><br></div><div>Thanks<br></div><div><br></div><div>Thanks<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Στις Τρί, 3 Μαρ 2020 στις 5:11 μ.μ., ο/η Ling Ma <<a href="mailto:lingyun.ma@mcin.ca" target="_blank">lingyun.ma@mcin.ca</a>> έγραψε:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Sotirios,</div><div><br></div><div>You must have run with "composer install" early, so why do you run "composer install  --no-dev" now? You can delete the vendor/facebook, then re-run the "composer install --no-dev". The cause could be something to do with facebook package, which is out of the consideration of Loris.<br></div><div><br></div><div>Hope this helps. Thanks.<br></div><div><br></div><div>Best regards,<br></div><div>Ling Ma<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 3, 2020 at 8:00 AM Sotirios Nikoloutsopoulos <<a href="mailto:sotirisnik@gmail.com" target="_blank">sotirisnik@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I am getting this error when i am running make</div><div><br></div><div>composer install --no-dev<br>> mkdir -p project/libraries<br>Loading composer repositories with package information<br>Installing dependencies from lock file<br>Package operations: 0 installs, 0 updates, 4 removals<br>  - Removing facebook/webdriver (dev-master)<br><br>                                                                               <br>  [RuntimeException]                                                           <br>  Source directory /var/www/loris/vendor/facebook/webdriver has unpushed chan  <br>  ges on the current branch:                                                   <br>  M      lib/WebDriverTargetLocator.php                                             <br>                                                                               <br><br>install [--prefer-source] [--prefer-dist] <br></div><div><br></div><div>Thanks<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Στις Πέμ, 27 Φεβ 2020 στις 6:27 μ.μ., ο/η Ling Ma <<a href="mailto:lingyun.ma@mcin.ca" target="_blank">lingyun.ma@mcin.ca</a>> έγραψε:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Sotirios,</div><div><br></div><div>You will need to customize the dicom_archive modules which resides under <web root>/modules/dicom_archive, we recommend against modifying directly the module, instead you copy that module into project/modules to do any customization there, then run "composer install" to let the Loris know that you want to use your customized version. Then you need to run "make" under the <web root> to compile jsx to js.<br></div><div><br></div><div>The table and the filter are written in ReactJS, as long as you have some knowledge of ReactJS and PHP, you could go ahead to do it.<br></div><div><br></div><div>Best regards,<br></div><div>Ling Ma<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 27, 2020 at 11:09 AM Sotirios Nikoloutsopoulos <<a href="mailto:sotirisnik@gmail.com" target="_blank">sotirisnik@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>We would like to customize the Selection Filter given in <a href="https://demo.loris.ca/dicom_archive/" target="_blank">https://demo.loris.ca/dicom_archive/</a> page. Also we would like to add a new column on the existing table shown ( that batch column will be contained in the files table ). Could you give some info on how to proceed?<br></div><div><br></div><div>The desired result is as shown in that image<br></div><div><br></div><div><div><img alt="image.png" width="545" height="252" src="cid:ii_k74xwuai0"></div><div><br></div><div>Thank you</div><div><br></div><div>Sotirios<br></div><div><br></div></div></div>
_______________________________________________<br>
Loris-dev mailing list<br>
<a href="mailto:Loris-dev@bic.mni.mcgill.ca" target="_blank">Loris-dev@bic.mni.mcgill.ca</a><br>
<a href="https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev" rel="noreferrer" target="_blank">https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>