Skip to main content
ExLibris

Knowledge Assistant

BETA
  • Subscribe by RSS
  • Back
    Primo

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Primo
    3. Knowledge Articles
    4. How Can We Restrict an X Services Search by Institution

    How Can We Restrict an X Services Search by Institution

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    • 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
    View article in the Exlibris Knowledge Center
    1. Back to top
      • How can we know if a record is part of a FRBR group?
      • How do I disable Auto Complete suggestions for a View?
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Community Content Type
      How To
      Content Type
      Knowledge Article
      Language
      English
      Product
      Primo
    2. Tags
      1. 2
      2. contype:kba
      3. Prod:Primo
      4. Type:General
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved