Embedded Search Box Bento Option
See also
Issue
Currently, the embedded search box redirects the user to an EDS url that includes the query they entered.
After bento search is made available, we want to give librarians the ability to redirect the user to the GALILEO bento search display.
Options
Current parameters
The javascript function call for the embedded search box currently looks like this:
<script>
search_galileo( {
"instcode": "spaa",
"profile": "kids",
"advanced": 1,
"home": 1
} );
</script>
Bento search parameter
One option could be to replace the "profile"
parameter with "bento_search"
, e.g.,
(Note that I'm also suggesting we support both the legacy value: 1
and the better value: true
<script>
search_galileo( {
"instcode": "spaa",
"bento_search": true,
"advanced": true,
"home": true
} );
</script>
View parameter
For K12 and Public Libraries, we may also want to support (require?) a "view"
option, e.g.,
<script>
search_galileo( {
"instcode": "spaa",
"bento_search": true,
"view": "elementary",
"advanced": true,
"home": true
} );
</script>
"profile"
?
What about The idea here is that "bento_search": true
and "view": "[...]"
is enough for GALILEO to set the correct profile. The javascript doesn't have to specify it.
Other possibilities
Will we want to give the user the ability to change these options at the time they do their search, e.g.,
- click "Bento Search" on or off
- choose which "View"