[Loris-dev] Customize page

Sotirios Nikoloutsopoulos sotirisnik at gmail.com
Mon Mar 16 10:42:12 EDT 2020


Accordng to the error, since it's not an aggregated column i can't have
access to it.

Στις Δευ, 16 Μαρ 2020 στις 4:28 μ.μ., ο/η Sotirios Nikoloutsopoulos <
sotirisnik at gmail.com> έγραψε:

> Hi,
>
> I would like to get some columns from the files tables at the
> imaging_browser module. According to this sql query
>
>
> https://github.com/aueb-wim/LORIS-for-MIP/blob/master/loris/modules/imaging_browser/php/imaging_browser.class.inc#L157
>
> I see that it uses the files table on inner join and is named as f but i
> can't refer to the table for some reason here
>
> https://github.com/aueb-wim/LORIS-for-MIP/blob/master/loris/modules/imaging_browser/php/imaging_browser.class.inc#L226
>
> Thanks
>
> Sotirios
>
> Στις Τετ, 4 Μαρ 2020 στις 4:28 μ.μ., ο/η Sotirios Nikoloutsopoulos <
> sotirisnik at gmail.com> έγραψε:
>
>> Hi,
>>
>> I found out how to make the button and its functionality.
>>
>> Thanks,
>>
>> Sotirios
>>
>> Στις Τετ, 4 Μαρ 2020 στις 2:26 μ.μ., ο/η Sotirios Nikoloutsopoulos <
>> sotirisnik at gmail.com> έγραψε:
>>
>>> Hi Ling,
>>>
>>> I found the sql query
>>> https://github.com/aueb-wim/LORIS-for-MIP/blob/master/dicom_archive/php/dicomarchiverowprovisioner.class.inc#L40
>>> and modified to get our Batch column and the dropdown box works too ( I
>>> made it based on Site ).
>>>
>>> [image: image.png]
>>>
>>> Now I would like to place the Button
>>>
>>> Is this how I should proceed for it?
>>>
>>> [image: image.png]
>>>
>>> Thanks
>>>
>>> Sotirios
>>>
>>>
>>> Στις Τρί, 3 Μαρ 2020 στις 9:55 μ.μ., ο/η Ling Ma <lingyun.ma at mcin.ca>
>>> έγραψε:
>>>
>>>> Hi Sotirios,
>>>>
>>>> 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 ...
>>>>
>>>> The implemented behavior will depend on what you need to do
>>>>
>>>>
>>>> On Tue, Mar 3, 2020 at 11:40 AM Ling Ma <lingyun.ma at mcin.ca> wrote:
>>>>
>>>>> Hi Sotirios,
>>>>>
>>>>> 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.
>>>>>
>>>>> 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.
>>>>>
>>>>> Best regards,
>>>>> Ling Ma
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Mar 3, 2020 at 11:30 AM Sotirios Nikoloutsopoulos <
>>>>> sotirisnik at gmail.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> 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.
>>>>>>
>>>>>> 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 )
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Στις Τρί, 3 Μαρ 2020 στις 5:11 μ.μ., ο/η Ling Ma <lingyun.ma at mcin.ca>
>>>>>> έγραψε:
>>>>>>
>>>>>>> Hi Sotirios,
>>>>>>>
>>>>>>> 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.
>>>>>>>
>>>>>>> Hope this helps. Thanks.
>>>>>>>
>>>>>>> Best regards,
>>>>>>> Ling Ma
>>>>>>>
>>>>>>> On Tue, Mar 3, 2020 at 8:00 AM Sotirios Nikoloutsopoulos <
>>>>>>> sotirisnik at gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I am getting this error when i am running make
>>>>>>>>
>>>>>>>> composer install --no-dev
>>>>>>>> > mkdir -p project/libraries
>>>>>>>> Loading composer repositories with package information
>>>>>>>> Installing dependencies from lock file
>>>>>>>> Package operations: 0 installs, 0 updates, 4 removals
>>>>>>>>   - Removing facebook/webdriver (dev-master)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>   [RuntimeException]
>>>>>>>>
>>>>>>>>   Source directory /var/www/loris/vendor/facebook/webdriver has
>>>>>>>> unpushed chan
>>>>>>>>   ges on the current branch:
>>>>>>>>
>>>>>>>>   M lib/WebDriverTargetLocator.php
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> install [--prefer-source] [--prefer-dist]
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>>
>>>>>>>> Στις Πέμ, 27 Φεβ 2020 στις 6:27 μ.μ., ο/η Ling Ma <
>>>>>>>> lingyun.ma at mcin.ca> έγραψε:
>>>>>>>>
>>>>>>>>> Hi Sotirios,
>>>>>>>>>
>>>>>>>>> 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.
>>>>>>>>>
>>>>>>>>> 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.
>>>>>>>>>
>>>>>>>>> Best regards,
>>>>>>>>> Ling Ma
>>>>>>>>>
>>>>>>>>> On Thu, Feb 27, 2020 at 11:09 AM Sotirios Nikoloutsopoulos <
>>>>>>>>> sotirisnik at gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> We would like to customize the Selection Filter given in
>>>>>>>>>> https://demo.loris.ca/dicom_archive/ 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?
>>>>>>>>>>
>>>>>>>>>> The desired result is as shown in that image
>>>>>>>>>>
>>>>>>>>>> [image: image.png]
>>>>>>>>>>
>>>>>>>>>> Thank you
>>>>>>>>>>
>>>>>>>>>> Sotirios
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Loris-dev mailing list
>>>>>>>>>> Loris-dev at bic.mni.mcgill.ca
>>>>>>>>>> https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev
>>>>>>>>>>
>>>>>>>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20200316/352f6e01/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 221775 bytes
Desc: not available
URL: <http://mailman.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20200316/352f6e01/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 770441 bytes
Desc: not available
URL: <http://mailman.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20200316/352f6e01/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 42968 bytes
Desc: not available
URL: <http://mailman.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20200316/352f6e01/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: loris_error
Type: application/octet-stream
Size: 7632 bytes
Desc: not available
URL: <http://mailman.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20200316/352f6e01/attachment-0001.obj>


More information about the Loris-dev mailing list