Bugzilla – Attachment 732 Details for
Bug 2553
alphabetize dropdown menus
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch for opac-topissues.pl
0013-Bug-2553-Alphabetizes-branches-and-item-type-drop-d.patch (text/plain), 1.67 KB, created by
Chris Cormack
on 2009-08-02 02:43:00 UTC
(
hide
)
Description:
Proposed patch for opac-topissues.pl
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2009-08-02 02:43:00 UTC
Size:
1.67 KB
patch
obsolete
>From 4d51367dd9a06ea835bcdc11abe15dc2ef248bd2 Mon Sep 17 00:00:00 2001 >From: Garry Collum <gcollum@gmail.com> >Date: Sat, 1 Aug 2009 22:43:21 -0400 >Subject: [PATCH] Bug 2553: Alphabetizes branches and item-type drop-down lists in opac-topissues.pl. >Content-Type: text/plain; charset="utf-8" > >--- > opac/opac-topissues.pl | 16 ++-------------- > 1 files changed, 2 insertions(+), 14 deletions(-) > >diff --git a/opac/opac-topissues.pl b/opac/opac-topissues.pl >index 3371d1d..6b71226 100755 >--- a/opac/opac-topissues.pl >+++ b/opac/opac-topissues.pl >@@ -94,24 +94,12 @@ $template->param(do_it => 1, > results_loop => \@results, > ); > >-# load the branches ## again?? >-$branches = GetBranches(); >-my @branch_loop; >-for my $branch_hash (sort keys %$branches ) { >- my $selected=(C4::Context->userenv && ($branch_hash eq C4::Context->userenv->{branch})) if (C4::Context->preference('SearchMyLibraryFirst')); >- push @branch_loop, >- { >- value => "$branch_hash", >- branchname => $branches->{$branch_hash}->{'branchname'}, >- selected => $selected >- }; >-} >-$template->param( branchloop => \@branch_loop, "mylibraryfirst"=>C4::Context->preference("SearchMyLibraryFirst")); >+$template->param( branchloop => GetBranchesLoop(C4::Context->userenv->{'branch'})); > > #doctype > $itemtypes = GetItemTypes; > my @itemtypeloop; >-foreach my $thisitemtype (keys %$itemtypes) { >+foreach my $thisitemtype (sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'}} keys %$itemtypes) { > my %row =(value => $thisitemtype, > description => $itemtypes->{$thisitemtype}->{'description'}, > ); >-- >1.5.6.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 2553
:
721
|
722
|
723
|
724
|
725
|
726
|
727
|
728
|
729
|
730
|
731
|
732
|
733
|
11788
|
11789