[OPEN-ILS-DEV] Android: how to determine (quickly) which libraries are hold pickup locations

Josh Stompro stomproj at exchange.larl.org
Tue Feb 14 11:59:08 EST 2017


Ken, I don't know if this is completely applicable, but as part of the new holds targeter, Bill created a way to pull org unit settings in batch for multiple orgs at once.

https://bugs.launchpad.net/evergreen/+bug/1596595/comments/20

That might help in the future.

Josh Stompro - LARL IT Director


-----Original Message-----
From: Open-ils-dev [mailto:open-ils-dev-bounces at list.georgialibraries.org] On Behalf Of Ken Cox
Sent: Tuesday, February 14, 2017 7:39 AM
To: Evergreen Development Discussion List
Subject: [OPEN-ILS-DEV] Android: how to determine (quickly) which libraries are hold pickup locations

I want to determine via OSRF which organizations cannot be hold pickup locations, and prevent the user from selecting those locations when placing a hold.  The only reliable way I have found is to call open-ils.actor.org_unit_setting.values.ranged.retrieve and look for "opac.holds.org_unit_not_pickup_lib":true.  Calling that 339 times takes 54 seconds, even in release mode with a pool of 4 threads.

Can you help me find a better way?

Many thanks,
Ken


More information about the Open-ils-dev mailing list