[Koha] Sort Library branches by name in Koha Staff Login
Bernardo Gonzalez Kriegel
bgkriegel at gmail.com
Fri Dec 14 08:02:53 NZDT 2012
Amir, Owen
I had misunderstood.
Yes, on staff "login" branches are ordered by branchcode.
The reason is on C4/Auth,pm, around line 953, if you change the line
for my $branch_hash (sort keys %$branches) {
by
for my $branch_hash (sort { uc($branches->{$a}->{branchname}) cmp
uc($branches->{$b}->{branchname}) } keys %$branches) {
then you will have branches ordered by branchname on staff login and
opac login (if you set OpacPublic as 'Disable')
That is the same order imposed on method GetBranchesLoop in C4/Branch.pm.
I think that it would be possible (desirable) to use only the Branch.pm method.
Anyway, I do not recommend to touch the file, but if you are in a
hurry it does not brake anything.
Regards,
Bernardo
--
Bernardo Gonzalez Kriegel
bgkriegel at gmail.com
On Thu, Dec 13, 2012 at 1:08 PM, Amir Seni <amirseni at gmail.com> wrote:
> On 12/13/2012 04:03 PM, Owen Leonard wrote:
>>>
>>> On Koha 3.6/8/10 my branch list is sorted by branch name, not branch
>>> code.
>>
>> I don't find this to be the case. In 3.8.x and master I get a list
>> ordered by branch code.
>>
>> -- Owen
>>
> I am running koha 3.06.10.000. As i stated before, the list in the OPAC page
> is sorted by Branch Name and in the Staff login page it is sorted by branch
> code.
>
> However after login without choosing a library and going to the main page,
> when clicking on Set Library, the list then appears sorted by Branch name.
>
> Still no idea why it is not sorted by branch name in the Staff login page.
>
>
> Amir
> _______________________________________________
> Koha mailing list http://koha-community.org
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
More information about the Koha
mailing list