[OPEN-ILS-DEV] Library card number via OSRF gateway?
Bill Erickson
berickxx at gmail.com
Wed Jan 20 10:14:05 EST 2016
Hi Ken,
There are various ways to do this. PCRUD is one of them.
If you already have the user object with user id, you can search for the
card by user id:
open-ils.pcrud.search.ac $authtoken, {"usr":$user_id}
This returns an actor.card (ac) object with a barcode field.
If you don't have the ID, you can fetch the user by username and flesh the
card object in the "card" field on the user.
open-ils.pcrud.search.au $authtoken, {"usrname":$username},
{"flesh":1,"flesh_fields":{"au":["card"]}}
Hope this helps,
-b
On Wed, Jan 20, 2016 at 10:04 AM, Ken Cox <kenstir at gmail.com> wrote:
> I login to the android app (using OSRF via the gateway) using my
> username. How can I get my library card number? Is there a PCRUD
> interface for that? Having that number would make it easier for me to
> login to axis360 after I have found an e-book.
>
> Thanks,
> --
> -Ken
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20160120/ec35b1c7/attachment.html>
More information about the Open-ils-dev
mailing list