Bug 36609: Update index type labels for search engine configuration

This fixes the labels used for the type options when configuring
Elasticsearch search fields so that they use:
- sentence case
- the full name, instead of abbreviations (to make it clearer
  for translators)

Test plan:
1. Go to Administration > Catalog > Search engine
   configuration (Elasticsearch).
2. In the search fields tab, select the type column dropdown list
   for any field. Note the labels used for these options:
   - <empty entry> (the default option)
   - Std. Number
   - Call Number
3. Apply the patch.
4. Refresh the page.
5. Repeat step 2 and note that the option labels are now:
   - Default (instead of being blank)
   - Identfier (instead of Std. Number)
   - Call number (instead of Call Number)
6. Sign off D:

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit f549427e3d)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
David Nind 2024-12-08 17:54:02 +00:00 committed by Paul Derscheid
parent ebb0420365
commit 7cd5464d10
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 8 additions and 8 deletions

View File

@ -180,7 +180,7 @@ a.add, a.delete {
[% ELSE %]
<select name="search_field_type">
[% END %]
<option value=""></option>
<option value="">Default</option>
[% IF search_field.type == "string" %]
<option value="string" selected="selected">String</option>
[% ELSE %]
@ -217,14 +217,14 @@ a.add, a.delete {
<option value="isbn">ISBN</option>
[% END %]
[% IF search_field.type == "stdno" %]
<option value="stdno" selected="selected">Std. Number</option>
<option value="stdno" selected="selected">Identifier</option>
[% ELSE %]
<option value="stdno">Std. Number</option>
<option value="stdno">Identifier</option>
[% END %]
[% IF search_field.type == "callnumber" %]
<option value="callnumber" selected="selected">Call Number</option>
<option value="callnumber" selected="selected">Call number</option>
[% ELSE %]
<option value="callnumber">Call Number</option>
<option value="callnumber">Call number</option>
[% END %]
[% IF search_field.type == "geo_point" %]
<option value="geo_point" selected="selected">Geo point</option>
@ -283,7 +283,7 @@ a.add, a.delete {
</td>
<td>
<select data-id="search_field_type">
<option value=""></option>
<option value="">Default</option>
<option value="string">String</option>
<option value="date">Date</option>
<option value="year">Year</option>
@ -291,8 +291,8 @@ a.add, a.delete {
<option value="boolean">Boolean</option>
<option value="sum">Sum</option>
<option value="isbn">ISBN</option>
<option value="stdno">Std. Number</option>
<option value="callnumber">Call Number</option>
<option value="stdno">Identifierr</option>
<option value="callnumber">Call number</option>
<option value="geo_point">Geo point</option>
</select>
</td>