|
SFX | Thresholds for Display Logic Rules
Basic Informatio about display logic rules can be found in Chapter 8 of the SFX General User's Guide. The following are thresholds that can be used to restrict the application of display logic rules. How to make the menu behave differently based on the source of the incoming OpenURL. 1. To make an exception to a rule when the OpenURL is generated by the A-Z list $obj->need('rfr.rfr','ne','sfxit.com:azlist') 2. To make an exception to a rule when the OpenURL is generated by the Citation linker $obj->need('rfr.rfr','ne','sfxit.com:citation’) 3. To make an exception to a rule when the OpenURL is generated by the KnowledgeBase obj->need('rfr.rfr','ne','sfxit.com:kbmanager') 4. To make an exception to a rule when the OpenURL is generated by the OpenURL Generator $obj->need('sfx.sid','ne','DEFAULT') *Warning, this threshold applies to all sources that are not recognized in the Source list in the KnowledgeBase, not just the OpenURL generator. Apply with care. Could be activated for troubleshooting purposes or used in conjunction with a threshold that defines an IP range. 5. To apply a rule only when the OpenURL is generated from a specific IP Range $ENVHTTP_X_FORWARDED_FOR =~ /^157.193./ 6. To apply a rule only when the OpenURL is generated from a specific IP address $ENVHTTP_X_FORWARDED_FOR eq '157.193.59.119' Other Thresholds !($obj->need('sfx.ignore_date_threshold','==','1')) Formatting: To institute more than one condition in the threshold, format as follows. This example would make exceptions to a rule when the OpenURL originates from the A-Z list or the Citation Linker. $obj->need('rfr.rfr','ne','sfxit.com:azlist') || $obj->need('rfr.rfr','ne','sfxit.com:citation') |
SearchFeatured Links |