Ticket #136 (closed enhancement: done)
EInotebook: Implement a way to choose which XML script to load
| Reported by: | jdalbey | Owned by: | jdalbey |
|---|---|---|---|
| Priority: | High | Milestone: | May 2019 Training |
| Component: | Electronic Instructor Notebook | Version: | |
| Severity: | Minor | Keywords: | |
| Cc: |
Description
Currently the filename is hardcoded. We need a more flexible way to choose which script to run. It probably doesn't need to be user configurable, but configured by the administrator/operator.
Change History
comment:2 Changed 7 years ago by jdalbey
- Status changed from new to closed
- Resolution set to done
Created a new config file, sim_scriptname.json, in the webapps folder.
{"filename":"full_script_2016.xml"}
The LoadEvents module looks here to get the name of the incident script to be loaded.
The operator can modify this file to adjust which script is used.
Note that PopulateIncidents must contain any incidents used in the script that is loaded (until we modify LoadEvents to dynamically load incidents and get rid of PopulateIncidents). Also the color must be specified in Event.js (until we dynamically assign these).
Implemented in r363.
