live_filters.js | |
bbop. | BBOP JS object to allow the live probing of a GOlr personality. |
Functions | |
live_filters | Contructor for the bbop.widget.live_filters object. |
spin_up | Turn on the spinner. |
spin_down | Turn off the spinner. |
establish_display | Completely redraw the display. |
draw_meta | Draw meta results. |
draw_query | Draw the query widget. |
draw_accordion | (Re)draw the information in the accordion controls/filters. |
draw_current_filters | (Re)draw the information on the current filter set. |
draw_sticky_filters | (Re)draw the information on the sticky filter set. |
draw_error | Somehow report an error to the user. |
BBOP JS object to allow the live probing of a GOlr personality.
Very much like a separated accordion and filter from the search pane.
This is a Bootstrap 3 widget.
Functions | |
live_filters | Contructor for the bbop.widget.live_filters object. |
spin_up | Turn on the spinner. |
spin_down | Turn off the spinner. |
establish_display | Completely redraw the display. |
draw_meta | Draw meta results. |
draw_query | Draw the query widget. |
draw_accordion | (Re)draw the information in the accordion controls/filters. |
draw_current_filters | (Re)draw the information on the current filter set. |
draw_sticky_filters | (Re)draw the information on the sticky filter set. |
draw_error | Somehow report an error to the user. |
bbop.widget.live_filters = function( interface_id, manager, golr_conf_obj, in_argument_hash )
Contructor for the bbop.widget.live_filters object.
Widget interface to interactively explore a search personality with no direct side effects.
interface_id | string id of the element to build on |
manager | the shared GOlr manager to use |
golr_conf_obj | the profile of the specific |
in_argument_hash | [optional] optional hash of optional arguments |
this object
this.draw_meta = function( response, manager )
Draw meta results. Includes selector for drop down.
(Re)draw the count control with the current information in the manager. This also tries to set the selector to the response number (to keep things in sync), unbinds any current “change” event, and adds a new change event.
response | the bbop.golr.response returned from the server |
manager | bbop.golr.manager that we initially registered with |
n/a
this.draw_query = function( response, manager )
Draw the query widget. This function makes it active as well.
Clicking the reset button will reset the query to ‘’.
NOTE: Since this is part of the “persistant” interface (i.e. it does not get wiped after every call), we make sure to clear the event listeners when we redraw the function to prevent them from building up.
response | the bbop.golr.response returned from the server |
manager | bbop.golr.manager that we initially registered with |
n/a
this.draw_accordion = function( response, manager )
(Re)draw the information in the accordion controls/filters. This function makes them active as well.
response | the bbop.golr.response returned from the server |
manager | bbop.golr.manager that we initially registered with |
n/a
this.draw_current_filters = function( response, manager )
(Re)draw the information on the current filter set. This function makes them active as well.
response | the bbop.golr.response returned from the server |
manager | bbop.golr.manager that we initially registered with |
n/a
this.draw_sticky_filters = function( response, manager )
(Re)draw the information on the sticky filter set.
response | the bbop.golr.response returned from the server |
manager | bbop.golr.manager that we initially registered with |
n/a
this.draw_error = function( error_message, manager )
Somehow report an error to the user.
error_message | a string(?) describing the error |
manager | bbop.golr.manager that we initially registered with |
n/a
Contructor for the bbop.widget.live_filters object.
bbop.widget.live_filters = function( interface_id, manager, golr_conf_obj, in_argument_hash )
Turn on the spinner.
this.spin_up = function()
Turn off the spinner.
this.spin_down = function()
Completely redraw the display.
this.establish_display = function()
Draw meta results.
this.draw_meta = function( response, manager )
Draw the query widget.
this.draw_query = function( response, manager )
(Re)draw the information in the accordion controls/filters.
this.draw_accordion = function( response, manager )
(Re)draw the information on the current filter set.
this.draw_current_filters = function( response, manager )
(Re)draw the information on the sticky filter set.
this.draw_sticky_filters = function( response, manager )
Somehow report an error to the user.
this.draw_error = function( error_message, manager )