Added custom search controller

Cleaned custom search controller

Autoselect hits per page from query.

Moved template change to VIVO branch
This commit is contained in:
Georgy Litvinov 2020-07-14 14:14:00 +02:00
parent 3c2e9cab05
commit 2519c4a6a7
5 changed files with 770 additions and 2 deletions

View file

@ -31,7 +31,7 @@
<fieldset>
<legend>${i18n().search_form}</legend>
<form id="search-form" action="${urls.search}" name="search" role="search" accept-charset="UTF-8" method="POST">
<form id="search-form" action="${urls.customsearch}" name="search" role="search" accept-charset="UTF-8" method="POST">
<div id="search-field">
<input type="text" name="querytext" class="search-vitro" value="${querytext!}" autocapitalize="off" />
<input type="submit" value="${i18n().search_button}" class="submit">

View file

@ -1,7 +1,7 @@
<#-- $This file is distributed under the terms of the license in LICENSE$ -->
<div id="searchBlock">
<form id="searchForm" action="${urls.search}" accept-charset="UTF-8" method="POST">
<form id="searchForm" action="${urls.customsearch}" accept-charset="UTF-8" method="POST">
<label for="search">${i18n().search_button}</label>
<input type="text" name="querytext" id="search" class="search-form-item" value="${querytext!}" size="20" autocapitalize="off" />
<input class="search-form-submit" name="submit" type="submit" value="${i18n().search_button}" />