Bugzilla – Attachment 15979 Details for
Bug 9685
Allow sort baskets by number
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9685: Allow sort baskets by number
Bug-9685-Allow-sort-baskets-by-number.patch (text/plain), 2.51 KB, created by
Paul Poulain
on 2013-03-08 15:32:19 UTC
(
hide
)
Description:
Bug 9685: Allow sort baskets by number
Filename:
MIME Type:
Creator:
Paul Poulain
Created:
2013-03-08 15:32:19 UTC
Size:
2.51 KB
patch
obsolete
>From 989b2617c1986f6749dcd0433b3b49ca2bac7403 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Thu, 21 Feb 2013 15:55:11 +0100 >Subject: [PATCH] Bug 9685: Allow sort baskets by number >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >In acqui/booksellers.pl, first column of baskets tables is "name (#number)". >This allows to sort by name but not by numnber. > >This patch splits acutal first column into 2 columns number and name to allow sorting on number. >Sets default sort on name like existing. > >Test plan: >Look at page and use sorting on name and n° columns. > >Signed-off-by: Marc Sabin <marc.sabin@sciencespo-grenoble.fr> >--- > .../prog/en/modules/acqui/booksellers.tt | 7 +++++-- > 1 files changed, 5 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >index b0e4549..acfa311 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >@@ -21,6 +21,7 @@ $(document).ready(function() { > 'bPaginate': false, > 'bFilter': false, > 'bInfo': false, >+ "aaSorting": [[ 1, "asc" ]], > 'aoColumnDefs': [ > { 'aTargets': [-1], 'bSortable': false } > ] >@@ -85,7 +86,8 @@ $(document).ready(function() { > <table class="baskets"> > <thead> > <tr> >- <th>Basket (#)</th> >+ <th>N°</th> >+ <th>Name</th> > <th>Item count</th> > <th>Biblio count</th> > <th>Items expected</th> >@@ -101,7 +103,8 @@ $(document).ready(function() { > [% ELSE %] > <tr> > [% END %] >- <td>[% basket.basketname %] (#[% basket.basketno %])</td> >+ <td>[% basket.basketno %]</td> >+ <td>[% basket.basketname %]</td> > <td>[% basket.total_items %]</td> > <td>[% basket.total_biblios %]</td> > <td>[% basket.expected_items %]</td> >-- >1.7.2.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 9685
:
15588
|
15684
|
15766
|
15926
|
15979
|
16029
|
17055