ILS-DI

GetPatronInfo

Returns specified information about the patron, based on options in the request. This function can optionally return patron's contact information, fine information, hold request information, loan information, and messages.

Parameters

patron_id (Required)
the unique patron identifier in the ILS; the same identifier returned by LookupPatron or AuthenticatePatron
show_contact (Optional, default 1)
whether or not to return patron's contact information in the response
show_fines (Optional, default 0)
whether or not to return fine information in the response
show_holds (Optional, default 0)
whether or not to return hold request information in the response
show_loans (Optional, default 0)
whether or not to return loan information in the response
show_attributes (Optional, default 0)
whether or not to return extended patron attributes information in the response

Example call

ilsdi.pl?service=GetPatronInfo&patron_id=1&show_contact=0&show_loans=1

Example response

<?xml version="1.0" encoding="ISO-8859-1" ?>
<GetPatronInfo>
  <category_type>A</category_type>
  <categorycode>ADUEXT</categorycode>
  <borrowernumber>419</borrowernumber>
  <lost>0</lost>
  <branchcode>BIB</branchcode>
  <amountoutstanding>6</amountoutstanding>
  <description>Adulte extérieur</description>
  <title>M</title>
  <enrolmentperiod>12</enrolmentperiod>
  <charges>6.00</charges>
  <dateenrolled>2009-03-04</dateenrolled>
  <borrowernotes></borrowernotes>
  <dateexpiry>2010-03-04</dateexpiry>
  <is_expired>0</is_expired>
  <firstname>Jean-André</firstname>
  <gonenoaddress>0</gonenoaddress>
  <dateofbirth>1984-06-08</dateofbirth>
  <debarred>0</debarred>
  <branchname>Bibliothèque Jean Prunier</branchname>
  <surname>SANTONI</surname>
  <cardnumber>815</cardnumber>
  <initials>JAS</initials>
  <sort1>CSP5</sort1>
  <sex>M</sex>
  <loans>
    <loan>
      <lastreneweddate>2009-04-03</lastreneweddate>
      <isbn>2253003689</isbn>
      <borrowernumber>419</borrowernumber>
      <branchcode>BIB</branchcode>
      <itemnumber>4454</itemnumber>
      <date_due>2009-05-06</date_due>
      <barcode>4765476</barcode>
      <datelastseen>2008-08-23</datelastseen>
      <issuedate>2008-08-23</issuedate>
      <title>L'Île au trésor</title>
      <itemtype>LITT</itemtype>
      <author>Robert Louis Stevenson</author>
      <timestamp>2009-04-03 14:46:10</timestamp>
      <publishercode>Librairie générale française</publishercode>
      <datecreated>2008-08-23</datecreated>
      <totalrenewals>11</totalrenewals>
      <dateaccessioned>2008-08-23</dateaccessioned>
      <onloan>2008-09-17</onloan>
      <biblioitemnumber>4483</biblioitemnumber>
      <withdrawn>0</withdrawn>
      <notforloan>0</notforloan>
      <replacementpricedate>2008-08-23</replacementpricedate>
      <itemcallnumber>RO STE</itemcallnumber>
      <location>Salle de lecture</location>
      <itemlost>0</itemlost>
      <publicationyear>1985</publicationyear>
      <holds_on_record>0</holds_on_record>
      <holds_on_item>0</holds_on_item>
      <issues>1</issues>
      <homebranch>BIB</homebranch>
      <holdingbranch>BIB</holdingbranch>
      <biblionumber>4483</biblionumber>
      <renewals>3</renewals>
      <damaged>0</damaged>
      <cn_sort>RO_STE</cn_sort>
      <frameworkcode></frameworkcode>
      <datelastborrowed>2008-08-23</datelastborrowed>
    </loan>
    <loan>
      <lastreneweddate>2009-03-17</lastreneweddate>
      <isbn>9782700017823</isbn>
      <borrowernumber>419</borrowernumber>
      <branchcode>BIB</branchcode>
      <itemnumber>4456</itemnumber>
      <date_due>2009-04-18</date_due>
      <barcode>2700017UUU</barcode>
      <datelastseen>2008-08-23</datelastseen>
      <issuedate>2008-08-23</issuedate>
      <title>La guitare en 10 leçons</title>
      <itemtype>LITT</itemtype>
      <author>Jon Buck</author>
      <timestamp>2009-03-17 16:48:14</timestamp>
      <publishercode>Gründ</publishercode>
      <datecreated>2008-08-23</datecreated>
      <totalrenewals>6</totalrenewals>
      <dateaccessioned>2008-08-23</dateaccessioned>
      <notes>La couv. porte en plus : "un guide simple et facile pour apprendre la guitare" | Glossaire. Index</notes>
      <onloan>2008-09-25</onloan>
      <biblioitemnumber>4486</biblioitemnumber>
      <withdrawn>0</withdrawn>
      <notforloan>0</notforloan>
      <replacementpricedate>2008-08-23</replacementpricedate>
      <itemcallnumber>787.87 BUC</itemcallnumber>
      <location>Salle de lecture</location>
      <itemlost>0</itemlost>
      <publicationyear>2007</publicationyear>
      <holds_on_record>1</holds_on_record>
      <holds_on_item>1</holds_on_item>
      <issues>1</issues>
      <homebranch>BIB</homebranch>
      <holdingbranch>BIB</holdingbranch>
      <biblionumber>4486</biblionumber>
      <renewals>3</renewals>
      <damaged>0</damaged>
      <cn_sort>78787_BUC</cn_sort>
      <volume>une méthode simple et facile pour apprendre la guitare</volume>
      <frameworkcode></frameworkcode>
      <datelastborrowed>2008-08-23</datelastborrowed>
    </loan>
  </loans>
</GetPatronInfo>

Powered by Koha