lib_list

General Purpose

This service retrieves a list of libraries according to the given library type.

The list of libraries is taken from the DTL_LIBS environment variable according to the library type defined in tab100 in the TAB100-LIBRARY-TYPE field where the following: 1-ADMIN type and 2-SILO type.

Input Parameters

1. TYPE – PICTURE X(10).

TYPE: There are three valid types of library: ADMIN, SILO or ALL. This X-Service retrieves a list of the libraries that belong to the defined library type.

Output XML Format

The output XML includes all libraries that belong to the given type. For each library, the library code, name, and type, are returned. The output also includes the number of libraries that have been retrieved.

Example:
To get a list of all the ADMIN libraries, enter the following URL:

http://ram7:8175/X?op=lib_list&type=ADMIN

If successful, the output XML includes all ADMIN libraries:

<sds:lib-list xmlns:sds="http://com/exlibris/digitool/sds/xmlbeans">
  <sds:lib-record>
    <sds:code>dtl01</sds:code>
    <sds:name>dtl01</sds:name>
    <sds:type>ADMIN</sds:type>
  </sds:lib-record>
  <sds:lib-record>
    <sds:code>dtl02</sds:code>
    <sds:name>dtl02</sds:name>
    <sds:type>ADMIN</sds:type>
  </sds:lib-record>
  <sds:lib-record>
    <sds:code>pkl02</sds:code>
    <sds:name>pkl02</sds:name>
    <sds:type>ADMIN</sds:type>
  </sds:lib-record>
  <sds:lib-record>
    <sds:code>fad02</sds:code>
    <sds:name>fad02</sds:name>
    <sds:type>ADMIN</sds:type>
  </sds:lib-record>
  <no-lines>0004</no-lines>
  <session-id>FNA9S45AIJFR58GC53XCUE3AGHBG6AJJSL4DQ2ED5V5S2VTBTL</session-id>
</sds:lib-list>

Possible Error Codes

1. If the lib_list X-Service is activated without type having been entered, the following message appears in the output XML:

<error>Invalid Library type. Insert ADMIN, SILO or ALL.</error>