Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Structure of p_file_20 (PLIF) xml-format input file?

    • Article Type: Q&A
    • Product: Aleph
    • Product Version: 20, 21, 22, 23
    • Relevant for Installation Type: Dedicated-Direct; Direct; Local;

    Question

    What is the structure of a file-20 (PLIF) xml-format input file?

    Answer

    The PLIF xml format is described in the How to Use the Patron Loader Interface (PLIF) (file-20) - 20.pdf  document.

    Attached is a sample (2-record) PLIF input file (p_file_20_sample_xml_input_file) plif_example.txt


    There is one z303, followed by one or more z304's, followed by one z305, followed by two or more z308's. The type 01 z308 is the barcode and the type 02 z308 is the university ID. (The barcode *must* be type 01; the university ID could be some other number.) The match-id-type in the z303 is typically the type 02 university ID.

    Within the z304, z305, and z308 reecords you have a <record-action> followed by a series of z304-xxxx, z305-xxxx, or z308-xxxx fields. (The possible record actions are D (Delete), I (Insert), U (Update), or A (Add). (In the case of "A" the program will check if there's a match, and, if so,, treat the record as an Update; if not, it will treat it as an Insert.)

    Like this:

    <p-file-20>
    <patron-record>
    <z303>
    <match-id-type>02</match-id-type>
    <match-id>xxxxxxxxx</match-id>
    <record-action>A</record-action>
    <z303-title>...</z303-title>
    <z303-name>...</z303-name>
    ...
    ...
    <z303-want-sms>N</z303-want-sms>
    <z303-gender>F</z303-gender>
    </z303>
    <z304>
    <record-action>A</record-action>
    <z304-sequence>01</z304-sequence>
    <z304-address-type>01</z304-address-type>
    <z304-address-0>Angela D Hotchkiss</z304-address-0>
    ...
    ...
    <z304-date-from>%</z304-date-from>
    <z304-date-to>%</z304-date-to>
    </z304>
    <z304>
    <record-action>A</record-action>
    <z304-sequence>02</z304-sequence>
    <z304-address-type>02</z304-address-type>
    ...
    ...
    <z304-date-from>%</z304-date-from>
    <z304-date-to>%</z304-date-to>
    </z304>
    <z305>
    <record-action>A</record-action>
    <z305-sub-library>ABC50</z305-sub-library>
    <z305-bor-status>nn</z305-bor-status>
    <z305-expiry-date>yyyymmdd</z305-expiry-date>
    </z305>
    <z308>
    <record-action>A</record-action>
    <z308-key-type>01</z308-key-type>
    <z308-key-data>...</z308-key-data>
    <z308-verification>...</z308-verification>
    <z308-verification-type>00</z308-verification-type>
    <z308-status>AC</z308-status>
    <z308-encryption>Y</z308-encryption>
    </z308>
    <z308>
    <record-action>A</record-action>
    <z308-key-type>02</z308-key-type>
    <z308-key-data>xxxxxxxxx</z308-key-data>
    <z308-verification>...</z308-verification>
    <z308-verification-type>00</z308-verification-type>
    <z308-status>AC</z308-status>
    <z308-encryption>Y</z308-encryption>
    </z308>
    </patron-record>
    <patron-record>
    ...
    ...
    ...
    </patron-record>
    </p-file-20>

    Category: Circulation


    • Article last edited: 21-Sept-2016