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:
- record field from which to obtain the data
- regular expression for modifying the data (optional)
Specifying the Record Field
To specify the record field from which to obtain the data for a field selector:
- 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: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 Field Selectors.
The WebBridge Management - Field Selectors menu displays: - Choose Create New.... The next page of the WebBridge Management - Field Selectors menu displays:
- Enter a name in the Name text box.
The name can be a maximum of 64 characters. - 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." - 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/Field Description record type The 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. tag Innovative field group tag marctag The MARC tag (e.g., 022) subfield A 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:
- 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: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 Field Selectors.
The WebBridge Management - Field Selectors menu displays: - Choose a field selector. The next page of the WebBridge Management - Field Selectors menu displays:
- 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 |