Creating Field Selectors for Record Fields

This procedure describes creating a field selector from the data in a record field.

If the data from a record field or OpenURL meta tag requires manipulation before you use it in a data test, you can apply a regular expression to the data and use the result as the field selector. WebBridge field selectors accept regular expressions such as POSIX Basic Regular Expressions (BREs) and Extended Regular Expressions (EREs) as implemented in the UNIX grep utility.

If a regular expression is specified, WebBridge uses the result of the regular expression as the value of the field selector.

To create a field selector, you enter the:

Specifying the Record Field

To specify the record field from which to obtain the data for a field selector:

  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 displays:

    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 Field Selectors.

    The WebBridge Management - Field Selectors menu displays:

    WebBridge Management - Field selectors menu
  3. Choose Create New.... The next page of the WebBridge Management - Field Selectors menu displays:

    WebBridge Management - Field Selectors menu: Create New
  4. Enter a name in the Name text box.

    The name can be a maximum of 64 characters.
  5. To distinguish field selectors with the same or similar names, enter a description in the Description text box. Descriptions are optional.

    The description is used to distinguish field selectors with the same or similar names. For example, field selectors can be named VOLUME and VOLUME-3DIGIT, where VOLUME-3DIGIT has the description "Converts volume to 3 digits for Project Muse."
  6. In the Definiton text box for Library Catalog, enter the record type and field to use as the field selector.

    Use the format:

    record type/tag/marctag/subfield/
    FieldDescription
    record typeThe tag for the record type (b for bibliographic, r for course, or e for resource). Note that field selectors cannot be created for attached records (i for item, c for checkin, or o for order). If you do not enter a record type, it defaults to the main record type of the query.
    tagInnovative field group tag
    marctagThe MARC tag (e.g., 022)
    subfieldA comma-delimited list of subfields (e.g., a,g)

Specifying Regular Expressions

To manipulate the data in the record field into a form other than the form it takes in the record:

  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 displays:

    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 Field Selectors.

    The WebBridge Management - Field Selectors menu displays:

    WebBridge Management - Field selectors menu
  3. Choose a field selector. The next page of the WebBridge Management - Field Selectors menu displays:

    WebBridge Management - Field Selectors menu: Create New
  4. Enter a regular expression in the Regular Expression text box for OpenURL.

    Use the format:

    <delimiter><match><delimiter><replace><delimiter>

    For example, the following expression removes the hyphen from the ISSN field:

    /-//

    You can enter multiple regular expressions in one text box. Place an underscore ( _ ) between regular expressions to apply multiple regular expressions to the same data.
    NOTE

    Innovative does not provide support or training for the construction of regular expressions.

Examples of Field Selectors

Field Selector Name Type Definition Regular Expression Description
ISSN Library Catalog /i/022/a/ /-// ISSN with hyphen removed
ISSN-HYPHEN Library Catalog /i/022/a/ /(^,{4})(.{4}$)/\1-\2/ ISSN with hyphen
SUBJECT Library Catalog /d/// /--/ / Subject with "--" replaced with a space.
SUBJECT-SHORT Library Catalog /d//a/   Subject, subfield a only
TITLE Library Catalog /t/245/a,b/   Title, subfield a and b