Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update search option enable search specie #194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion grails-app/views/species/search.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
<asset:script type="text/javascript">
// global var to pass GSP vars into JS file
SEARCH_CONF = {
searchResultTotal: ${searchResults.totalRecords},
searchResultTotal: ${searchResults.totalRecords},
searchSpecieEnable: "${grailsApplication.config.searchSpecie.enable}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be added to Application.groovy with a default value (true) to not break things.

bieWebServiceUrl: "${grailsApplication.config.bie.index.url}",
query: "${BieTagLib.escapeJS(query)}",
queryTitle: "${searchResults.queryTitle}",
Expand All @@ -47,6 +48,7 @@

<section class="${fluidLayout ? 'container-fluid' : 'container'}">
<div class="main-content panel panel-body">
<g:if test="${searchSpecieEnable}">
<div class="row margin-bottom-30">
<div class="col-sm-9">
<form method="get" action="${g.createLink(controller: 'species', action: 'search')}">
Expand All @@ -66,6 +68,7 @@
</form>
</div>
</div>
</g:if>


<header class="pg-header">
Expand Down