APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Digital Library for EJS5.0 beta not able to load XML correctly? post and replies

Return to the Digital Library for EJS5.0 beta not able to load XML correctly? thread
Login to post to this thread

Digital Library for EJS5.0 beta not able to load XML correctly?
lookang Avatar
lookang
222 Posts

dear professor paco and wolfgang,

i have setup a separate digital library to be read from the EJS5.0 beta authoring toolkit.

paco mentioned the indexEJSSdl.php is different for the Android App Digital Library.
and indeed it does not load on EJS5.0 beta authoring toolkit.

so use the old php file found herehttp://www.um.es/fem/EjsWiki/Main/CreateYourOwnDigitalLibrary

the files are already here but it can read the files structure and folders
http://iwant2study.org/lookangejss/indexEJSSdl.php

but i tried to load the model and it says cannot find XML.

any idea how to fix this?

Attached File: 2014-04-16_1535.png


OSP@SG blog
OSP@SG Digital Library

Replies to Digital Library for EJS5.0 beta not able to load XML correctly?

Re: Digital Library for EJS5.0 beta not able to load XML correctly? -
lookang Avatar
lookang
222 Posts

error message posted with image

Attached File: 2014-04-16_1535_001.png


OSP@SG blog
OSP@SG Digital Library


Re: Digital Library for EJS5.0 beta not able to load XML correctly? -
Francisco Esquembre
228 Posts

Dear Loo Kang,

You did the right thing with the PHPs. The Java 'flavour' of EjsS looks for the 'old' indexEJSdl.php, while the Javascript flavour of EjsS looks for the new indexEJSSdl.php script.

But, if you want to have the same server and directory for both Java and Javascript folders, you need to update the old indexEJSdl.php (see attached). In order for this to work OK, you must respect the "ejss_src_" prefix that EjsS offers you when exporting ZIP files.

There is one more thing. Unlike Java based JAR files, Javascript HTML models do NOT contain the source XML file inside. This means that you cannot place the ejss_model_xxx.zip file and expect EjsS to find the source code inside. Instead, you must place in the server the exported ejss_src_xxx.zip files that you get from EjsS when you export the simulation source files. This was causing the problem you report.

I have also updated the information at http://www.um.es/fem/EjsWiki/Main/CreateYourOwnDigitalLibrary

Paco

Attached File: EjsSDLphps.zip



OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book