{"id":1375,"date":"2012-11-27T13:53:13","date_gmt":"2012-11-27T13:53:13","guid":{"rendered":"https:\/\/blog.lboro.ac.uk\/lorls\/?page_id=1375"},"modified":"2012-11-27T13:53:13","modified_gmt":"2012-11-27T13:53:13","slug":"loanhistory","status":"publish","type":"page","link":"https:\/\/blog.lboro.ac.uk\/lorls\/documentation\/integration\/lumps-apis\/loanhistory","title":{"rendered":"LoanHistory"},"content":{"rendered":"<pre>NAME\n    LoanHistory - LUMP CGI XML API to return loan histories for reading\n    lists\n\nDESCRIPTION\n    The LoanHistory CGI script permits the usage and viewing statistics for\n    a set of structural units (typically a reading list) to be returned.\n\nPARAMETERS\n  Standard\n    *username* - Name of user running this CGI script. Required unless web\n    server authentication is in use (when it is, the web server\n    authenticated user is used instead).\n    *password* - Password for the user. This is only required if the web\n    server is not handling the user authentication and if no security hash\n    parameter is being given.\n    *security_hash* - An opaque value used to authenticate the user without\n    requiring the password to be sent. This value is generated by a previous\n    execution of a LUMP API script and may well be time limited. It is only\n    required if no password or webserver authentication is done.\n    *act_as* - Users in the SysAdmins group can elect to act on the behalf\n    of other users once they are themselves authenticated. If this parameter\n    is present it should contain the username of the user that should be\n    switched to if this option is available and the real user has been\n    authenticated successfully. Optional.\n    *session_id* - An opaque string as far as the server is concerned that\n    is intended solely to allow async clients to differentiate different\n    results more easily. Optional.\n    *json* - requests that results be returned in JSON format rather than\n    XML.\n    *callback* - Supplies a JSONP callback. Optional and if given the\n    results are returned in JSONP format rather than XML.\n\n  Specific for this script\n    *suid* - The ID of a Structural Unit for which we&apos;d like usage\n    information.\n\nRESULTS\n    The script returns an XML document in the standard LUMP response format\n    (as documented in LUMP-XML-Response). The &lt;returns&gt; section contains a\n    list of the matching view records. If the *json* or *callback*\n    parameters are specified in the request, the results can be returned in\n    JSON or JSONP format rather than XML.\n\n    Each entry gives the number of times an item relating to a given SU was\n    loaned by the library within the given period, or a note if the item is\n    not held by the library.\n\nSEE ALSO\n    GetStructuralUnit\n\n    LUMP-XML-Response\n\nCOPYRIGHT\n    Copyright 2012 Loughborough University Library &lt;library@lboro.ac.uk&gt;.\n\n    Permission is granted to copy, distribute and\/or modify this document\n    under the terms of the GNU Free Documentation License, Version 1.2 or\n    any later version published by the Free Software Foundation; with no\n    Invariant Sections, with no Front-Cover Texts, and with no Back-Cover\n    Texts.\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>NAME LoanHistory &#8211; LUMP CGI XML API to return loan histories for reading lists DESCRIPTION The LoanHistory CGI script permits the usage and viewing statistics for a set of structural units (typically a reading list) to be returned. PARAMETERS Standard *username* &#8211; Name of user running this CGI script. Required unless web server authentication is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":125,"menu_order":9,"comment_status":"closed","ping_status":"closed","template":"page-col-1.php","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-1375","page","type-page","status-publish","hentry","count-0","even alt","author-lbjlclboro-ac-uk","last"],"_links":{"self":[{"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/pages\/1375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/comments?post=1375"}],"version-history":[{"count":0,"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/pages\/1375\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/pages\/125"}],"wp:attachment":[{"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/media?parent=1375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}