As a note, I believe that PCRUD search will also return all non-primary and non-active cards.

If you have the user object, but not a fleshed card off of it, then I believe you could instead do:

open-ils.pcrud.search.ac $authtoken, {"id":$card}

where $card is the card value from the user object to get the primary card.

Quoting Bill Erickson <[email protected]>:

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 <[email protected]> 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



--
Thomas Berezansky
Assistant Network Administrator
Merrimack Valley Library Consortium
4 High ST, Suite 175
North Andover, MA 01845
Phone: 978-557-8161

Reply via email to