Ticket #136 (closed enhancement: done)

Opened 7 years ago

Last modified 7 years ago

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:1 Changed 7 years ago by nhockada

  • Priority changed from Medium to High

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.

Note: See TracTickets for help on using tickets.