HTML Variables
Introduction
HTML variables are the method by which an editing application passes data to a HTTP POST application, which submits the information. In the ISFDB, there are numerous editing and submission applications, along with a broad number of HTML variables passed between these applications. However, for major editing applications there are a standardized set of HTML variables, such that the appropriate object class can parse them. As such, these are organized in the same manner as the object classes.
Usage
The variable names are supplied to an INPUT tag in an HTML form as a NAME attribute. If editing a field which already has a value in the database, the form will be prefilled appropriately, allowing the user to edit the field in the browser:
<INPUT NAME="author_canonical" SIZE="45" VALUE="Robert A. Heinlein">
If the field has no current value, an empty data entry box will be rendered by the browser:
<INPUT NAME="author_deathdate" SIZE="45">
The user is free to place any text they desire in the edit fields. It is up to the submission application to validate the data.
Standard HTML Variables
- HTMLvariables:authors - Used to edit author information.
- HTMLvariables:awards - used to edit award information.
- HTMLvariables:interviewEntry - used to edit interview information.
- HTMLvariables:publishers - used to edit interview content information.
- HTMLvariables:pubs - used to edit interview information.
- HTMLvariables:reviewEntry - used to edit review content information.
- HTMLvariables:series - used to edit series information
- HTMLvariables:titleEntry - used to edit title content information.
- HTMLvariables:titles - used to edit title information.