IMPORTANT: This document describes an automatic logon method for institutions (or libraries) using the FirstSearch service. After an institution implements automatic logon, users click links on the institution's Web pages to go directly to a page within FirstSearch, bypassing the logon screen.
The automatic logon method described is the OCLC WebScript CGI application that an institution can install on its Web site. To install and use this method, the institution must have two items:
This document is written for system administrators who implement this method.
Alternative automatic logon method. OCLC also offers IP-address recognition access, another automatic logon method. You do not need to install an application at your site or have CGI knowledge in order to use it. Information about it is available at http://www.oclc.org/support/documentation/firstsearch/getting_started/ipweb/.
Latest version of WebScript. This document describes how to obtain and use the latest version of WebScript to access FirstSearch. WebScript now includes the following capabilities:
OCLC support of WebScript. OCLC's support of WebScript is limited to providing access to FirstSearch using scripts based on the OCLC-supplied script template. Because of the number of variables involved (Web servers, operating systems, and hardware), OCLC cannot perform server or CGI configuration or support custom scripts.
An automatic logon capability for FirstSearch is provided by the OCLC WebScript CGI (Common Gateway Interface) application--copyrighted freeware, distributed free-of-charge, and subject to license terms and conditions. OCLC WebScript lets institutions give their users access to FirstSearch without releasing the institution's FirstSearch authorization number and password.
Automatic logon lets you, the system administrator, control access to your FirstSearch account as you control access to your Web page and the links on it.
Here's how automatic logon works:
WebScript provides several options you can specify in a script or in links to the script on your Web pages. Some options must be set in the script.
WebScript can take the user to a particular FirstSearch database or Electronic Collections Online journal, to a page for selecting databases, or to the default initial page for using FirstSearch. In addition, you can specify the English, Spanish, or French version of FirstSearch, set the timeout period for the user's session, and control the Web page the user sees after exiting FirstSearch. For more details about options, see " Modifying the script template" or " Linking to a script."
If you specify different values for the same option in a script and in a link, WebScript uses the value specified in the link.
Some libraries use a shell to specify options. If you specify different values for the same option in a link, in a shell, and in a script, WebScript follows this order of precedence for the value used: link, shell, script. (The value in a link takes precedence over the value in a shell or script. The value in a shell takes precedence over the value in a script.)
The end-user's workstation and browser do not see, or participate in, the logon process; therefore the end user cannot capture the authorization number and password.
Here's what the end user sees:
To offer the WebScript automatic logon process, an institution must have the following:
In the Script Package OCLC provides the WebScript CGI application and a FirstSearch script template.
OCLC provides the following items needed to install WebScript automatic logon for FirstSearch:
IMPORTANT: You must be a system administrator with knowledge of CGI applications to use this procedure for installing automatic logon scripts for FirstSearch.
The installation instructions are divided into these tasks:
Download the WebScript application and script template included in the Script Package. If you download the source, compile it on your system. A Makefile is supplied to assist you.
This section of the document describes how to modify the script template to create a script for your institution. You can set the values for most options in a script or in links to the script on your Web pages. However, set the values for the following options in scripts only:
If you specify different values for the same option in a script and in a link, WebScript uses the value specified in the link. Instructions for setting values in a script are included in this section. Instructions for setting values in a link are included in "Linking to a script."
Note: Because commands in a script must not be split between two lines, check the user guide for your editor software to be sure that it does not wrap or split lines. For example, use the following command to turn off line wrapping and splitting when starting the UNIX PICO editor: pico -w filename
To modify the script template:
#! /usr/local/bin/Webscript with the correct path to the WebScript application on your host machine. Type the correct path in place of everything following #! in this line. Supply an absolute path if required by your server.| Host address | Description |
|---|---|
SET "host=firstsearch.oclc.org" | The FirstSearch primary address |
SET "host=firstsearch.uk.oclc.org" | The FirstSearch alternative address using the UK node that provides faster access for some users in Europe |
SET "autho= XXXXXXXXX" SET "password= PPPPPPPPP" | If your password contains: | Then: |
|---|---|
| % (percent sign) | Type %25 in place of it. For example, if the password is "abc%123", type abc%25123 |
| : (colon) | Type %3A in place of it. For example, if the password is "abc:123", type abc%3A123 |
| ? (question mark) | Type %3F in place of it. For example, if the password is "abc?123", type abc%3F123 |
| & (ampersand) | Type %26 in place of it. For example, if the password is "abc&123", type abc%26123 |
The Timeout and Fttimeout options specify inactivity timeout periods after which the user is logged off by FirstSearch. The Timeout option overrides the session timeout value and the Fttimeout option overrides the full-text timeout value set in the administrative module if the options' values are shorter time periods than the values set in the module. If you do not set values for these options, the values set in the administrative module apply.
For information about setting timeout values in the administrative module, see http://www.oclc.org/support/documentation/firstsearch/managing/adminref/admin_ref_gen/admin_ref_gen.htm. The administrative module is available at http://firstsearch.oclc.org/admin. To log on, use your FirstSearch authorization number and administrative password.
Session timeout in a script:
SET "timeout=[any number of seconds, 300-1800]"
(300 seconds equals 5 minutes, 1800 seconds equals 30 minutes)
For example: SET "timeout=600"
Full-text timeout in a script:
SET "fttimeout=[any number of seconds, 900-2700]"
(900 seconds equals 15 minutes, 2700 seconds equals 45 minutes)
For example: SET "fttimeout=900"
SET "db=none" (for example, use SET "db=WorldCat" or SET "db=ECO")SET "screen=none" (for example, use SET "screen=expert" or SET "screen=alldbs")SET "journal=none" (for example, use SET "journal=0924-669x" or SET "journal=0007-0882")SET "screen=none" (for example, use SET "screen=available")| Journal screen | Value for screen |
|---|---|
| Journal information page | info |
| Table of contents of the current issue of the journal | current |
| List of available issues for the journal | available |
| Journal-specific search form | search |
SET "topic=none" (for example, use SET "topic=businesseconomics" or SET "topic=all")SET "topic=none" and SET "db=none" and SET "journal=none" and SET "screen=none".SET "language=english". You can change it to SET "language=spanish" or SET "language=french".SET "logo=none". (For example, use SET "logo=http://www.oclc.org/firstsearch/support/inyourlibrary/promoting/materials/ipws_logo.htm for a sample logo provided by OCLC.)SET "done=none". Type "%3A" in place of ":". (For example, use SET "done=http%3A//www.oclc.org")The ONERROR SWITCH section of the script template contains a list of error cases and messages. For each case, you can customize the message text that appears between "\r\n" and "\r\n".
Cases that begin with "SP" are specific to WebScript and the machine on which it is running. "SP" errors are listed in the WebScript source.
Cases that begin with "SERVER" are errors listed in the WebScript-Error header.
Cases that begin with a number are HTTP errors returned by the server to which you are connected.
For the UNIX versions of WebScript:
/usr/local/bin. The application should be executable by your UNIX HTTP server. For the MS DOS version of WebScript:
The steps in this task tell your HTTP server to treat script (.scr) files as CGI executables and to limit access to the script by IP address (IP authentication).
For more information about configuring the HTTP server, consult the documentation for your server or see the following information about the NCSA HTTPd server:
To complete the installation, add one or more links from your public Web pages to the script file.
You can set the values for most options in the script or in the links. However, set the values for the following options in scripts only:
If you specify different values for the same option in a script and in a link, FirstSearch uses the value specified in the link. Instructions for setting values in a link are included in this section. Instructions for setting values in a script are included in "Modifying the script template."
If you set the values for all options in the script, use the following format for the URL in a link to the script file:
http://[your host name]/[cgi location]/[script file] http://127.0.0.1/usr/local/bin/Webscript/fs.scr
http://[your host name]/[cgi location]/webscript.exe?[script file] http://127.0.0.1/cgi-bin/webscript.exe?fs.scrIf you set values for some options in the link, use the following format for the URL in a link to the script file:
http://[your host name]/[cgi location]/[script file]?
[option=value]&[option=value] http://127.0.0.1/usr/local/bin/Webscript/fs.scr?
db=medline&screen=advanced&done=referer http://[your host name]/[cgi location]/webscript.exe?
[script file]&[option=value]&[option=value]
For example:http://127.0.0.1/cgi-bin/webscript.exe?fs.scr&
db= medline&screen=advanced&done=refererThe following is a description of the values you can set in the links from your public Web pages to a script file:
timeout=[any number of seconds, 300-1800]timeout=300fttimeout=[any number of seconds, 900-2700]fttimeout=600
db=none (for example, use db=WorldCat or db=ECO)screen=none (for example, use db=ECO&screen=expert or db=ECO&screen=alldbs)journal=none (for example, journal=0924-669x or journal=0007-0882)screen=none (for example, journal=0924-669x&screen=available)| Journal screen | Value for screen |
|---|---|
| Journal information page | info |
| Table of contents of the current issue of the journal | current |
| List of available issues for the journal | available |
| Journal-specific search form | search |
topic=none (for example, topic=businesseconomics or topic=all)SET "topic=none" and SET "db=none" and SET "journal=none" and SET "screen=none".language=spanish or language=frenchlogo=[complete URL of image file] (For example, type logo=http://www.oclc.org/firstsearch/support/inyourlibrary/promoting/materials/ipws_logo.htm for a sample logo provided by OCLC.)done=[complete URL]. Type "%3A" in place of ":". Or type "referer" in place of " [complete URL]" to return the user to the page from which FirstSearch was entered. (For example, type done=http%3A//www.oclc.org or done=referer.)If automatic logon fails, try manual logon. If manual logon succeeds, verify that you are using the latest versions of the WebScript script template and application. Also, be sure that you followed the installation instructions correctly.
If manual logon fails, try to access another service or home page on the World Wide Web. If you cannot access the other service, there may be an Internet problem. If you can access another service, wait ten minutes and try manual logon again. If it fails again, contact OCLC support to see if FirstSearch is experiencing system problems. Another way to check for FirstSearch system problems is to view OCLC System Alerts.
For more information about the WebScript CGI Application, see the WebScript Abstract Web Page.
Note: OCLC may change FirstSearch from time to time. Some changes may cause scripts to fail. Check this document for information if your scripts fail or to see if you have the latest version.
In addition, OCLC has a FirstSearch discussion list (English, French and Spanish versions) for advance notice of changes to the WebScript CGI application and the automatic logon scripts. To subscribe to the list, use the OCLC Internet List Subscription Request form.
If you need additional information, please contact OCLC support.
Although some institutions use WebScript for purposes other than accessing FirstSearch, OCLC's support of WebScript is limited to its use to provide access to FirstSearch.
For technical support, contact your OCLC regional service provider, OCLC support, or complete the form on the Contact Us page.
Or, you can send an e-mail message to this Internet address: webscript_support@oclc.org.
When you call, please indicate that you are using the WebScript CGI application, and supply this information: