In the BookReader case, we know for a fact the code will look for an
element with id = BookReader, so the element is inserted in the template:
https://github.com/peterdietz/DSpace/commit/904ea581f5ca17e6018e0332e8307e46dd1c60ef#diff-63e0daece91565003319a9cc1bf5d7e0R703

The launch of the app itself is in one of the JS files imported
(vendor/BookReader/BookReaderJSSimple.js):
https://github.com/peterdietz/DSpace/blob/904ea581f5ca17e6018e0332e8307e46dd1c60ef/dspace-xmlui/src/main/webapp/themes/wheaton-mirage2/vendor/BookReader/BookReaderJSSimple.js#L95

You'll have to implement your own app in the way it needs to be set up,
does any of that help?

GL,

Pedro Amorim

2017-05-12 10:24 GMT+00:00 Yves <[email protected]>:

> Thanks Pedro,
>
> I get the integration part (step 1 and 2), what I am not sure about is
> step 3 (calling the app), would you have examples? In the commit you sent,
> I see the 'xsl-choose' in the 'item-view.xsl' file but no launch.
>
> Best,
> Yves
>
> On 10 May 2017 at 14:02, Pedro Amorim <[email protected]> wrote:
>
>> Hello Yves,
>>
>> I don't know what DICOM files are, but being a JS project, you can just
>> import the assets into your theme, and call those assets from the template
>> that you need,
>>
>> The following commit from Peter Dietz integrating BookReader into a
>> particular DSpace theme is very helpful:
>> https://github.com/peterdietz/DSpace/commit/904ea581f5ca17e6
>> 018e0332e8307e46dd1c60ef#diff-fe079b21f36c8e7726ad6b73848043d0
>>
>> I have personally followed this example with sucess, what I did was:
>> 1) Upload project files into DSpace theme source folder;
>> 2) Load the necessary files in the respective theme sitemap.xmap file.
>> 3) Start the app in item-view.xsl or other template you need it.
>>
>> GL,
>>
>> Pedro Amorim
>>
>> 2017-05-10 11:00 GMT+00:00 Yves <[email protected]>:
>>
>>> Hi,
>>>
>>> I'm developing an open source medical image (DICOM files) viewer in
>>> HTML5 available at https://github.com/ivmartel/dwv.
>>>
>>> From what I get, there are no viewer available for DICOM files in
>>> DSpace. Could anyone help me understand how I could integrate this viewer?
>>> That way people could upload DICOM files and view them directly in their
>>> browser instead of downloading them and viewing them in a separate local
>>> viewer.
>>>
>>> Best,
>>> Yves
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "DSpace Community" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/dspace-community.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.

Reply via email to