Bug 27695: Fix style of messages on Elasticsearch configuration page
This patch makes minor modifications to SCSS and HTML to make messages
on the Elasticsearch configuration page more consistent with other
interfaces.
To test you should have Elasticsearch selected as your search engine.
- Apply the patch and rebuild the staff interface CSS
(https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client)
- Go to Administration -> Search engine configuration (Elasticsearch)
- You should see a full-width "note" style message under the page
heading, "Warning: Any changes..."
- Click the "Reset mappings" button at the bottom of the page. The
confirmation alert you see should appear above the note-style message.
- I'm not sure how to trigger an "error" type message on this page, but
you can test the updated style by going to Administration ->
Currencies and submit a new currency with the same name and symbol as
one which already exists.
Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit e9d2aa498b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
93becadc82
commit
7d03dfb599
|
|
@ -1756,7 +1756,8 @@ i {
|
|||
}
|
||||
}
|
||||
|
||||
.alert {
|
||||
.alert,
|
||||
.error {
|
||||
background: linear-gradient(to bottom, #FEF8D3 0%, #FFEC91 9%, #FFED87 89%, #F9DC00 100%);
|
||||
border: 1px solid #E0C726;
|
||||
color: inherit;
|
||||
|
|
|
|||
|
|
@ -56,16 +56,7 @@ a.add, a.delete {
|
|||
[% END %]
|
||||
|
||||
<h1>Search engine configuration (Elasticsearch)</h1>
|
||||
<div class="dialog message">
|
||||
Warning: Any changes to the configuration will only take effect after a full reindex. Until then searching may not work correctly.
|
||||
|
||||
<p>Weight: define weight as a positive number. Higher numbers indicate increased relevancy.
|
||||
<strong>Note that fields weighting works only for simple search.</strong></p>
|
||||
<ol>
|
||||
<li>only search fields mapped with biblios can be weighted</li>
|
||||
<li>search will boost/increase weighted field(s) relevancy</li>
|
||||
</ol>
|
||||
</div>
|
||||
[% IF errors %]
|
||||
<div class="dialog alert">
|
||||
Changes have not been applied. Please check the following values:
|
||||
|
|
@ -90,12 +81,25 @@ a.add, a.delete {
|
|||
<input type="hidden" name="op" value="reset_confirmed" />
|
||||
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, reset mappings</button>
|
||||
</form>
|
||||
<br>
|
||||
|
||||
<form method="post">
|
||||
<button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not reset mappings</button>
|
||||
</form>
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
<div class="note">
|
||||
<i class="fa fa-exclamation"></i>
|
||||
<strong>Warning:</strong> Any changes to the configuration will only take effect after a full reindex. Until then searching may not work correctly.
|
||||
|
||||
<p><strong>Weight:</strong> define weight as a positive number. Higher numbers indicate increased relevancy.
|
||||
<strong>Note that fields weighting works only for simple search.</strong></p>
|
||||
<ol>
|
||||
<li>Only search fields mapped with biblios can be weighted</li>
|
||||
<li>Search will boost/increase weighted field(s) relevancy</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<form method="post">
|
||||
<div id="tabs" class="toptabs" style="clear:both">
|
||||
<ul>
|
||||
|
|
@ -446,7 +450,7 @@ a.add, a.delete {
|
|||
</div>
|
||||
<p>
|
||||
<button class="btn btn-default" type="submit" name="op" value="edit"><i class="fa fa-hdd-o" aria-hidden="true"></i> Save</button>
|
||||
<button class="btn btn-default" type="submit" name="op" value="reset_confirm"><i class="fa fa-refresh" aria-hidden="true"></i> Reset Mappings</button>
|
||||
<button class="btn btn-default" type="submit" name="op" value="reset_confirm"><i class="fa fa-refresh" aria-hidden="true"></i> Reset mappings</button>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue