[OPEN-ILS-DEV] patch: async authority validation in marcedit.js

Jason Etheridge jason at esilibrary.com
Fri Apr 4 17:42:14 EDT 2008


Hey Mike,

I'm wanting to make the Validate button in the MARC editor
asynchronous to avoid any interface delays in the staff client, but
also wanted you to eyeball this since it's your code.  This patch is
against 1.2 and isn't meant to be integrated in as is.  The main thing
we're losing is the early exit in the inner loop through the
control_map once we hit on a response from
open-ils.search.authority.fts.  It doesn't feel like it would result
in a lot of wasted calls (given that most records should validate just
fine and run through the whole test anyway), but I could change that
loop into a recursive execution chain (using either async callbacks or
synchronous calls in a series of setTimeouts) where each link is
evaluated and can optionally break the chain.

What do you think?  I tested this on dev (I have no authority data
locally) with a small created record, but you and Bill are churning
dev at the moment so I haven't tried it with real-world records yet.

-- 
Jason Etheridge
 | VP, Community Support and Advocacy
 | Equinox Software, Inc. / The Evergreen Experts
 | phone: 1-877-OPEN-ILS (673-6457)
 | email: jason at esilibrary.com
 | web: http://www.esilibrary.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: marcedit.js.patch
Type: application/octet-stream
Size: 2407 bytes
Desc: not available
Url : http://list.georgialibraries.org/pipermail/open-ils-dev/attachments/20080404/0bc8c928/marcedit.js.obj


More information about the Open-ils-dev mailing list