Fix PNM html report javascript, and use a local web server to open report
- Move PNM report template and javascript files to this project, instead of hosting them in the fsl/base> project.
- Install templates into
$FSLDIR/data/feat5/
, rather than in$FSLDIR/etc/js/
- Install
default_flobs.flobs
into$FSLDIR/data/feat5
as well, instead of$FSLDIR/etc/default_flobs.flobs
- Defer execution of javascript until the PNM report page has loaded.
- Re-write
pnm_stage1
in Python, so that we can run a local web server, and serve the report page from it, instead of opening the report as a local file. This allows us to avoid CORS request errors, as CORS is disallowed by default in most browsers when viewing local HTML files.
I've done an audit of the code base to ensure that the only references to any default_flobs.flobs
and PNM template files are in the FEAT code, and have updated those references in this MR.
I need to do some more testing before this is ready to be merged
Edited by Paul McCarthy