Bug 28554: In Koha::AuthorisedValues sort by description
In itemsearch form, there are several filters build with authorized values. There values should be sorted by description. Test plan : 1) Create several values and descriptions in authorized values LOC 2) Go to itemsearch 3) See filter by location sorts on description and not on value Seems change in search_by_marc_field can not be tested in interface Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
95a389f079
commit
ee27af1cd9
1 changed files with 5 additions and 1 deletions
|
@ -52,7 +52,10 @@ sub search_by_marc_field {
|
|||
( defined $tagfield ? ( 'marc_subfield_structures.tagfield' => $tagfield ) : () ),
|
||||
( defined $tagsubfield ? ( 'marc_subfield_structures.tagsubfield' => $tagsubfield ) : () ),
|
||||
},
|
||||
{ join => { category => 'marc_subfield_structures' } }
|
||||
{
|
||||
join => { category => 'marc_subfield_structures' },
|
||||
order_by => [ 'category', 'lib', 'lib_opac' ],
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -71,6 +74,7 @@ sub search_by_koha_field {
|
|||
},
|
||||
{ join => { category => 'marc_subfield_structures' },
|
||||
distinct => 1,
|
||||
order_by => [ 'category', 'lib', 'lib_opac' ],
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue