Data Tests
Data and Field tests enable context sensitive linking by making sure that a resource is only offered when appropriate, based on what is in the display on screen. Tests can be against the data, for instance the coverage dates match the article. Multiple tests can be set for each resource, if necessary. To access click Data and Field Tests in the left-hand sidebar.
Example Data and Field Tests are loaded initially, but you may edit them, delete any you do not require and perhaps create new ones of your own. If you need to create a new data test the following elements need to be completed:
Name: describes the Data test so that it is easy to recognize in the drop-down list when setting up the test for a resource to appear.
What do you want to test?: offers you three ways to set how the test will be applied.
- Match in coverage database: match data tests determine whether field selectors match fields in the coverage database.
To test if a journal ISSN is available from a resource from which you have loaded coverage data: move Field Selector HasISSN into the selected box and leave it set to Match all.
- Check data in fields: does a particular field exist, not exist or contain certain data defined using a regular expression.
a. Has Data
To test if the record has data in a subject field so that you can offer a subject search against an Encyclopedia: move HasSubject field selector into the selected box.b. Has No Data
To test if the record does not contain a field that could be used to pass data to another resource.b. Custom
Can be used to state whether the data must be a specified value or whether it can be any value.For example, to test whether the record is a journal: highlight the HasISSN field selector.
You can input a test OpenURL in the box in order to verify that a Data Test operates as intended.
Once completed save the new test.
For additional information, refer to the Innovative Guide and Reference, Page #108098: Assigning Data Tests to Resources.