Bug 16989 - Advanced search form does not display translated itemtype
In Staff client, the advanced serach form does not display the
translations of item types.
(Note: It is not necessary to have translations installed to verify
this bug.)
Prerequisites:
- Go to Home > Administration > Item types administration
- Edit e.g. item type "BK" (Book)
- Near "Description", click link "Translate into other languages
- If you have other languaes installed, add translatons for those
- If you have an Englis only installation, add a "translation" for
English, make sure that you can identify it while testing (I
used "BOOOOOOOOOOOOKS")
Verify:
- Go to Home › Advanced search
- Verify near "Limit to any of the following" that the description for
itemtype BK reads "Book" instead of "BOOOOOOOOOOOOKS"
Test:
- Apply patch
- Verify that the item type description now reads ""BOOOOOOOOOOOOKS"
- If you have a multi language installaton, verify that item types
you translated display as appropriate
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 4a691fda16)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
parent
527cd879bb
commit
672e02bf6b
|
|
@ -811,8 +811,8 @@ sub prepare_adv_search_types {
|
|||
my @itypesloop;
|
||||
foreach my $thisitemtype (
|
||||
sort {
|
||||
$itemtypes->{$a}->{'description'}
|
||||
cmp $itemtypes->{$b}->{'description'}
|
||||
$itemtypes->{$a}->{'translated_description'}
|
||||
cmp $itemtypes->{$b}->{'translated_description'}
|
||||
} keys %$itemtypes
|
||||
)
|
||||
{
|
||||
|
|
@ -820,7 +820,7 @@ sub prepare_adv_search_types {
|
|||
number => $cnt++,
|
||||
ccl => "$itype_or_itemtype,phr",
|
||||
code => $thisitemtype,
|
||||
description => $itemtypes->{$thisitemtype}->{'description'},
|
||||
description => $itemtypes->{$thisitemtype}->{'translated_description'},
|
||||
imageurl => getitemtypeimagelocation(
|
||||
'intranet', $itemtypes->{$thisitemtype}->{'imageurl'}
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in New Issue