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:

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.

To create a regular expression data test that suppresses resources:

  1. Create the regular expression.
  2. Create the regular expression data test:
    1. 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:

      WebBridge Management menu
      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.


    2. Choose Edit Data Tests.

      The WebBridge Management - Data Tests menu appears.

      WebBridge Management - Data tests menu
    3. Choose Create New....

      The WebBridge Management - Datatest menu appears.

      WebBridge Management - regex data test
    4. Enter a Name.
    5. Choose Regular Expression.
    6. Enter the regular expression in the Regular Expression text box.
    7. 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.
    8. Choose Save.
  3. 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.
  4. Test the query:
    1. Search the WebPACor Sierra databases for a record that passes the data test.
    2. 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.