You can create as many new web request forms as you wish by creating new request HTML pages and designating each one as a different Document Type. For every GenericRequestX.html page that you decide to create, you also need to create a corresponding EditGenericRequestX.html page to handle the error and editing functions. If the DLL encounters a problem when the request is submitted, it jumps to the Edit page for editing.
Edit an Existing Request Form
Aeon requires that the name of a custom form begins with the text "GenericRequest".
Take one of your existing Aeon request forms and save it as a new form file named GenericRequestX.html, where the X represents a description of the request type. In this example we create a new Request form called GenericRequestMusicScore.html.
- Edit the new HTML file to reflect the new request type.
- Change the wording or format of the file as needed to be consistent with your existing forms and the new type of request that you are creating.
Add Identifier Code to the New Form
Add the following lines to the HTML code of that new request page:
<input type="hidden" name="AeonForm" value="GenericRequestX">
<input type="hidden" name="RequestType" value="Loan">
<input type="hidden" name="DocumentType" value="Y">
Again, the X in the first line of code is used to describe the new type of request. In specifying the Request Type (in line 2), you should first decide if the system should treat this new type of request as an Article or as a Loan. If the request type is intended to be consumable and will not be returned to the lending institution, set the value to "Article". If the request type is intended to be returned to the lending institution, set the value to "Loan". The Y in Line 3 is intended to represent the Document Type to be recorded by the system for this type of generic request. For our example this is Music.
Edit the Main Menu or Include Menu Page
Create a new link for your new request on the Aeon Main Menu (include_menu.html page). The text can be whatever you would like, but the link should be formatted as below, where the value is the name of the new HTML page you've created.
<a href="<#ACTION action="10" form="20" value="GenericRequestMusicScore">">
Changes in the Customization Manager
If you add a new link for your custom request form, you do not need to make any changes in the Customization Manager. If you are using buttons for your requests, you need to add an entry to the WebFormValues table in the Customization Manager. Insert a new record into the table that will match the label to the SubmitButtonText field. Put the name of the request page in the SubmitButtonValue field.