src/main/webapp/js/singlepage-interface.js
/**
	 * Load and display results within a specific group of documents/hits.
	 *
	 * This function should only be called when the containing tab currently has a groupBy clause,
	 * otherwise an invalid search will be generated.
	 *
	 * This function assumes it's being called in the context of a button/element containing a data-group-id attribute
	 * specifiying a valid group id.
	 */
Load and display results within a specific group of documents/hits.
This function should only be called when the containing tab currently has a groupBy clause,
otherwise an invalid search will be generated.

This function assumes it's being called in the context of a button/element containing a data-group-id attribute
specifiying a valid group id.
Load and display results within a specific group of documents / hits . This function should only be called when the containing tab currently has a groupBy clause otherwise an invalid search will be generated . This function assumes it ' s being called in the context of a button / element containing a data - group - id attribute specifiying a valid group id .
function viewConcordances() {
		var $button = $(this);
		var groupId = $button.data('groupId');
		$(this).trigger('localParameterChange', {
			viewGroup: groupId,
			page: 0
		});
		var groupName = $button.data('groupName');
		var $tab = $button.closest('.tab-pane');
		var $resultgroupdetails = $tab.find('.resultgroupdetails');
		var $resultgroupname = $resultgroupdetails.find('.resultgroupname');
		$resultgroupname.text(groupName || '');
	}
function viewConcordances ( ) { var $button = $ ( this ) ; var groupId = $button . data ( 'groupId' ) ; $ ( this ) . trigger ( 'localParameterChange' , { viewGroup : groupId , page : 0 } ) ; var groupName = $button . data ( 'groupName' ) ; var $tab = $button . closest ( '.tab-pane' ) ; var $resultgroupdetails = $tab . find ( '.resultgroupdetails' ) ; var $resultgroupname = $resultgroupdetails . find ( '.resultgroupname' ) ; $resultgroupname . text ( groupName || '' ) ; }
Load and display results within a specific group of documents/hits.
Load and display results within a specific group of documents / hits .
// this parameter is local to this tab, as the other tabs are probably displaying other groups. // initialize the display indicating we're looking at a detailed group // Only set the text, don't show it yet // (it should always be hidden, as this function is only available/called when you're not currently viewing contents of a group) // This is a brittle solution, but better than nothing for now. // TODO when blacklab-server echoes this data in the search request, set these values in setTabResults() and remove this here