Suppressing Resources Based on OpenURL Requirements
If the target resource is assigned to the same category as the user's origin, is appropriate to the user's session, would offer useful additional information based on data from the bibliographic record, but cannot be accessed because an appropriate OpenURL cannot be constructed, the link to the resource should be suppressed with a data test. Failure to suppress such links results in the user encountering an Error 404: Not Found message.
Suppressing links based on the requirements of the OpenURL is most commonly done:
- for external origins
- using data tests of the type "regular expression"
Regular expression data tests contain rules to test one or more fixed- or variable-length fields in a bibliographic record or OpenURL. To use a regular expression data test, you create the regular expression, put it in a data test, and assign the test to one or more target resources.
When you request target resources from the full record displays of WebPAC and Sierra, the record in the full record display is tested against the regular expression.
- If the regular expression data test passes, and the regular expression data test is assigned to one or more resources, then those resources display.
- If the regular expression data test fails, and the regular expression data test is assigned to one or more resources, then those resources do not display.
- If the regular expression data test is not assigned to a resource, it displays.
To create a regular expression data test that suppresses resources:
- Create the regular expression.
- Create the regular expression data test:
- Access the WebBridge Management menu by either:
- entering http://your_library_[domain]/webbridge/edit in the browser address window
- choosing Admin | WB Edit in an application
The WebBridge Management menu appears:NOTE
Only one user can be logged in to the WebBridge Management menu's edit function. Other users can access the menus in View Only Mode.
If there is no activity by a login within the timeout period, the user is automatically logged out.
- Choose Edit Data Tests.
The WebBridge Management - Data Tests menu appears. - Choose Create New....
The WebBridge Management - Datatest menu appears. - Enter a Name.
- Choose Regular Expression.
- Enter the regular expression in the Regular Expression text box.
- Choose a field selector by moving it from the available to the selected column.
Choose a field selector that is defined for OpenURL elements (i.e., that has an entry in the OpenURL definition. - Choose Save.
- Access the WebBridge Management menu by either:
- Assign the regular expression data test to a resource.
Typically, regular expression data tests against the requirements of the OpenURL are used to suppress links displayed from external origins. See Assigning Data Tests to Resource Links from External Origins. - Test the query:
- Search the WebPACor Sierra databases for a record that passes the data test.
- Request target resources.
The target resources that have the regular expression data test assigned to them will display.
The target resources that do not have the regular expression data test assigned to them will not display.