General Purpose

This X-Service retrieves a list of QuickSets per user profile (institution / portal). QuickSets are identified by the user profile:

Guest user profile:
The user inherits the default user’s sets, according to the requester_ip. If the default user does not have any sets, the QuickSets are taken from the <institution></portal><language>/user. Authorization is based on requester IP, default user’s institution and default user’s group.Logged-in user profile:
Retrieves the QuickSets associated with one of the following default users, listed hierarchically:







Authorization is based on requester-ip, user’s institution and user’s group.


  • login – Called once by the calling application with valid /X user name and password. The session-id retrieved should be passed to all other API calls
  • Authentication (optional, either local or remote)
    • bor_auth – for local authentication of the user and to retrieve a valid borrower’s ID
    • PDS authentication – for remote authentication of the user and to obtain a pds handle
  • retrieve_quick_sets

Input Parameters


  1. SESSION_ID – X(50).
    • Option 1
      • REQUESTER_IP – X(12)
    • Option 2
      • SOURCE_ID – X(40)
      • INSTITUTE – X(30)
      • VERIFICATION – X(20)
    • Option 3
      • BOR_ID – X(12)
      • VERIFICATION – X(20)
    • Option 4
      • PDS_HANDLE – X(50)


    • REQUESTER-IP – X(12).

Explanation of the mandatory and optional parameters:

  • session_id – The session ID is the unique identifier of the login.
  • quick_set_association – One of the following:
    1. requester_ip – IP of the machine to which the requester is connected.
    2. Source_id – source_ID of user requesting QuickSets.
      Institute – User’s institution.
      Verification – User’s password
    3. Bor_Id – User_ID of the user requesting QuickSets.
      Verification – User’s password
    4. pds_handle – User’s unique token returned by the remote authentication system
  • Filter_ird_authorizationRequester_ip – IP of the machine to which the requester is connected.

Input XML Format


Guest user:

<?xml version = "1.0" encoding = "UTF-8"?>

Logged-in user:

<?xml version = "1.0" encoding = "UTF-8"?>

Input URL Syntax

In order to retrieve QuickSets, the input parameters must be embedded within the appropriate URL syntax:

MetalibPath:port/X?op=retrieve_quick_sets_request&requester_ip= requester_ip&session_id=session_id



Example URL Syntax

Example 1:


Example 2:


Output XML Format

Information about each QuickSet:

  • Set sequence – Unique key in MetaLib. Use this key for searching the QuickSet by the search_quick_sets X-Service.
  • Set name – Name of the QuickSet.
  • Set description – Description of the QuickSet.
  • No bases – Number of resources, defined in the QuickSet.
  • No of authorized bases – Number of resources, defined in the QuickSet, that are available only to authorized users.
  • Locked set – Defines whether the number of restricted resources is above or below threshold (www_metalib.conf/www_quick_threshold) (For authorization mode only, that is, filter_ird_authorization=Y).
    <?xml version = "1.0" encoding = "UTF-8"?>
    <x_server_response metalib_version="4.00 (20)">
        <set_name>Medical Information</set_name>
        <set_name>National Libraries</set_name>
        <no authorized_bases>000000005</no_authorized_bases>
        <set_name>Science for Everyone</set_name>
        <no_ authorized_bases>000000005</no_authorized_bases>
        <set_name>US Gov't Information</set_name>
      <session_id new_session="n">32GS85B67MEX93N5PX6AAH8PYEXI1XPNPMQU8SCHJ9QR1R5I5D</session_id>

    Possible Error Codes

    1. If the session_id, provided as an input parameter, is not valid, the following error message appears in the XML output:

    <error_text> You are not authorized to use this function </error_text>

    This can be caused by not using the session_id returned from the login X-Service.

    2. If this X-Service was activated after the session had timed out:

    <error_text>Session timeout</error_text>

    3. If the user-id cannot be found:

    <error_text>User does not exist</error_text>

    4. If there are no QuickSets associated with the request:

    <error_text>Quick Set Association is mandatory</error_text>

    5. If the requested user has no sets:

    <error_text>QuickSet Association has no QuickSets</error_text>

    6. If the institution does not exist:

    <error_text>Institution does not exist</error_text>

    7. If the format of the pds_handle is incorrect:

    <error_text>Invalid pds_handle format</error_text>

    8. If the pds_handle is not valid:

    <error_text>Invalid pds_handle</error_text>

    If 7 or 8 above are returned, the request will not terminate in error. The onus is on the calling application as to how to proceed.


    Up to MetaLib version 4.3.4 (657):

    This service is not up to date with the new Quickset management system which supports multilingual translations. Considering the portal feature as well, requester_ip alone is not enough to determine which quicksets should be retrieved. Therefore option 2 must be used for parameters:

    • SOURCE_ID – X(40)
    • INSTITUTE – X(30)
    • VERIFICATION – X(20)

    One problem you might encounter is that the default users (and their passwords for verification) are no longer directly accessible from the user list in the management interface. You have to get their bor_id using bor_info_request and then use a link hostname/M/SESSION/user-update?user_institute=INSTITUTE&user_id=BOR_ID to edit the user record.

    It would be quite convenient to have an option such as:

    • PORTAL
    • and a flag for Guest sets?