These are chat archives for collectiveaccess/support

24th
Aug 2016
Kehan Harman
@kehh
Aug 24 2016 08:04
Thanks @pinkfishies. I've created a feature request in jira http://clangers.collectiveaccess.org/jira/browse/PROV-1803
naeemmuhammad
@naeemmuhammad
Aug 24 2016 12:06
Hi, How can i customize advanced search form in Pawtucket2? I need additional controls like checkbox, drop down and tabs.
Mike Benowitz
@mwbenowitz
Aug 24 2016 12:41
This message was deleted
Mike Benowitz
@mwbenowitz
Aug 24 2016 12:52

Hi @naeemmuhammad you can create a custom advanced search in the search.conf file (see http://docs.collectiveaccess.org/wiki/Pawtucket2:Advanced_Search for a description)

You can then create the new form named in the view = field of your newly defined search using display bundles. To define a checkbox add render=is_set to the end of the bundle specifier (e.g. ca_objects.public_access%render=is_set). Adding a search field for a field controlled by a list or set vocabulary will automatically populate as a dropdown.

naeemmuhammad
@naeemmuhammad
Aug 24 2016 12:55
@mwbenowitz thanks. What should be the value of the render element for rendering a radio button and tabs?
Mike Benowitz
@mwbenowitz
Aug 24 2016 13:11
@naeemmuhammad the render value for radio buttons is radio_buttons
and sorry, but not sure what you mean by tabs
naeemmuhammad
@naeemmuhammad
Aug 24 2016 13:18
Sorry perhaps i should have been more specific. Tab control, where we can display multiple sheets(panels) on top of each other. Each panel contains a set of html elements. Such as: https://api.jqueryui.com/tabs/#entry-examples
Sophie
@pinkfishies
Aug 24 2016 13:55
@naeemmuhammad You can simply format the advanced search view to work with the jquery ui tabs
You can use any php/html throughout the view as you would on any other page. Just the advanced search form adheres to the specialized markup