What is syntax for the “.limit” variable for quick limits in webvoyage.properties?
- Product: Voyager
Question
What is syntax for the “.limit” variable for quick limits in webvoyage.properties?
Answer
The variable uses a “[limit type]=[value]” syntax.
This example is a location limit (LOCA=) for the location limit group Main:
page.search.limitTo.mainLocation.limit=LOCA=Main
Additional Information
Quick limit types
| LANG | Language |
| MEDI | Medium (or Format) |
| PLAC | Place |
| STAT | Status |
| TYPE | Item Type |
| DATE | Date |
| LOCA | Location |
Values
Values for LANG, MEDI, PLAC, STAT, and TYPE are listed in the limits.xml file in ..[skin]/xsl/userTextConfigs/limits.xml (Note that “MEDI” is called “Format” in limits.xml.)
Location limits (LOCA) are configured in the System Administration module under System > Location Limit Groups. Use the value in "Name" field in webvoyage.properties for any groups that do not have "Suppress in OPAC" box checked.
DATE uses year(s).
Examples:
page.search.limitTo.1990to2000.limit=Date=1990-2000 (between 1990 and 2000)
page.search.limitTo.before1990.limit=Date=-1990 (before 1990)
page.search.limitTo.after1990.limit=Date=1990- (after 1990)
- Article last edited: 15-Dec-2017

