EDITING A RESOURCE
 

In this dialog you can create a new resource or edit an existing one. Resources are currently limited to web forms, for which it is necessary to specify URLs. To begin specifying a resource, find a useful web form for the function this resource is for, and submit a sample query or two. When a HTML page is returned look at the URL. Determine which part of the URL comes before the string you entered into the form, and which comes after. Also look at the HTML returned to determine what strings come before and after the information you really want. For examples, open up Edit Resource Dialogs for the prepackaged resources, and look at how it is done for these.

These are the fields which may be edited:

Resource name: the name of the resource

Viewer: where to view the results. By default this is set to LucidDoc's Information Area. However, using the Browse button, it is possible to set this to a local program. For instance, if you wish to view results using the Netscape browser do the following:
1. Click on the Browse button to open the file chooser dialog.
2. Navigate to the directory where your netscape.exe is located, click on it, and on Open. The Viewer combo box will be set to the pathname.
3. Since LucidDoc will save results to a local file, it is necessary to add command-line switches to the netscape.exe program. Click
in the combo box, and you can edit the field. At the end of the path add " -h file://" (without the quotes).

URL Method: A web form can use one of two methods: GET or POST. GET is more common. But if the URL that a form returns does not contain arguments tagged on to the end like "?item=456&name=frank" then it is probably POST.

URL String before: The part of the URL that comes before the word that is being looked up. For example, with the ARTFL
resource, this string returns the French for "wall":
http://machaut.uchicago.edu/cgi-bin/ENG-FR.sh?word=wall
So the "URL String before" is the first part, just
http://machaut.uchicago.edu/cgi-bin/ENG-FR.sh?word=
Note: if the method is POST, pretend it is GET, i.e. look at the names of the fields in the HTML for the form and tag them on to the URL string here, as if it were GET.

URL String after (optional): Sometimes part of the URL will come after the word being looked up too. If so, enter it here.

String before text being queried/String before text after queried: In the HTML you will want to locate the results you want returned. Typically before a result there will be a standard string before each result, and a standard string after each result. These should be entered in these fields. You can enter newline symbols as "\n" (without the quotes). For instance if you just wanted to get the first 3 lines of HTML returned, you could put "\n" in both fields and enter "3" for the Maximum matches field.

Maximum matches to retrieve: The number of results to retrieve from the HTML returned. If you are just getting a single block, such as a definition, you might choose to just have "1" here.

String each match must contain (optional): You can further filter your results by specifying that only results containing a string in this field should be shown.