browse.js

Summary
browse.js
bbop.widget.browseBBOP object to draw various UI elements that have to do with autocompletion.
Functions
browseContructor for the bbop.widget.browse object.
draw_browserBootstraps the process.

bbop.widget.browse

BBOP object to draw various UI elements that have to do with autocompletion.

This is a completely self-contained UI and manager.

Summary
Functions
browseContructor for the bbop.widget.browse object.
draw_browserBootstraps the process.

Functions

browse

bbop.widget.browse = function(golr_loc,
golr_conf_obj,
interface_id,
in_argument_hash)

Contructor for the bbop.widget.browse object.

This is a specialized (and widgetized) subclass of bbop.golr.manager.jquery.

While everything in the argument hash is technically optional, there are probably some fields that you’ll want to fill out to make things work decently.  The options for the argument hash are:

topology_graph_fieldthe field for the topology graph
transitivity_graph_fieldthe field for the transitivity graph
info_button_callbackfunctio to call when info clicked, gets doc
base_icon_urlthe url base that the fragments will be added to
image_type’gif’, ‘png’, etc.
current_iconthe icon fragment for the current term
info_iconthe icon fragment for the information icon
info_altthe alt text and title for the information icon

The basic formula for the icons is: base_icon_url + ‘/’ + icon + ‘.’  + image_type; then all spaces are turned to underscores and all uppercase letters are converted into lowercase letters.

The functions for the callbacks look like function(<term acc>, <json data for the specific document>){}.  If no function is given, an empty function is used.

Arguments

golr_locstring url to GOlr server;
golr_conf_obja bbop.golr.conf object
interface_idstring id of the element to build on
in_argument_hash[optional] optional hash of optional arguments

Returns

this object

draw_browser

Bootstraps the process.

Parameters

term_accacc of term we want to have as the term of interest

Returns n/a

bbop.widget.browse = function(golr_loc,
golr_conf_obj,
interface_id,
in_argument_hash)
Contructor for the bbop.widget.browse object.
jQuery BBOP manager for dealing with actual ajax calls.
Close