Skip to main content
ExLibris
  • Subscribe by RSS
  • ExLibris Dev

    How Can We Restrict an X Services Search by Institution

    • Article Type: General
    • Product: Primo
    • Product Version: 2

    Description:
    I'm doing some basic searching using X services and would like my results to be restricted to a particular institution. No matter which parameters I try for Location, the results always contain some records belonging to other institutions.
    Example:
    http://www.myserver.org:1701/PrimoWebServices/xservice/search/brief?institution=INST1&Location=local,INST2&onCampus=false&query=any,contains,goats&indx=0&bulkSize=10&dym=true&highlight=false?=eng

    The API document example shows a call to brief search for the Institution "WESTERN" that returns a result belonging to Institution "NORTH," so I assume the institution parameter isn't enough. In this case, obviously, I only want results pertaining to institution INST1.
    I've tried other variations of the Location parameter (and leaving it out) with the same results. Perhaps I'm misinterpreting the API documentation, and there is no example using Location, i.e., the meaning of "scope restriction (search constraint)."

    Resolution:
    The syntax for searching by scope is:
    http://www.myserver.org:1701/PrimoWebServices/xservice/search/brief?institution=INST1&loc=local,scope:("INST1")&onCampus=false&query=any,contains,goats&indx=0&bulkSize=10&dym=true&highlight=false&lang=eng

    This is the syntax to combine scopes:
    …&loc=local,scope:("INST1")&loc=local,scope:("INST2")&loc=local,scope:("INST3")&…


    • Article last edited: 10/8/2013
    //doorbell.io feedback widged