[OPEN-ILS-DEV] Pcrud fleshing question
Jane Sandberg
sandbej at linnbenton.edu
Wed Jul 10 22:05:00 EDT 2019
Thanks so much, Dan. That helps a lot.
On Wed, Jul 10, 2019 at 6:48 PM
<open-ils-dev-request at list.georgialibraries.org> wrote:
>
> Message: 3
> Date: Wed, 10 Jul 2019 21:47:11 -0400
> From: Daniel Wells <dbwells at gmail.com>
> To: Evergreen Development Discussion List
> <open-ils-dev at list.georgialibraries.org>
> Subject: Re: [OPEN-ILS-DEV] Pcrud fleshing question
> Message-ID:
> <CAGenA-SfLtGSE5d+CdR_AuT1G1FjsXzZTHc9DWP9XAUKZxmPZw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hello Jane,
>
> It looks like your issue is that the IDL is not correct. 'pickup_lib'
> should be a 'has_a' relationship.
>
> Despite the names, 'has_a' and 'might_have' are not for nullability, but
> key directionality. 'might_have' would mean that 'pickup_lib' (aou) has a
> key pointing back at bresv, but that isn't the case. The key for
> pickup_lib (if it exists) points from bresv to aou.
>
> Sincerely,
> Dan
>
> On Wed, Jul 10, 2019 at 9:00 PM Jane Sandberg <sandbej at linnbenton.edu>
> wrote:
>
> > Hi all,
> >
> > When I run the following in srfsh:
> >
> > request open-ils.pcrud open-ils.pcrud.search.bresv
> > "<auth_token_goes_here>", {"id" : {">" : 0}}, {"flesh" : 1,
> > "flesh_fields" : {"bresv": ["pickup_lib"]}}
> >
> > The pickup_lib field is not fleshed; I just get its ID. However, if I
> > change "pickup_lib" to "request_lib", it fleshes just fine:
> >
> > request open-ils.pcrud open-ils.pcrud.search.bresv
> > "<auth_token_goes_here>", {"id" : {">" : 0}}, {"flesh" : 1,
> > "flesh_fields" : {"bresv": ["request_lib"]}}
> >
> > I feel like I must be missing something obvious. pickup_lib and
> > request_lib seem almost identical, except that one of them can be
> > null. How can I get all the nice data about the pickup_lib?
> >
> > Thanks!
> > -Jane
> >
> > --
> > Jane Sandberg
> > Electronic Resources Librarian
> > Linn-Benton Community College
> > sandbej at linnbenton.edu / 541-917-4655
> > Pronouns: she/her/hers
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20190710/9881d42a/attachment.html>
>
> End of Open-ils-dev Digest, Vol 159, Issue 3
> ********************************************
--
Jane Sandberg
Electronic Resources Librarian
Linn-Benton Community College
sandbej at linnbenton.edu / 541-917-4655
Pronouns: she/her/hers
More information about the Open-ils-dev
mailing list