From 0a679ab023b60fe1daa95252032f8b8d444861d5 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Sat, 18 Jul 2009 20:02:24 -0400 Subject: [PATCH] Bug 3428: Alphabetizes the collection codes in the Advanced Search. If the advancedSearchTypes = CCODE, the code descriptions are not alphabetized, as opposed to itemtypes, which are alphabetized. Signed-off-by: Galen Charlton --- catalogue/search.pl | 2 +- opac/opac-search.pl | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index 55d2ac56bb..49942dbc3a 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -244,7 +244,7 @@ if (!$advanced_search_types or $advanced_search_types eq 'itemtypes') { $template->param(itemtypeloop => \@itemtypesloop); } else { my $advsearchtypes = GetAuthorisedValues($advanced_search_types); - for my $thisitemtype (@$advsearchtypes) { + for my $thisitemtype (sort {$a->{'lib'} cmp $b->{'lib'}} @$advsearchtypes) { my %row =( number=>$cnt++, ccl => $advanced_search_types, diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 4a16db08aa..e48a017d9f 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -147,7 +147,6 @@ if (!$advanced_search_types or $advanced_search_types eq 'itemtypes') { for my $thisitemtype (@$advsearchtypes) { my %row =( number=>$cnt++, - imageurl=> getitemtypeimagelocation( 'opac', $thisitemtype->{'imageurl'} ), ccl => $advanced_search_types, code => $thisitemtype->{authorised_value}, selected => $selected, -- 2.20.1