Bug 41287: (QA follow-up) Fix HTML syntax and improve logic consistency
This patch addresses two issues found in QA review:
1. Fixed HTML syntax error in i18n_l10n.pref where closing anchor tag
was incorrectly written as <a> instead of </a>
2. Changed C4/Search.pm to use elsif instead of separate if statement
for FacetOrder checking, matching the logic structure used in
Elasticsearch implementation and preventing potential double-execution
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit bdf5dc788c)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
parent
378b8d6827
commit
823426528a
|
|
@ -592,8 +592,7 @@ sub getRecords {
|
|||
if ($sorted_facets) {
|
||||
$f->{facets} = $sorted_facets;
|
||||
}
|
||||
}
|
||||
if ( C4::Context->preference('FacetOrder') eq 'Stringwise' ) {
|
||||
} elsif ( C4::Context->preference('FacetOrder') eq 'Stringwise' ) {
|
||||
@{ $f->{facets} } = sort { $a->{facet_label_value} cmp $b->{facet_label_value} } @{ $f->{facets} };
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ I18N/L10N:
|
|||
- Sort facet names using
|
||||
- pref: FacetSortingLocale
|
||||
type: locale-list
|
||||
- locale when <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=FacetOrder">FacetOrder<a> is set to alphabetically using locale. This enables proper Unicode-aware sorting of accented characters and locale-specific alphabetical ordering.
|
||||
- locale when <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=FacetOrder">FacetOrder</a> is set to alphabetically using locale. This enables proper Unicode-aware sorting of accented characters and locale-specific alphabetical ordering.
|
||||
-
|
||||
- pref: TranslateNotices
|
||||
choices:
|
||||
|
|
|
|||
Loading…
Reference in New Issue