preload.js

Summary
preload.js
bbop.golr.manager.preloadPreload BBOP manager for dealing with remote calls.
Functions
preloadContructor for the GOlr query manager.
load
updateSee the documentation in <golr_manager.js> on update to get more of the story.

bbop.golr.manager.preload

Preload BBOP manager for dealing with remote calls.  Remember, this is actually a “subclass” of bbop.golr.manager.

This is synchronous.

This is mostly for testing purposes.

Summary
Functions
preloadContructor for the GOlr query manager.
load
updateSee the documentation in <golr_manager.js> on update to get more of the story.

Functions

preload

bbop.golr.manager.preload = function (golr_loc,
golr_conf_obj)

Contructor for the GOlr query manager.

Allows preloading of the returned document.

Arguments

golr_locstring url to GOlr server
golr_conf_obja bbop.golr.conf object

Returns

golr manager object

See also

bbop.golr.manager

load

bbop.golr.manager.preload.prototype.load = function(thing)

Parameters

thingwhat to send to the callbacks

Returns

n/a

update

bbop.golr.manager.preload.prototype.update = function(callback_type,
rows,
start)

See the documentation in <golr_manager.js> on update to get more of the story.  This override function adds a trigger that can be preloaded with results.  Really only for testing.

Parameters

callback_typecallback type string
rows[serially optional] integer; the number of rows to return
start[serially optional] integer; the offset of the returned rows

Returns

the query url

Also see

get_query_url

bbop.golr.manager.preload = function (golr_loc,
golr_conf_obj)
Contructor for the GOlr query manager.
bbop.golr.manager.preload.prototype.load = function(thing)
bbop.golr.manager.preload.prototype.update = function(callback_type,
rows,
start)
See the documentation in golr_manager.js on update to get more of the story.
Generic BBOP manager for dealing with gross GOlr configuration and management.
this.get_query_url = function()
Get the current invariant state of the manager returned as a encoded URL string (using encodeURI()).
Close