Suppressing Resources Based on the Presence of Data in Fields
When you want to suppress the display of a resource link in records that are related by the presence or absence of certain data in a bibliographic record field, such as the presence of data in the AUTHOR field or the presence of a string in the TITLE field, use a data test of the type "regular expression."
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 record passes the regular expression data test, and the regular expression data test is assigned to one or more resources, then those resources display.
- If the record fails the regular expression data test, 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 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 Data Tests.
The WebBridge Management - Data Tests menu displays. - Choose Create New....
The WebBridge Management - Datatest menu displays. - 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 bibliographic record fields (i.e., that has an entry in the Library Catalog definition). - Choose Save.
- Access the WebBridge Management menu by either:
- Assign the regular expression data test to a resource.
Typically, regular expression data tests to determine the presence or absence of data in a field are used to suppress links from Sierra or WebPAC full record displays. See Assigning Data Tests to Resource Links from WebPAC or Sierra Full Record Displays. - Test the query:
- Search the WebPAC or Sierra databases for a record that passes the data test (for example, has data in a field specified by the data test).
- Request target resources.
The target resources that have the regular expression data test assigned to them display.
The target resources that do not have the regular expression data test assigned to them will not display.