]> git.evergreen-ils.org Git - Evergreen.git/commit
Timeout for resolver interactions
authorArt Rhyno <artrhyno@uwindsor.ca>
Thu, 15 Dec 2011 01:13:30 +0000 (20:13 -0500)
committerArt <artrhyno@uwindsor.ca>
Thu, 5 Jan 2012 15:25:24 +0000 (10:25 -0500)
commite64c8643fedc3bf121d618aaf595d03cd3d685fd
tree8c21a0c87a0c59163940bcfca0ab3e686becd554
parent20a6185001d99f486040039ec73d2b6775ade4b9
Timeout for resolver interactions

These changes add some timeout options for using the resolver
setup. For example:

request open-ils.resolver open-ils.resolver.resolve_holdings "issn", \
    "0013-0618", "http://sfx.scholarsportal.info/windsor", 10

where "10" is the number of seconds for a timeout. A default timeout can be
specified in the opensrf.xml file in the ResolverResolver section as well:

<lwp_timeout>30</lwp_timeout>

from TPAC, a request can be also include a timeout option:

[% IF openurl.enabled == 'true';
    FOR issn IN args.resolver_issns;
      resolver = ResolverResolver.resolve_issn(issn, openurl.baseurl,20);
          FOR res IN resolver;
%]

where "20" is the number of seconds for a timeout.

In working through this, I found some bugs in my resolver collection
code in misc_util.tt2 for isbns which I have addressed.

Signed-off-by: Art Rhyno <artrhyno@uwindsor.ca>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Art <artrhyno@uwindsor.ca>
Open-ILS/src/perlmods/lib/OpenILS/Application/ResolverResolver.pm
Open-ILS/src/perlmods/lib/Template/Plugin/ResolverResolver.pm
Open-ILS/src/templates/opac/parts/misc_util.tt2