browse.js | |
bbop. | BBOP object to draw various UI elements that have to do with autocompletion. |
Functions | |
browse | Contructor for the bbop.widget.browse object. |
draw_browser | Bootstraps the process. |
BBOP object to draw various UI elements that have to do with autocompletion.
This is a completely self-contained UI and manager.
Functions | |
browse | Contructor for the bbop.widget.browse object. |
draw_browser | Bootstraps the process. |
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_field | the field for the topology graph |
transitivity_graph_field | the field for the transitivity graph |
info_button_callback | functio to call when info clicked, gets doc |
base_icon_url | the url base that the fragments will be added to |
image_type | ’gif’, ‘png’, etc. |
current_icon | the icon fragment for the current term |
info_icon | the icon fragment for the information icon |
info_alt | the 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.
golr_loc | string url to GOlr server; |
golr_conf_obj | a bbop.golr.conf object |
interface_id | string id of the element to build on |
in_argument_hash | [optional] optional hash of optional arguments |
this object
Contructor for the bbop.widget.browse object.
bbop.widget.browse = function( golr_loc, golr_conf_obj, interface_id, in_argument_hash )